Dan
Thu Nov 20 08:01:51 CST 2003
I think you're right. I'll have to restructure my logic.
--
Dan Sikorsky, MSCS BSCE BAB
"Tom B" <shuckle@NOSPAMhotmail.com> wrote in message
news:uIkHB3wrDHA.2364@TK2MSFTNGP09.phx.gbl...
> I don't think you can, if that's the only connection you have to the
second
> database.
>
> I think what I would do, is have my asp page on website one, create
> insert/update/delete statements and send them to my asp page on website
two.
> The page on website two, would then process the queries.
>
> Another option, would be to have website one download the entire access
> database locally and use it. Assuming of course that you just want to
read
> from the database.
>
>
>
> "Dan Sikorsky" <dsikor@gte.net> wrote in message
> news:u4bYYrvrDHA.1760@TK2MSFTNGP10.phx.gbl...
> > How do you use server.mappath to update a access database on a
completely
> > different computer? One of my websites needs to update a database on a
> > completely different website.
> >
> > Example:
> > My ASP page is on
http://www.websiteone.com and I want to update the
> > database on
http://www.websitetwo.com
> >
> > // where is the Access database?
> >
> > var sDBPath = Server.MapPath (
'
http://www.websitetwo.com/data/DB.mdb' );
> >
> >
> >
> > // make up the connection string
> >
> > var sConnectionString = 'Provider=Microsoft.Jet.OLEDB.4.0; ';
> >
> > sConnectionString += 'Data Source=' + sDBPath;
> >
> >
> >
> > When connecting, I get a "An invalid character was specified in the Path
> > parameter for the MapPath method" error message.
> >
> >
> > --
> > Dan Sikorsky, MSCS BSCE BAB
> >
> >
> >
>
>