ASP.net Connectivity to SQL Server 2008 SP1

Have been getting the following error in SharePoint from a custom web part which tries to connect to a SQL Server 2008 SP1 database

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)

Spent several hours diagnosing the problem. The solution is as follows

Start SQL Server Configuration Manager. Click on “Protocols for MSSQLServer”. Enable TCP/IP (which is disabled by default).

Back to the PointBeyond website

0 Responses to “ASP.net Connectivity to SQL Server 2008 SP1”



  1. Leave a Comment

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s





Follow

Get every new post delivered to your Inbox.

Join 279 other followers