I cant connect to Sql Server...
Im learning ASP.net and I have the MSDE (stripped down version of SQL server) installed on my computer. I worte a simple 1 page asp. net project and when I try to connect to the database I fail.
Here is the error message...
Exception Details: System.Data.SqlClient.SqlException: SQL Server does not exist or access denied.
Source Error:
Line 48: 'open the database connection and put results into the data reader
Line 49: '----------------------------------------------------------------------
Line 50: objConnection.Open()
Line 51: objReader = objCommand.ExecuteReader
Line 52: '----------------------------------------------------------------------
Now....
The server does exists and there should be no need for a uid or psw.
here is my connection string
Dim objConnection As New SqlClient.SqlConnection("server=.;database=KeepFit;trusted_connection=true")
Any help, I have been stuck for 2 days now.