August 12th, 2012, 02:44 AM
database connectivity problem.
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)
i am trying to connect to the sql server 2005 using odbc driver.... i ve given the data source , user id , pwd. and i am getting this error at con.open() line.....i ve been trying all these using visual studio 2008 .
and there is nothing wrong with my code cos i tried the same code in my friends computer and got the connectivty.... but not in mine ... help me out to recover from this error..... i need some suggestion on the mssql database side ,
August 25th, 2012, 02:25 PM
Try connecting through Sql Server Management Studio?