Re: connecting to a database
Try this minor fix first:
Code:
Dim nwindConn As SqlConnection = New SqlConnection("Data Source=localhost\SQLExpress;Initial Catalog=northwind;" & _
"Integrated Security=SSPI")
Re: connecting to a database
Hi,
The connection string in your reply is exactly the same as the one in my actual code.
Northwnd was just a typing error I made whilst listing the problem on this forum.
I have resolved the problem ( well sort of ) by using Oledbconnection intead of sqlconnection.
But this causes further problems. Because I'm working with stored procedures I'm running into problems, and I keep getting a error message . I have been told using Oledbconnection with stored procedures won't work because "OleDb Provider for SQL Compact only implements a forward only cursor, so using it with Datasets are out of the question ".
Is this correct, and is there a solution.