Hi,
I'm newbie to ASP
I used to use this connection string to connect my asp script to mdb in Localhost:
-----------------------------------------
my_connection_file.asp:
Connect_String="Provider=Microsoft.Jet.OLEDB.4.0;Data Source="&Server.MapPath("/somewwwfolder/db/mydatabase.mdb")&";Persist Security Info=False"
-----------------------------------------
it is worked in my localhost.
then now I put the script in some free asp host, all file uploaded, but somehow when i run .asp file, got error in the connection string.
after read the hoster faq, it stated to
related FAQ
How do I connect to my MS Access database?
Make sure your database is in the "db" directory in your file space.
Here is a sample ASP code to connect to a MS Access database.
Set Conn = Server.CreateObject("ADODB.Connection")
strConnection = "DRIVER=Microsoft Access Driver(*.mdb);DBQ=" & Server.MapPath("/USERNAME/db/yourdatabase.mdb")
so my Question is, how do you make a db connection from my_connection_file.asp to become a connection db string as related hoster faq?
thanks in advance,
cepot







Bookmarks