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\\db\database.mdb"
Conn.Open "Provider=Microsoft.Jet.OLEDB.4.0;" & conString

Was this answer helpful?

 Print this Article

Also Read

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...

Do you support Zend Optimizer?

Yes. We support Zend Optimizer on both our PHP version 4 and 5 installations.

What ASP components do you support?

We support the following ASP components. CDONTSCDOSYSw3 Jmail ProASPSmartUploadASPThumb HSBC...

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...

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...