ReportPortal
ReportPortal
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 ReportPortal General Forum
 Report Portal General Issues
 Time Out in SQL Reports
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Gustavo

Argentina
1 Posts

Posted - 10/07/2004 :  10:31:23  Show Profile  Reply with Quote
Hi
In SQL Reports (when the time for query results exceeds 1 min. or more), I've got the message 'SQL: Select .... ' and not the query results.
If I execute the query on other tool its works fine.
I use the string 'Connect TimeOut=300' in the Connection string but it not works.
How can I configure Report Portal for that querys?

Thanks
Gustavo - Argentina

admin

1647 Posts

Posted - 10/08/2004 :  07:17:31  Show Profile  Reply with Quote
Modify sql\i_query.asp CreateTable() function to call this function:

Function GetRecordset(sSQL,sConnectionString)
Dim cmd
Set cmd = Server.CreateObject("ADODB.Command")
cmd.ActiveConnection = sConnectionString
cmd.CommandText = sSQL
cmd.CommandTimeout = 60*60
Server.ScriptTimeout = 60*60
Set GetRecordset = cmd.Execute()
End Function

Change the line below to call the function
'rs.Open sSql, sReportConnection
set rs = GetRecordset(sSql, sReportConnection)
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
ReportPortal © 2000-2002 Snitz Communications Go To Top Of Page