在ReportViewer 2015 Runtime安装之后,SQL Server 2014 LocalDB停止工作

时间:2015-12-09 23:18:05

标签: sql-server localdb

我能够毫无问题地连接到(localdb)\MSSQLLocalDB。然后我安装了Microsoft ReportViewer 2015运行时,无法再连接。

我得到的错误是:

  

无法连接到(localdb)\ MSSQLLocalDB。

     

其他信息:

     

发生与网络相关或特定于实例的错误   建立与SQL Server的连接。找不到服务器或   无法访问。验证实例名称是否正确   SQL Server配置为允许远程连接。 (提供者:SQL   网络接口,错误:50 - 发生本地数据库运行时错误。   在LocalDB实例启动期间发生错误:SQL Server进程   无法启动。)(Microsoft SQL Server)

以前是否有人遇到此问题,并知道如何修复它?我找不到任何东西:\

事件日志包含以下内容;

  

Windows API调用WaitForMultipleObjects返回错误代码:575。   Windows系统错误消息是:{Application Error}应用程序   无法正确启动(0x%lx)。单击“确定”关闭   应用。在线报道:3728。

SQL Server日志包含以下内容:

{Date} {Time} Server      Microsoft SQL Server 2014 - 12.0.4100.1 (X64) 
    Apr 20 2015 17:29:27 
    Copyright (c) Microsoft Corporation
    Express Edition (64-bit) on Windows NT 6.3 <X64> (Build 9600: ) (Hypervisor)

