user2469932
user2469932

Reputation: 167

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?

Upvotes: 1

Views: 11498

Answers (2)

sreejithsdev
sreejithsdev

Reputation: 1210

Just go through this article.I think you can solve the problem. http://blog.sqlauthority.com/2009/05/21/sql-server-fix-error-provider-named-pipes-provider-error-40-could-not-open-a-connection-to-sql-server-microsoft-sql-server-error/

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

Upvotes: 1

user3021156
user3021156

Reputation: 19

Try this article, it goes through pretty much all the steps you will need to troubleshoot your connectivity problems:

http://social.technet.microsoft.com/wiki/contents/articles/2102.how-to-troubleshoot-connecting-to-the-sql-server-database-engine.aspx

Upvotes: 0

Related Questions