Error in connecting SQL server 2005

alok7727

New member
Joined
Nov 16, 2006
Messages
2
Programming Experience
1-3
I am trying to connect to a SQL server 2005 located on the local machine and it is giving me the following err
An error has occurred 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 connection to SQL Server).Net SqlClient Data Provider
 
Here is the Connection string:
Dim con As New SqlConnection()
con.ConnectionString =
"data source =Contract; user id =sa; password=dipl0m@t;"


 
Back
Top