Reputation: 738
SQL Server Name : ECARE432
Instance Name : SQLEXPRESS
app.config
contains:
<connectionStrings>
<add name="TimeTracker.Properties.Settings.myecareConnectionString"
connectionString="Data Source=ECARE432;Initial Catalog=myecare;Persist Security Info=True;User ID=sa;Password=ecare123@"
providerName="System.Data.SqlClient"/>
</connectionStrings>
I have developed my first application in WPF (C#) with VS 2008 & SQL Server 2008. It works fine on my system. After deployment, it doesn't work on other systems.
It shows the following error message.
provider named pipes provider error 40 - could not open a connection to sql server 2008
I have gone through Google and done the following steps but no use.
PING ECARE432
is working)sqlbrowser.exe
is added to the Firewall Exception List.sqlexpress
to blank.Please guide me how to fix this issue.
Upvotes: 1
Views: 14760
Reputation: 754963
If you have SQL Server Name: ECARE432
and Instance Name : SQLEXPRESS
- then you need to use ECASE432\SQLEXPRESS
as the value for your Data Source=
in your connection string:
<connectionStrings>
<add name="TimeTracker.Properties.Settings.myecareConnectionString"
connectionString="Data Source=ECARE432\SQLEXPRESS;Initial Catalog=myecare;Persist Security Info=True;User ID=sa;Password=ecare123@"
providerName="System.Data.SqlClient"/>
</connectionStrings>
Along the same lines - if your instance really is called SQLEXPRESS
- then why are you doing this??
Visual Studio --> Tools --> Options --> Database Tools --> Data Connections --> Changed "SQL Server Instance Name" from sqlexpress to blank.
Makes no sense at all. If the instance is in fact SQLEXPRESS
- let it be!
Upvotes: 2