Can not connect to sql server 2005 through visual studio 2005

  • When I tried to connnect to sql server on my local machine thru visual studio 2005 I got an error message .It says:

    An error has occured while establishing a connection to the server.When connecting to sql server 2005 ,this failure may be caused by the fact that under the default settings sql server does not allow remote connections. (provider :Named Pipes Provider,error :40-could not open a coneection to sql server)

    In the sql server configuration  manager I checked the protocols for sql server...named pipes are already enabled...

    Can anybody tell me which default settings I should change to connect to the sql server?

  • Your connection string may not be specifying the instance.

    If your server is named SQL2005 and your database instance is named newDB. "Server Name" should be SQL2005\newDb.

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic. Login to reply