provider named pipes provider error 40 - could not open a connection to sql server 2008 -
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 first application in wpf (c#) vs 2008 & sql server 2008. works fine on system. after deployment, doesn't work on other systems.
it shows following error message.
provider named pipes provider error 40 - not open connection sql server 2008
i have gone through google , done following steps no use.
- configuration tools -> sql server configuration manager -> sql native client configuration aliases -> alias name -> ecare432,1433, port number -> 1433, protocol -> tcp/ip, server name -> ecare432
- tcp/ip enabled. protocols -> tcp/ip properties -> ip1 -> active - yes enabled - yes, ip address - system ip address, tcp dynamic ports - blank, tcp port - 1433
- ip2 -> active - yes, enabled - yes, ip address - 127.0.0.1, tcp dynamic ports - blank, tcp port - 1433
- ipall -> tcp dynamic ports - blank, tcp port - 1433
- sql server browser running.
- server name correct. no typo mismatch.
- client machine able ping machine. (
ping ecare432
working) - tcp 1433 , udp 1434 exception added firewall. turned off firewall in both system , client system.
sqlbrowser.exe
added firewall exception list.- allow remote connections enabled under connections in sql server properties.
- visual studio --> tools --> options --> database tools --> data connections --> changed "sql server instance name"
sqlexpress
blank.
please guide me how fix issue.
if have sql server name: ecare432
, instance name : sqlexpress
- need use ecase432\sqlexpress
value data source=
in 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 same lines - if instance called sqlexpress
- why doing this??
visual studio --> tools --> options --> database tools --> data connections --> changed "sql server instance name" sqlexpress blank.
makes no sense @ all. if instance is in fact sqlexpress
- let be!
Comments
Post a Comment