SQL server does not exist or access denied
Hello
I have set up a SQL database and a ASP.Net application.
When l click on a button to fill a datagrid with data from a table
in the database i get this error message when l try to open the
database connection. This is my code
Code:
'Setup our core objects, mainly for use with our database
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() //Error - SQL server does not exist or access denied
Many thanks in advance
Steve