Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ASP.NET

Status
Not open for further replies.

dvannoy

MIS
May 4, 2001
2,765
US
I am trying to create a web application using .NET and trying to connect to an access database..

can someone give me a connection string to do this??

This is driving me crazy..i have tryed the following

Dim cnn, strCnn

strCnn = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\DB.mdb"

Set cnn = Server.CreateObject("ADODB.Connection")
cnn.Open strCnn

I get the following error..

ADODB could not be created
apartment thread componets cannot be created.

Thanks in advance
 
Your problem is that ASP.Net uses ADO.Net which is very different than the ADO you are trying to use.

has some turtorials and I think at least one of them shows how to work with a database.
Thanks,

Gabe
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top