Microsoft SQL Server 无法启动

0 sql-server-2008 sql-server-2008-r2 startup

我在启动 SQL Server 2008 时遇到问题。我需要将数据库从一台计算机复制到 seced。我只DATA从我实际工作的服务器复制目录,然后将此目录复制到我新安装的 SQL Server 2008。在此之后,当我启动 SQL Server 时,它不会启动。

我的错误日志是:

2014-01-02 11:54:18.02 Server      Microsoft SQL Server 2008 (RTM) - 10.0.1600.22 (X64) 
    Jul  9 2008 14:17:44 
    Copyright (c) 1988-2008 Microsoft Corporation
    Express Edition (64-bit) on Windows NT 6.2 <X64> (Build 9200: )

2014-01-02 11:54:18.02 Server      (c) 2005 Microsoft Corporation.
2014-01-02 11:54:18.02 Server      All rights reserved.
2014-01-02 11:54:18.02 Server      Server process ID is 6684.
2014-01-02 11:54:18.02 Server      System Manufacturer: 'Hewlett-Packard', System Model: 'HP ENVY Sleekbook 4 PC'.
2014-01-02 11:54:18.02 Server      Authentication mode is WINDOWS-ONLY.
2014-01-02 11:54:18.02 Server      Logging SQL Server messages in file 'F:\Microsoft SQL Server\MSSQL10.SQLEXPRESS\MSSQL\Log\ERRORLOG'.
2014-01-02 11:54:18.02 Server      This instance of SQL Server last reported using a process ID of 4124 at 2014-01-02 10:53:57 (local) 2014-01-02 09:53:57 (UTC). This is an informational message only; no user action is required.
2014-01-02 11:54:18.02 Server      Registry startup parameters: 
     -d F:\Microsoft SQL Server\MSSQL10.SQLEXPRESS\MSSQL\DATA\master.mdf
     -e F:\Microsoft SQL Server\MSSQL10.SQLEXPRESS\MSSQL\Log\ERRORLOG
     -l F:\Microsoft SQL Server\MSSQL10.SQLEXPRESS\MSSQL\DATA\mastlog.ldf
2014-01-02 11:54:18.03 Server      SQL Server is starting at normal priority base (=7). This is an informational message only. No user action is required.
2014-01-02 11:54:18.03 Server      Detected 4 CPUs. This is an informational message; no user action is required.
2014-01-02 11:54:18.06 Server      Using dynamic lock allocation.  Initial allocation of 2500 Lock blocks and 5000 Lock Owner blocks per node.  This is an informational message only.  No user action is required.
2014-01-02 11:54:23.23 Server      Node configuration: node 0: CPU mask: 0x000000000000000f Active CPU mask: 0x000000000000000f. This message provides a description of the NUMA configuration for this computer. This is an informational message only. No user action is required.
2014-01-02 11:54:23.26 spid7s      Starting up database 'master'.
2014-01-02 11:54:23.43 spid7s      FILESTREAM: effective level = 0, configured level = 0, file system access share name = 'SQLEXPRESS'.
2014-01-02 11:54:23.44 spid7s      SQL Trace ID 1 was started by login "sa".
2014-01-02 11:54:23.46 spid7s      Starting up database 'mssqlsystemresource'.
2014-01-02 11:54:23.48 spid7s      The resource database build version is 10.00.1600. This is an informational message only. No user action is required.
2014-01-02 11:54:23.57 spid7s      Error: 15466, Severity: 16, State: 1.
2014-01-02 11:54:23.57 spid7s      An error occurred during decryption.
2014-01-02 11:54:23.62 spid10s     Starting up database 'model'.
2014-01-02 11:54:23.62 spid7s      Server name is 'MACIEK\SQLEXPRESS'. This is an informational message only. No user action is required.
2014-01-02 11:54:23.62 spid7s      Informational: No full-text supported languages found.
2014-01-02 11:54:23.62 spid7s      Starting up database 'msdb'.
2014-01-02 11:54:23.63 spid10s     Error: 17204, Severity: 16, State: 1.
2014-01-02 11:54:23.63 spid10s     FCB::Open failed: Could not open file E:\Program Files\Microsoft SQL Server\MSSQL10.SQLEXPRESS\MSSQL\DATA\model.mdf for file number 1.  OS error: 3(System nie mo?e odnale?? okre?lonej ?cie?ki.).
2014-01-02 11:54:23.63 spid10s     Error: 5120, Severity: 16, State: 101.
2014-01-02 11:54:23.63 spid10s     Unable to open the physical file "E:\Program Files\Microsoft SQL Server\MSSQL10.SQLEXPRESS\MSSQL\DATA\model.mdf". Operating system error 3: "3(System nie mo?e odnale?? okre?lonej ?cie?ki.)".
2014-01-02 11:54:23.65 spid7s      Error: 17204, Severity: 16, State: 1.
2014-01-02 11:54:23.65 spid7s      FCB::Open failed: Could not open file E:\Program Files\Microsoft SQL Server\MSSQL10.SQLEXPRESS\MSSQL\DATA\MSDBData.mdf for file number 1.  OS error: 3(System nie mo?e odnale?? okre?lonej ?cie?ki.).
2014-01-02 11:54:23.65 spid7s      Error: 5120, Severity: 16, State: 101.
2014-01-02 11:54:23.65 spid7s      Unable to open the physical file "E:\Program Files\Microsoft SQL Server\MSSQL10.SQLEXPRESS\MSSQL\DATA\MSDBData.mdf". Operating system error 3: "3(System nie mo?e odnale?? okre?lonej ?cie?ki.)".
2014-01-02 11:54:23.65 spid10s     Error: 17207, Severity: 16, State: 1.
2014-01-02 11:54:23.65 spid10s     FileMgr::StartLogFiles: Operating system error 2(Nie mo?na odnale?? okre?lonego pliku.) occurred while creating or opening file 'E:\Program Files\Microsoft SQL Server\MSSQL10.SQLEXPRESS\MSSQL\DATA\modellog.ldf'. Diagnose and correct the operating system error, and retry the operation.
2014-01-02 11:54:23.65 spid10s     File activation failure. The physical file name "E:\Program Files\Microsoft SQL Server\MSSQL10.SQLEXPRESS\MSSQL\DATA\modellog.ldf" may be incorrect.
2014-01-02 11:54:23.65 spid10s     Error: 945, Severity: 14, State: 2.
2014-01-02 11:54:23.65 spid10s     Database 'model' cannot be opened due to inaccessible files or insufficient memory or disk space.  See the SQL Server errorlog for details.
2014-01-02 11:54:23.65 spid10s     Could not create tempdb. You may not have enough disk space available. Free additional disk space by deleting other files on the tempdb drive and then restart SQL Server. Check for additional errors in the event log that may indicate why the tempdb files could not be initialized.
2014-01-02 11:54:23.65 spid10s     SQL Trace was stopped due to server shutdown. Trace ID = '1'. This is an informational message only; no user action is required.
Run Code Online (Sandbox Code Playgroud)

Mar*_*ith 5

我假设在源机器上这些都在E驱动器上,你只是通过锁存F器和枪管将它们复制到目的地的驱动器上?

现在您处于这种情况的另一种选择是添加启动参数-T3608以告诉 SQL Server 除了master.

然后,您可以使用ALTER DATABASE ... MODIFY FILE来修复这些路径model,并msdb在新的位置。