Click to See Complete Forum and Search --> : ado, c# -> connecting over internet


bbondy
June 13th, 2001, 01:25 PM
I'm trying to connect to a database with c# using ado.
I tried the following:
//start of code example
string s = "Provider=Microsoft.Jet.OLEDB.4.0 ;Data Source=" +
@"http://64.230.69.252/DocumentDatabase.mdb";
adoConnection = new ADOConnection(s);
//end of code example

however this doesn't work! Note that I'm trying this on a WinForm on the .net
platform. I can get it to work if the DocumentDatabase.mdb file is on my hard
disk but not on a server. Is there an easy way to do this? Or am I completly on
the wrong track?

Thanks in Advanced,
Brian R. Bondy



+=+=+=+=+=+=+=+=+=+
Brian R. Bondy