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.

  1. configuration tools -> sql server configuration manager -> sql native client configuration aliases -> alias name -> ecare432,1433, port number -> 1433, protocol -> tcp/ip, server name -> ecare432
  2. 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
  3. sql server browser running.
  4. server name correct. no typo mismatch.
  5. client machine able ping machine. (ping ecare432 working)
  6. tcp 1433 , udp 1434 exception added firewall. turned off firewall in both system , client system.
  7. sqlbrowser.exe added firewall exception list.
  8. allow remote connections enabled under connections in sql server properties.
  9. 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

Popular posts from this blog

Perl - how to grep a block of text from a file -

delphi - How to remove all the grips on a coolbar if I have several coolbands? -

javascript - Animating array of divs; only the final element is modified -