I have a project and when i try to add a service-based database file ".mdf" i get this error. I checked that my SQL server browser is running, The default TCP/IP port is 1433 but still getting the error (Provider: Named pipes Provider, error:40-Could not open a connection to SQL Server)
Thanks for all your help in advance
Error When trying to add Service-Based Database
Page 1 of 15 Replies - 1097 Views - Last Post: 04 February 2012 - 02:55 PM
Topic Sponsor:
Replies To: Error When trying to add Service-Based Database
#2
Re: Error When trying to add Service-Based Database
Posted 02 February 2012 - 07:55 AM
What's your connection string? Is the database installed locally? It sounds like it probably isn't..
#3
Re: Error When trying to add Service-Based Database
Posted 02 February 2012 - 08:36 AM
yes its installed locally and I am trying it as a new Item.
I am using Visual Studio 2010 Ultimate and I have SQL Server 2008 R2 Installed
Add New Item-> Service-Based Database
I am using Visual Studio 2010 Ultimate and I have SQL Server 2008 R2 Installed
Add New Item-> Service-Based Database
#4
Re: Error When trying to add Service-Based Database
Posted 03 February 2012 - 06:06 AM
Enable Named Pipes protocol from SqlServer Configuration.
Start->Programs>Microsoft SqlServer 2008 R2->Configuration Tools -> SqlServer Configuration Manager
->Sql Server Network Configuration -> Protocol for <instance_name> - > Enable Named Pipes
->Sql Native Client 10.0 Configuration-> Client Protocols -> Enable Named Pipes
Start->Programs>Microsoft SqlServer 2008 R2->Configuration Tools -> SqlServer Configuration Manager
->Sql Server Network Configuration -> Protocol for <instance_name> - > Enable Named Pipes
->Sql Native Client 10.0 Configuration-> Client Protocols -> Enable Named Pipes
#5
Re: Error When trying to add Service-Based Database
Posted 04 February 2012 - 06:42 AM
I have done that and I am still getting the error cannot open connection
#6
Re: Error When trying to add Service-Based Database
Posted 04 February 2012 - 02:55 PM
Same error or another one?
Page 1 of 1
|
|

New Topic/Question
Reply



MultiQuote






|