What should my connection string be in my GLOBAL.ASA if I am using a File DSN/Datasource?

The connection string you should use in your GLOBAL.ASA should be in the following format. Be aware, you will need to change the paths, filenames and even your connectionstring variable to match your paticular application.


For example: If your file.dsn was located in the "d:\inetpub\website" directory, and your database name was website.mdb, the connection string would be:


The following line will display the location of file.dsn in the root directory of your web, if you don't know it already. Change the filename to a file in your site so it can return the correct information.

Response.Write (Server.MapPath("/file.dsn"))

Get the local path to your website by loging into the Control Center at
and from the menu item SITE click on SITE ADMIN.

Add Feedback