Support - Knowledge base

Giving you the answers you need

Why not try our knowledge base for instant help and advice to enhance your online experience with Register365? From within the knowledge base you can browse our frequently asked questions and find the right answers to help solve your queries.

Home  >  Scripting  >  ASP (Active Server Pages)  >  View Article

How to make a DNS-less connection to an Access database in Classic ASP:

2*2*2*2*2*

Article

The code below should be sufficient for you to make a DSN-less connection to your access database:

Dim objConn  
Set objConn = Server.CreateObject("ADODB.Connection")  
objConn.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=//nas01/nas/m/y/mydomain.com/db.mdb;"  
objConn.Open

Rate This Article

How useful was this article?

Not useful A little useful Useful Very useful Everything I needed