我已安装Sql Express 2012版本。我分别安装了本地Db。当我点击“已安装的Sql Server发现报告”时,我可以看到它的安装。但是,我无法使用Sql Server Management Studio或Microsoft Visual Studio 2012专业版连接到它。我得到的错误:SQL Server Express 2012错误:无法连接到本地数据库
"The attempt to attach to the database failed with the following information: A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: SQL Network Interfaces, error: 50 - Local Database Runtime error occurred. Cannot create an automatic instance. See the Windows Application event log for error details."
在Windows事件查看器我看到几个每次都在与不同regsistry键的错误:
"The DataDirectory registry value is missing in the LocalDb instance registry key:{-----}"
我regsitry值检查本地数据库中的HKEY_LOCAL_MACHINE \ SOFTWARE \微软\ MicrosoftSQL Server本地数据库,并且只有一个条目“已安装的版本”。 我已经经历了几个职位,其中阐述了上述错误的解决方案,并已完成他们所提出的几乎所有内容,但仍无法让localDb工作。
为了解决这个问题,我会很感激的。
UPDATE:
使用命令行界面我证实的LocalDB V11.0安装。但是,命令sqlLocalDb info v11.0给出错误:“自动实例”v11.0“未创建,如果我尝试创建一个,则会出现另一个错误:”在一个localDb实例API方法调用中出现意外错误。“
您可以尝试以下帖子:http://stackoverflow.com/a/31383366/1662459 –