kred
09-03-2004, 04:55 PM
Good day,
here the situtation:
-I have the clients asp pages that links to their database.
-They gave me a copy of their DB as an Access file
--Now I need to run a couple of queries to check my pages from my server, how do I connect to my DB without rewriting their code(or change it as little as possible) because after the client aproves the page they put it back on their server, with the old path to connect to their DB
<object id="objCONN" Progid="ADODB.Connection" Runat="server">
</object>
<object id="rs1" Progid="ADODB.Recordset" Runat="server">
</object>
<object id="objRS2" Progid="ADODB.Recordset" Runat="server">
</object>
<%Dim sql1
objCONN.open Application("Products_ConnectionString")
sql1 = "SELECT i, school, date_start, career_fair FROM recruiting_calendar ORDER BY date_start DESC"
objRS1.CursorType = 2
objRS1.LockType=3
objRS1.source = sql1
objRS1.ActiveConnection = objCONN
objRS1.Open
%>
???sorry if this sounds like a newbie question but I am a newbie???
any help or direction would be great
thanks
Ken
here the situtation:
-I have the clients asp pages that links to their database.
-They gave me a copy of their DB as an Access file
--Now I need to run a couple of queries to check my pages from my server, how do I connect to my DB without rewriting their code(or change it as little as possible) because after the client aproves the page they put it back on their server, with the old path to connect to their DB
<object id="objCONN" Progid="ADODB.Connection" Runat="server">
</object>
<object id="rs1" Progid="ADODB.Recordset" Runat="server">
</object>
<object id="objRS2" Progid="ADODB.Recordset" Runat="server">
</object>
<%Dim sql1
objCONN.open Application("Products_ConnectionString")
sql1 = "SELECT i, school, date_start, career_fair FROM recruiting_calendar ORDER BY date_start DESC"
objRS1.CursorType = 2
objRS1.LockType=3
objRS1.source = sql1
objRS1.ActiveConnection = objCONN
objRS1.Open
%>
???sorry if this sounds like a newbie question but I am a newbie???
any help or direction would be great
thanks
Ken