If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > ASP > server running slow

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 09-28-03, 07:22
applelzy applelzy is offline
Registered User
 
Join Date: Sep 2003
Location: Malaysia
Posts: 7
Question server running slow

PLz help me, i m new here. I need someone to help me check this coding and see wht the actual problem.Coz when i click submit the page will come out a error msg writing :-
Error Type:
Active Server Pages, ASP 0113 (0x80004005)
The maximum amount of time for a script to execute was exceeded. You can change this limit by specifying a new value for the property Server.ScriptTimeout or by changing the value in the IIS administration tools.
/demo/display.asp

and below is my coding
<%
dim rsSex
set rsSex=server.CreateObject("adodb.connection")
set rsSex=server.CreateObject("adodb.recordset")
rsSex.open "c:/Host/demo/demo.mdb"

rsSex = "SELECT * FROM tblUsers "
do while not rsSex.EOF
response.Write"<td>" & rsSex("Gender"& err.description)&"</td>"
rsSex.movenext
loop
rssex.close
set rssex=nothing
%>

p/s: i already set the timeout time to 5second..but still nothing display.
Thanks
Reply With Quote
  #2 (permalink)  
Old 09-28-03, 15:14
jlot6 jlot6 is offline
Registered User
 
Join Date: Sep 2003
Location: Newark, Vermont
Posts: 20
I see several problems...

1. rsSex is used to name the connection string and the recordset string.
2. When opening the recordset, you must add the recordset parameters: connection, cursor type, lock type and option

Hope this helps...
Reply With Quote
  #3 (permalink)  
Old 10-09-03, 03:20
rajivlodha rajivlodha is offline
Registered User
 
Join Date: Oct 2003
Location: India, West Bengal, Calcutta(Kolkata)
Posts: 1
Re: server running slow

Try using diff variables for diff purpose,

<%
dim oConn, oRs, sSQL, rsSex

set oConn=server.CreateObject("adodb.connection")
set oRs=server.CreateObject("adodb.recordset")

oConn.open "c:/Host/demo/demo.mdb"
sSQL = "SELECT * FROM tblUsers "
oRs = oConn.Execute(sSQL)
Response.Write("<table>")
do while not oRS.EOF
'...........................
'write ur statements here
Response.Write("<tr><td>")
Response.Write(oRS("_ColName_").value)
Response.Write("</td></tr>")
'..........................
oRS.movenext
loop
Response.Write("</table>")
rssex.close
set oRs=nothing
set oConn = nothing
set sSQL = nothing

%>

Last edited by rajivlodha; 10-09-03 at 03:23.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On