简体   繁体   中英

Troubleshoot Connecting to the SQL Server Database Engine

I'm trying to connect to SQL Server from my .NET application.

I tried it on my pc and one other pc with already installed sql server.

I needed to test my app and I started virtual machines (windows 7 and 8.1).

I am constantly getting 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)"

I tried everything that i found on internet that might help. Nothing works for me.

Im using VirtualBox for virtual machines. Is there might problem with that or even problem is because I'm trying to do it on VM. How can I resolve this?

检查这是否有助于运行-> sql服务器配置管理器,然后检查sql服务器服务正在运行,然后启用客户端协议

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM