|
yb2 -> RE: database connections (4/16/2006 13:21:38)
|
Look into OLEDB connections, you can put the 3 or 4 lines of code into a file and then INCLUDE it on any page it's needed. You could even put the Include file in a directory where all your sites could access it, and then any changes could be made in one place?
<%
Dim myConn
Set myConn = Server.CreateObject("ADODB.Connection")
strConnString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=D:\secure\etc\yourDB.mdb"
myConn.Open strConnString
%>
I don't know how this will fit in with the DRW stuff as I never use it, but someone will know.
|
|
|
|