How do i connect to an Access database?

An example connection string to an MS Access database is below:-

Set Conn = Server.CreateObject("ADODB.Connection")
conString = "Data Source=D:\domains\yourdomain.com\db\database.mdb"
Conn.Open "Provider=Microsoft.Jet.OLEDB.4.0;" & conString

Was this answer helpful?

 Print this Article

Also Read

How do I debug ASP scripts?

Our servers are configured to send detailed error messages to the browser window, these error...

Where should i upload my MS Access database to?

There is a directory in your FTP root named "DB". You should place all MS Access databases and...

How do i create a MS SQL Server database?

Please note that you may need to purchase MS SQL Server 2005 as an optional extra before...

What is the physical path to my web space?

To see the physical path to your webspace you need to follow these steps: Log into your hosting...

How do i send emails using an ASP page?

You can use any of the following components to send emails via ASP. CDONTSCDOSYSw3 Jmail Pro...