V
verci
Hi, sorry if this seems stupid
I'm running WindowsXP, Asp.net 1.1 and Sql Server 2000 , the problem is the
my pages are timing randomly, I use a ODBC connection to the database in
the global.asa file (below), the problem is that my pages some times work
right and some times they time out, but it is sporadically, can anybody help
me?
<SCRIPT LANGUAGE=VBScript RUNAT=Server>
'EventName Description
'Session_OnStart Runs the first time a user runs any page in your
application
'Session_OnEnd Runs when a user's session times out or quits your
application
'Application_OnStart Runs once when the first page of your application is
run for the first time by any user
'Application_OnEnd Runs once when the web server shuts down
Sub Application_OnStart
Application("strConnectString") =
"DSN=WorkDB;Database=EspecialDB;UID=sa;PWD=!*bman~;"
End Sub
</SCRIPT>
And do my work on the database using ADO.net to execute some stored
procedures in my database with the following code:
dim strQuery
dim dateRS
dim objConn, Cmd
set objConn = Server.CreateObject("ADODB.Connection")
objConn.ConnectionTimeout = 0
objConn.Open Application("strConnectString")
strQuery = "TimeFrame"
Set dateRS = objConn.Execute(strQuery)
Regards
I'm running WindowsXP, Asp.net 1.1 and Sql Server 2000 , the problem is the
my pages are timing randomly, I use a ODBC connection to the database in
the global.asa file (below), the problem is that my pages some times work
right and some times they time out, but it is sporadically, can anybody help
me?
<SCRIPT LANGUAGE=VBScript RUNAT=Server>
'EventName Description
'Session_OnStart Runs the first time a user runs any page in your
application
'Session_OnEnd Runs when a user's session times out or quits your
application
'Application_OnStart Runs once when the first page of your application is
run for the first time by any user
'Application_OnEnd Runs once when the web server shuts down
Sub Application_OnStart
Application("strConnectString") =
"DSN=WorkDB;Database=EspecialDB;UID=sa;PWD=!*bman~;"
End Sub
</SCRIPT>
And do my work on the database using ADO.net to execute some stored
procedures in my database with the following code:
dim strQuery
dim dateRS
dim objConn, Cmd
set objConn = Server.CreateObject("ADODB.Connection")
objConn.ConnectionTimeout = 0
objConn.Open Application("strConnectString")
strQuery = "TimeFrame"
Set dateRS = objConn.Execute(strQuery)
Regards