well for the last couple of days i have almost taken my head out to get this issue resolved.
but still i am no where. i have already referred to so many tips available online but still can't fix the prob.
i am trying to connect a C# ( .net 2005) program to connect to the integrated sql server 2005 instance on my local computer.
i have got windows 7 home basic on my pc with .net frame work 2.0 sp2 and have also upgraded to sql server 2005 sp3 as per some online study.
i have also tried all these steps but still getting the error 40.
1. Check Whether the SQL Server is running or not.
Because the trial to connect to the stopped server may also cause this problem.
2. Check the name of the SQl Server.
For example, if we try to connect to SQL server using .NET application, for some SQL Server, the name of the server "localhost" works, but for some server, we may need to mention "(local)".
3. Check Whether the SQL Browser Service is running
4. Check Whether the TCP/IP is enabled for SQL Server Configuration
* Expand SQL Server Configuration Manager
* Enable TCP/IP
5. Firewall Settings
You may need to add the port of Sql server to the Firewall if it is other than the default port(1433).
Go to Control Panel | Win
View Complete Post