Thursday, May 10, 2012

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) (.Net SqlClient Data Provider)

1)Go to All Programs >> Microsoft SQL Server 2005/2008 >> Configuration Tools >> SQL Server Configuration Manager >> SQL Server Services, and check if SQL Server service status is “Running”.


2)1)Go to All Programs >> Microsoft SQL Server 2005/2008 >> Configuration Tools >> SQL Server Configuration Manager >> SQL Server netwok confi.>Protocol for mssql>tcp/ip make it true


3)go to sql login>right click on sql(sql server)>connection >true allowo remote connection true





No comments:

Post a Comment