D
Des Perado
I have just tried this, and it works:
Global.asa contains:
sub Session_OnStart
set Session("conn")=Server.CreateObject("ADODB.Connection")
dsntemp="driver={sql Server}; server=master1; database=db1; uid=sa; pwd=;
dsn=;"
session("conn").Open dsntemp
end sub
and in any asp:
sql="select * from table1"
set rs=session("conn").execute(sql)
As I say, it works.
But is there any reason we shouldn't do this? Is it bad?
TIA
Global.asa contains:
sub Session_OnStart
set Session("conn")=Server.CreateObject("ADODB.Connection")
dsntemp="driver={sql Server}; server=master1; database=db1; uid=sa; pwd=;
dsn=;"
session("conn").Open dsntemp
end sub
and in any asp:
sql="select * from table1"
set rs=session("conn").execute(sql)
As I say, it works.
But is there any reason we shouldn't do this? Is it bad?
TIA