Connection to Access Database remotely - Programmers Heaven

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!


Connection to Access Database remotely

ljubaljuba Posts: 106Member

I made one site and everything work fine ... But client need to have similar site on other server which will use same database ... no two databases ... because if any change happend on one of sites change will bi visible in both ... So how I connect to same databse from other server. Database is not in invisible part of server and I can download it from server like example:

In first site I connect to databse without problem like:

set cn = Server.CreateObject("ADODB.Connection")
set rs = Server.CreateObject("ADODB.Recordset")
db = Server.MapPath("database/db.mdb")
cs = "Driver={Microsoft Access Driver (*.mdb)}; DBQ=" & db & ";"
cn.Open cs

But whatever I tried to change in 3rd line I can't connect from other server. I made one combination in PHP and MySQL but here I have problem. Any suggestion? Thanks.



Sign In or Register to comment.