Access web site database

T

Tony

VS 2002/xp pro/win forms
I want to access an Access database on my website from windows forms.
Can this be done?
I tried several different ways for the path but can't seem to get it,
sometimes creating an error "URI not supported"

I tried
Dim cnString As OleDbConnection = New
OleDbConnection("Provider=MicroSoft.Jet.OLEDB.4.0; Data source=
http://www.mywebsite/fpdb/myfile.mdb"

Dim cnString As OleDbConnection = New
OleDbConnection("Provider=MicroSoft.Jet.OLEDB.4.0; Data source=" &
Server.MapPath("\fpdb\Myfile.mdb"))

Dim cnString As OleDbConnection = New
OleDbConnection("Provider=MicroSoft.Jet.OLEDB.4.0; Data source=
//www.mywebsite/fpdb/myfile.mdb"



None seem to work.

this is the error message I'm getting from
adtp.SelectCommand.Connection.Open()

An unhandled exception of type 'System.Data.OleDb.OleDbException' occurred
in system.data.dll


Thanks
 

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

Top