WebServer.com.my

Portal Home > Knowledgebase > Scripting, Component & Database > Microsoft Access > Connection to database (MS Access)


Connection to database (MS Access)




Please refer to the sample below to connect to MS Access:-

<% 'comments - this establish connection to the database
Dim conn
Set conn = Server.CreateObject("ADODB.Connection")
conn.ConnectionString="DRIVER={Microsoft Access Driver (*.mdb)}; DBQ=thephysicalpathhere"
conn.Open
%>

* Kindly take note that the physical path would be depending on which server you are residing.



Was this answer helpful?

Add to Favourites Add to Favourites    Print this Article Print this Article