Ktoshni
asked on
Accessing a database remotely using ASP
Hello,
I aould like to access an Access 2000 database remotely usign an ASP web page (uses VBScript). Currently I use this code to access a local database :
Set DBCon = Server.CreateObject("ADODB .Connectio n")
With DBcon
.Provider = "Microsoft.Jet.OLEDB.4.0"
.open server.mappath("database.m db")
end with
Is there any way I can access a database on another server? I tried using a URL in the open command but it didn't work.
Thanks
I aould like to access an Access 2000 database remotely usign an ASP web page (uses VBScript). Currently I use this code to access a local database :
Set DBCon = Server.CreateObject("ADODB
With DBcon
.Provider = "Microsoft.Jet.OLEDB.4.0"
.open server.mappath("database.m
end with
Is there any way I can access a database on another server? I tried using a URL in the open command but it didn't work.
Thanks
ASKER
No, I want to access the database through a URL if possible since the database is on a server outside the company network
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks, sorry I took so long to answer.
Basically with UNC (//servername/sharename/da
the process running the ASP has enough credentials to access the remote server. After all its logon is being used,
UNC addressing for a file is quite similar to first running a NET USE and then prefixing the file with a drivelletter.
And of course, //servername is preferably to be found through DDNS - although you could also use the IP address instead of the name.
Hope thiz helpz,
<Erik> - The Netherlands