user2469932 user2469932 - 1 year ago 113
SQL Question

Error creating an SQL Server Database in Visual Studio

I am trying to create a new SQL DB in Visual Studio 2010, and Upon entering a Server Name and a DB name then pressing Ok, I get this 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)

Any ideas?

Answer Source

Just go through this article.I think you can solve the problem.

Also ensure you have specified servername and database name correctly in connection string.just take connection string from property window of added database.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download