I have a file called datasource.asp, with the following contents:
Since the application source code gets deployed to our dev, test, and prod environments, and each environment has a different password for the connection, I would like to read in the password from a properties file that is stored outside of the source code's root directory. This would isolate the environment-specific data and prevent anything from getting overwritten during the deployment process.
For example, if all of the .asp files are stored in the /project_x/app directory, I'd like to have the password stored in /project_x/properties/db_properties.properties (or db_properties.txt, etc.).
Can someone please point me to some documentation on properties files in ASP? I've searched and the closest I've come is this: which is just a how-to on using an include file rather than reading in specific data from a properties file.
Code:
<%
Set conn = Server.CreateObject("ADODB.Connection")
conn.open "ApplicationDataSource","db_table","db_password"
Set Session("ApplicationDataSource_conn") = conn
%>
For example, if all of the .asp files are stored in the /project_x/app directory, I'd like to have the password stored in /project_x/properties/db_properties.properties (or db_properties.txt, etc.).
Can someone please point me to some documentation on properties files in ASP? I've searched and the closest I've come is this: which is just a how-to on using an include file rather than reading in specific data from a properties file.