nswan
January 3rd, 2003, 01:05 PM
Hi when i try to run the following code:
Dim objConnection As New SqlClient.SqlConnection("server=.;database=KeepFit;trusted_connection=true")
Dim objCommand As New SqlClient.SqlCommand("Select * from Members", objConnection)
Dim objReader As SqlClient.SqlDataReader
'open our database connection
objConnection.Open()
i get the error-
"SQL Server does not exist or access denied."
I then changed the server to "server=LAPTOP1-NICK\NETSDK" and i get-
"Login failed for user 'LAPTOP1-NICK\ASPNET'"
Anybody know how to solve this?
Help I am going out of my mind!!!
Dim objConnection As New SqlClient.SqlConnection("server=.;database=KeepFit;trusted_connection=true")
Dim objCommand As New SqlClient.SqlCommand("Select * from Members", objConnection)
Dim objReader As SqlClient.SqlDataReader
'open our database connection
objConnection.Open()
i get the error-
"SQL Server does not exist or access denied."
I then changed the server to "server=LAPTOP1-NICK\NETSDK" and i get-
"Login failed for user 'LAPTOP1-NICK\ASPNET'"
Anybody know how to solve this?
Help I am going out of my mind!!!