Commenting the lines out will work fine for the time being. My only fear is when and if the site moves to another server, somebody will need to make the modifications again. I can tell the customer to have their new provider setup the same basic structure (public_html, db) but the location and...
I design on my local system and then upload to the client's server. Several times I have accidently uploaded the page with the db location for my local system. So I have to go back and modify the page for the customers server.
Yes I tried using the following method but when I did it would return c:\inetpub\domainroot\public_html\some.mdb for the location.
Set Conn = Server.CreateObject("ADODB.Connection")
Conn.Open "driver={Microsoft Access Driver (*.mdb)};dbq=" & Server.MapPath("some.mdb") & "
I am currently developing a page that is running on my local system and on a remote site. I need to be able to connect my ASP page to an Access database. I have always done this by hard coding the location or setting up a DSN in the control panel. My system and the remote site store the data in...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.