{Date} {Time} Server      UTC adjustment: 10:30
{Date} {Time} Server      (c) Microsoft Corporation.
{Date} {Time} Server      All rights reserved.
{Date} {Time} Server      Server process ID is 4392.
{Date} {Time} Server      System Manufacturer: {Manufacturer}, System Model: {Model}.
{Date} {Time} Server      Authentication mode is MIXED.
{Date} {Time} Server      Logging SQL Server messages in file 'C:\Users\{user}\AppData\Local\Microsoft\Microsoft SQL Server Local DB\Instances\MSSQLLocalDB\error.log'.
{Date} {Time} Server      The service account is '{domain}\{user}'. This is an informational message; no user action is required.
{Date} {Time} Server      Command Line Startup Parameters:
     -c
     -S "MSSQL12E.LOCALDB"
     -s "LOCALDB#6A0C87E6"
     -d "C:\Users\{user}\AppData\Local\Microsoft\Microsoft SQL Server Local DB\Instances\MSSQLLocalDB\master.mdf"
     -l "C:\Users\{user}\AppData\Local\Microsoft\Microsoft SQL Server Local DB\Instances\MSSQLLocalDB\mastlog.ldf"
     -e "C:\Users\{user}\AppData\Local\Microsoft\Microsoft SQL Server Local DB\Instances\MSSQLLocalDB\error.log"
{Date} {Time} Server      SQL Server detected 1 sockets with 4 cores per socket and 4 logical processors per socket, 4 total logical processors; using 4 logical processors based on SQL Server licensing. This is an informational message; no user action is required.
{Date} {Time} Server      SQL Server is starting at normal priority base (=7). This is an informational message only. No user action is required.
{Date} {Time} Server      Detected 7113 MB of RAM. This is an informational message; no user action is required.
{Date} {Time} Server      Using conventional memory in the memory manager.
{Date} {Time} Server      Default collation: SQL_Latin1_General_CP1_CI_AS (us_english 1033)
{Date} {Time} Server      The maximum number of dedicated administrator connections for this instance is '1'
{Date} {Time} Server      Node configuration: node 0: CPU mask: 0x000000000000000f:0 Active CPU mask: 0x000000000000000f:0. This message provides a description of the NUMA configuration for this computer. This is an informational message only. No user action is required.
{Date} {Time} 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.
{Date} {Time} Server      Software Usage Metrics is disabled.
{Date} {Time} spid8s      Starting up database 'master'.
{Date} {Time} spid8s      24 transactions rolled forward in database 'master' (1:0). This is an informational message only. No user action is required.
{Date} {Time} spid8s      0 transactions rolled back in database 'master' (1:0). This is an informational message only. No user action is required.
{Date} {Time} Server      CLR version v4.0.30319 loaded.
{Date} {Time} Server      Common language runtime (CLR) functionality initialized using CLR version v4.0.30319 from C:\Windows\Microsoft.NET\Framework64\v4.0.30319\.
{Date} {Time} spid8s      SQL Server Audit is starting the audits. This is an informational message. No user action is required.
{Date} {Time} spid8s      SQL Server Audit has started the audits. This is an informational message. No user action is required.
{Date} {Time} spid8s      SQL Trace ID 1 was started by login "sa".
{Date} {Time} spid8s      Server name is '{ComputerName}\LOCALDB#6A0C87E6'. This is an informational message only. No user action is required.
{Date} {Time} spid14s     Server local connection provider is ready to accept connection on [ \\.\pipe\LOCALDB#6A0C87E6\tsql\query ].
{Date} {Time} spid14s     Dedicated administrator connection support was not started because it is disabled on this edition of SQL Server. If you want to use a dedicated administrator connection, restart SQL Server using the trace flag 7806. This is an informational message only. No user action is required.
{Date} {Time} spid8s      Error: 17204, Severity: 16, State: 1.
{Date} {Time} spid8s      FCB::Open failed: Could not open file E:\sql12_main_t.obj.x86Release\sql\mkmastr\databases\mkmastr.proj\MSDBData.mdf for file number 0.  OS error: 3(The system cannot find the path specified.).
{Date} {Time} spid8s      Error: 5120, Severity: 16, State: 101.
{Date} {Time} spid8s      Unable to open the physical file "E:\sql12_main_t.obj.x86Release\sql\mkmastr\databases\mkmastr.proj\MSDBData.mdf". Operating system error 3: "3(The system cannot find the path specified.)".
{Date} {Time} spid12s     Starting up database 'mssqlsystemresource'.
{Date} {Time} spid12s     The resource database build version is 12.00.4100. This is an informational message only. No user action is required.
{Date} {Time} spid12s     Starting up database 'model'.
{Date} {Time} spid12s     Error: 17204, Severity: 16, State: 1.
{Date} {Time} spid12s     FCB::Open failed: Could not open file E:\sql12_main_t.obj.x86Release\sql\mkmastr\databases\mkmastr.proj\model.mdf for file number 1.  OS error: 3(The system cannot find the path specified.).
{Date} {Time} spid12s     Error: 5120, Severity: 16, State: 101.
{Date} {Time} spid12s     Unable to open the physical file "E:\sql12_main_t.obj.x86Release\sql\mkmastr\databases\mkmastr.proj\model.mdf". Operating system error 3: "3(The system cannot find the path specified.)".
{Date} {Time} spid12s     Error: 17207, Severity: 16, State: 1.
{Date} {Time} spid12s     FileMgr::StartLogFiles: Operating system error 2(The system cannot find the file specified.) occurred while creating or opening file 'E:\sql12_main_t.obj.x86Release\sql\mkmastr\databases\mkmastr.proj\modellog.ldf'. Diagnose and correct the operating system error, and retry the operation.
{Date} {Time} spid12s     File activation failure. The physical file name "E:\sql12_main_t.obj.x86Release\sql\mkmastr\databases\mkmastr.proj\modellog.ldf" may be incorrect.
{Date} {Time} spid12s     Error: 945, Severity: 14, State: 2.
{Date} {Time} spid12s     Database 'model' cannot be opened due to inaccessible files or insufficient memory or disk space.  See the SQL Server errorlog for details.
{Date} {Time} spid12s     SQL Server shutdown has been initiated
{Date} {Time} spid12s     SQL Trace was stopped due to server shutdown. Trace ID = '1'. This is an informational message only; no user action is required.

请注意;我没有,也没有E:\驱动器:\

1 个答案:

答案 0 :(得分:0)

我最终删除并重新创建了实例 I.E.

Open command prompt
-> cd %localappdata%\Microsoft\Microsoft SQL Server Local DB\Instances\MSSQLLocalDB
-> sqllocaldb delete mssqllocaldb
-> sqllocaldb create mssqllocaldb
-> sqllocaldb start mssqllocaldb