Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

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

0
Posted

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

0

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 particular application. ConnectionString = “filedsn=c:\directoryname\file.dsn;DBQ=c:\directoryname\database.mdb” For example: If your file.dsn was located in the “c:\inetpub\website” directory, and your database name was website.mdb, the connection string would be: “filedsn=c:\inetpub\website\file.dsn;DBQ=c:\inetpub\website\website.mdb” 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.

0

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 particular application. ConnectionString = “filedsn=c:\directoryname\file.dsn;DBQ=c:\directoryname\database.mdb” For example: If your file.dsn was located in the “c:\inetpub\website” directory, and your database name was website.mdb, the connection string would be: “filedsn=c:\inetpub\website\file.dsn;DBQ=c:\inetpub\website\website.mdb” 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.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123