I have a asp page that uses the following connection stored in a file called connection.asp.
e.g i use <!--#include file="connection.asp"--> at the top of my main page and use below stored in connection.asp
<%
set cnn = server.createobject("ADODB.Connection")
cnn.open "PROVIDER=SQLOLEDB;DATA SOURCE=<SERVER>;UID=<USER>;PWD=<PASS>;DATABASE=<DB>"
%>
However I would like the page to use multiple connections, in multiple connection files.
e.g connection1.asp, connection2.asp etc
how do i go about this so i can dynamically select which connection file i would like to use.
thanks
e.g i use <!--#include file="connection.asp"--> at the top of my main page and use below stored in connection.asp
<%
set cnn = server.createobject("ADODB.Connection")
cnn.open "PROVIDER=SQLOLEDB;DATA SOURCE=<SERVER>;UID=<USER>;PWD=<PASS>;DATABASE=<DB>"
%>
However I would like the page to use multiple connections, in multiple connection files.
e.g connection1.asp, connection2.asp etc
how do i go about this so i can dynamically select which connection file i would like to use.
thanks