SQL Connection String

  • Thread starter Thread starter John
  • Start date Start date
J

John

Hi

I am using the following to connect to an access db on my local machine;
myConnection = New OleDbConnection("PROVIDER=Microsoft.Jet.OLEDB.4.0;DATA
Source=" & Server.MapPath("/") + "/data/Cal.mdb"). What changes do I need to
make to it to connect to a SQL Server instead?

Thanks

Regards
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top