HELP!
I am getting a 'Too many client tasks' on a page that has this asp script:
I have traced the problem to the con.Open "" line...any suggestions?
I am getting a 'Too many client tasks' on a page that has this asp script:
Code:
<%
' This script loads data from database into application variables
' and displays current zone.
' Connect to database
Set con=Server.CreateObject("ADODB.Connection")
con.ConnectionTimeout=40
' Open database
con.Open "DSN=zoneDb"
Dim currentTable
Dim curr
' Retrieve current ID
Set recordSet=Server.CreateObject("ADODB.Recordset")
recordSet.Open "SELECT * FROM ZoneTbl WHERE TEMP_ID=0",con
Application("curr_id") = recordSet("CURR_ID")
Application("curr_id") = 8
' Build current table name based on curr_id
currentTable = "temp" & Application("curr_id") & "DataTbl"
' Connect with current data table
Set recordSet1=Server.CreateObject("ADODB.Recordset")
recordSet1.Open "SELECT * FROM " & currentTable & "",con
' Load all data of current data table
Do While not recordSet1.EOF
Application(recordSet1("DATA_TYPE")) = recordSet1("DATA")
recordSet1.MoveNext
Loop
'Close database
con.Close
Set con=Nothing
' Display current zone
Server.Execute("tier2/display_curr" & Application("curr_id") & ".asp")
%>