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!


Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.

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.