【发布时间】:2019-04-09 13:28:10
【问题描述】:
我已经安装了 Visual Studio Community 2017。现在我想在我的应用程序中使用数据库,但是我
TITLE: Error
------------------------------
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: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server) (Microsoft SQL Server, Error: 2)
For help, click: http://go.microsoft.com/fwlink?ProdName=Microsoft%20SQL%20Server&EvtSrc=MSSQLServer&EvtID=2&LinkId=20476
------------------------------
ADDITIONAL INFORMATION:
The system cannot find the file specified
------------------------------
BUTTONS:
OK
------------------------------
我 有人可以告诉我我做错了什么吗?
【问题讨论】:
-
运行
services.msc。您是否有任何名称中带有SQL的服务运行? -
实际上我之前安装了 microsoft sql server 2008 express 然后我卸载了它,因为当我点击启动 sql 服务时它立即启动并停止
-
我也删除了sql server management studio
-
sql server 代理选项仍然存在,当我点击启动时它会自动停止
标签: c# asp.net sql-server database visual-studio-2017