Microsoft Access and ASP connection script for Windwos 2008 / 2012 shared hosting

We don't offer Windows 2008 or Windows 2012 Shared Hosting Service anymore but we now offer Windows 2016 Shared Server. You can use the following database connection string to use the Microsoft Access database with ASP script.

Sample 1

<%
strCN = "DRIVER={Microsoft Access Driver (*.mdb)};" & _
            "DBQ="& server.mappath("database.mdb") &""
Set objCN = Server.CreateObject("ADODB.Connection")
objCN.Open strCN
response.write("connection successful")
%>

 

Sample 2

Dim objConn
Set objConn=Server.CreateObject("ADODB.Connection")
objConn.ConnectionString = "Provider=Microsoft.ACE.OLEDB.12.0;Data Source=C:\domains\your-user-name\your-website-name\data\database-file-name.mdb;"
objConn.Open
  • 0 Users Found This Useful

Was this answer helpful?

Related Articles

How to use Dundas Chart?

How to create a Basic Pie Chart with Dundas Chart To use this control in a web site, you will...

How to send Emails via ASP using SMTP authentication?

This topic includes the sample code to send email from ASP.Net using C# code :Sample Code :...

How to disable Deprecated Function Notices in PHP?

PHP has deprecated some functions in latest version. If the same functions are still on your...

How to use Dundas Upload?

Dundas upload control is a flexible and reliable component allows you to accept, save, and...

FormMail script for Windows 2008 / 2012 customers

We don't offer Windows 2008 and 2012 Shared Hosting but we offer Windows Server 2016 with Plesk...