Where to store the connection string for classic ASP?

In ASP.NET, I can store the connection string in the web.config file, for example, I need to save the connection string or some configuration value in some file for the classic ASP.

How can i do this? For this I need to use an XML file and save the connection string in it?

What is the best practice?

+5
source share
3 answers

use globa.asato set the value in the application object.

+6
source

You can create an ASP file containing the connection string as a string variable, as well as any other configuration information, and then include it in the files that connect to the database.

+5

, ...

, , - ( web.config). Web - . , ASP - ' page.asp:: $DATA' page.asp. IIS , , .asp:: $DATA - script. :: $DATA system: NTFS , , , . , page.aspx:: $DATA , .aspx. , IIS ASP , script. , , , . , , .

+2
source

All Articles