O
orchid_zlcn
Unregistered / Unconfirmed
GUEST, unregistred user!
这是我的global.asa文件Application_OnStart的内容:
Sub Application_OnStart
Application("Connection1_ConnectionString") = "DSN=wzglDSN;User Id=sa;PASSWORD=7012086;UID=sa;APP=楍牣獯景?敄敶潬浰湥?湅楶潲浮湥t1 牐摯捵噴牥楳湯;WSID=AMD-001;DATABASE=test"
Application("Connection1_ConnectionTimeout") = 30
Application("Connection1_CommandTimeout") = 90
Application("Connection1_CursorLocation") = 3
Application("Connection1_RuntimeUserName") = "sa"
Application("Connection1_RuntimePassword") = "7012086"
End Sub
我在ASP页中
Set rs= Server.CreateObject("ADODB.Recordset")
Set Conn = Server.CreateObject("ADODB.Connection")
Conn.open "wzglDSN","sa","7012086"
rs.open sql,conn,1,1
这样写太明显了,能不能用session结合global.asa文件的参数,不知该如何写?
Sub Application_OnStart
Application("Connection1_ConnectionString") = "DSN=wzglDSN;User Id=sa;PASSWORD=7012086;UID=sa;APP=楍牣獯景?敄敶潬浰湥?湅楶潲浮湥t1 牐摯捵噴牥楳湯;WSID=AMD-001;DATABASE=test"
Application("Connection1_ConnectionTimeout") = 30
Application("Connection1_CommandTimeout") = 90
Application("Connection1_CursorLocation") = 3
Application("Connection1_RuntimeUserName") = "sa"
Application("Connection1_RuntimePassword") = "7012086"
End Sub
我在ASP页中
Set rs= Server.CreateObject("ADODB.Recordset")
Set Conn = Server.CreateObject("ADODB.Connection")
Conn.open "wzglDSN","sa","7012086"
rs.open sql,conn,1,1
这样写太明显了,能不能用session结合global.asa文件的参数,不知该如何写?