473,385 Members | 2,243 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Having a timeout problem

tfs
I have a page that is running a DTS package and takes anywhere from 1
minute to 20 minutes. When it comes back it displays in my textbox
the results.

The problem is that on the long packages, the page times out after
about 30 seconds.

What is the best way to display a now processing ticker and prevent
the page from timing out?

Here is a snippet of the code I am running:

Dim objConnect as SqlConnection = new
SqlConnection(System.Configuration.ConfigurationSe ttings.AppSettings("MM_CONNECTION_STRING_Contour_S erver"))

objConnect.Open()

sqlString = "exec master.dbo.xp_cmdshell 'dtsrun /S " &
chr(34) & "OPENWORX" & chr(34)
& " /N " & chr(34) &
request.QueryString("name") & chr(34)
& " /E '"

Dim objCommand as SqlCommand = new SqlCommand(sqlString,
objConnect)
Dim objDataReader as SqlDataReader = objCommand.ExecuteReader( _
CommandBehavior.CloseConnection)

dim ktr as integer
ktr = 0
while (objDataReader.Read() = true)
if(objDataReader(0) is System.DBNull.value) then
sResults = ""
else
sResults = objDataReader(0)
end if

results.text = results.text & sResults & vbCrLf
ktr = ktr + 1
end while

results.text = results.text & "at end of loop ktr = "
& ktr & vbCrLf
objDataReader.Close()
objCommand.Dispose()
objConnect.Close()
The code sits at the ExecuteReader until the DTS Package is done.

Thanks,

Tom.

Nov 18 '05 #1
3 1445
The DTS package needs to be started from an assyncronous process. One that starts it and returns to the page an immediate result. The page
then need to poll the process for progress (basically refreshing itself every 5 seconds or so).

Bobby Ryzhy
bobby@ domain below
http://weekendtech.net
On 12 Jul 2004 18:03:29 -0500, tf*@dslextreme-dot-com.no-spam.invalid (tfs) wrote:
I have a page that is running a DTS package and takes anywhere from 1
minute to 20 minutes. When it comes back it displays in my textbox
the results.

The problem is that on the long packages, the page times out after
about 30 seconds.

What is the best way to display a now processing ticker and prevent
the page from timing out?

Here is a snippet of the code I am running:

Dim objConnect as SqlConnection = new
SqlConnection(System.Configuration.ConfigurationS ettings.AppSettings("MM_CONNECTION_STRING_Contour_ Server"))

objConnect.Open()

sqlString = "exec master.dbo.xp_cmdshell 'dtsrun /S " &
chr(34) & "OPENWORX" & chr(34)
& " /N " & chr(34) &
request.QueryString("name") & chr(34)
& " /E '"

Dim objCommand as SqlCommand = new SqlCommand(sqlString,
objConnect)
Dim objDataReader as SqlDataReader = objCommand.ExecuteReader( _
CommandBehavior.CloseConnection)

dim ktr as integer
ktr = 0
while (objDataReader.Read() = true)
if(objDataReader(0) is System.DBNull.value) then
sResults = ""
else
sResults = objDataReader(0)
end if

results.text = results.text & sResults & vbCrLf
ktr = ktr + 1
end while

results.text = results.text & "at end of loop ktr = "
& ktr & vbCrLf
objDataReader.Close()
objCommand.Dispose()
objConnect.Close()
The code sits at the ExecuteReader until the DTS Package is done.

Thanks,

Tom.


Bobby Ryzhy
bobby @ domain below
http://weekendtech.net
Nov 18 '05 #2
"Bobby Ryzhy" <bo***@weekendtech.net> wrote in message
news:rq********************************@4ax.com...
The DTS package needs to be started from an assyncronous process. One that starts it and returns to the page an immediate result. The page then need to poll the process for progress (basically refreshing itself every 5 seconds or so).

How would I do that? I assume that is not what I am doing now?

Tom.


Bobby Ryzhy
bobby@ domain below
http://weekendtech.net
On 12 Jul 2004 18:03:29 -0500, tf*@dslextreme-dot-com.no-spam.invalid (tfs) wrote:
I have a page that is running a DTS package and takes anywhere from 1
minute to 20 minutes. When it comes back it displays in my textbox
the results.

The problem is that on the long packages, the page times out after
about 30 seconds.

What is the best way to display a now processing ticker and prevent
the page from timing out?

Here is a snippet of the code I am running:

Dim objConnect as SqlConnection = new


SqlConnection(System.Configuration.ConfigurationS ettings.AppSettings("MM_CO

NNECTION_STRING_Contour_Server"))

objConnect.Open()

sqlString = "exec master.dbo.xp_cmdshell 'dtsrun /S " &
chr(34) & "OPENWORX" & chr(34)
& " /N " & chr(34) &
request.QueryString("name") & chr(34)
& " /E '"

Dim objCommand as SqlCommand = new SqlCommand(sqlString,
objConnect)
Dim objDataReader as SqlDataReader = objCommand.ExecuteReader( _
CommandBehavior.CloseConnection)

dim ktr as integer
ktr = 0
while (objDataReader.Read() = true)
if(objDataReader(0) is System.DBNull.value) then
sResults = ""
else
sResults = objDataReader(0)
end if

results.text = results.text & sResults & vbCrLf
ktr = ktr + 1
end while

results.text = results.text & "at end of loop ktr = "
& ktr & vbCrLf
objDataReader.Close()
objCommand.Dispose()
objConnect.Close()
The code sits at the ExecuteReader until the DTS Package is done.

Thanks,

Tom.


Bobby Ryzhy
bobby @ domain below
http://weekendtech.net

Nov 18 '05 #3
go to groups.google.com and type in asyncronous webservice.

Bobby Ryzhy
bobby@ domain below
http://weekendtech.net

On Tue, 13 Jul 2004 16:36:07 -0700, "Thomas Scheiderich" <tf*@deltanet.com> wrote:
"Bobby Ryzhy" <bo***@weekendtech.net> wrote in message
news:rq********************************@4ax.com.. .
The DTS package needs to be started from an assyncronous process. One

that starts it and returns to the page an immediate result. The page
then need to poll the process for progress (basically refreshing itself

every 5 seconds or so).

How would I do that? I assume that is not what I am doing now?

Tom.


Bobby Ryzhy
bobby@ domain below
http://weekendtech.net
On 12 Jul 2004 18:03:29 -0500, tf*@dslextreme-dot-com.no-spam.invalid

(tfs) wrote:
>I have a page that is running a DTS package and takes anywhere from 1
>minute to 20 minutes. When it comes back it displays in my textbox
>the results.
>
>The problem is that on the long packages, the page times out after
>about 30 seconds.
>
>What is the best way to display a now processing ticker and prevent
>the page from timing out?
>
>Here is a snippet of the code I am running:
>
>Dim objConnect as SqlConnection = new


SqlConnection(System.Configuration.Configuration Settings.AppSettings("MM_CO

NNECTION_STRING_Contour_Server"))
>
>objConnect.Open()
>
>sqlString = "exec master.dbo.xp_cmdshell 'dtsrun /S " &
>chr(34) & "OPENWORX" & chr(34)
>& " /N " & chr(34) &
>request.QueryString("name") & chr(34)
>& " /E '"
>
>Dim objCommand as SqlCommand = new SqlCommand(sqlString,
>objConnect)
>Dim objDataReader as SqlDataReader = objCommand.ExecuteReader( _
> CommandBehavior.CloseConnection)
>
>dim ktr as integer
>ktr = 0
>while (objDataReader.Read() = true)
> if(objDataReader(0) is System.DBNull.value) then
> sResults = ""
> else
> sResults = objDataReader(0)
> end if
>
> results.text = results.text & sResults & vbCrLf
> ktr = ktr + 1
>end while
>
>results.text = results.text & "at end of loop ktr = "
>& ktr & vbCrLf
>objDataReader.Close()
>objCommand.Dispose()
>objConnect.Close()
>
>
>The code sits at the ExecuteReader until the DTS Package is done.
>
>Thanks,
>
>Tom.


Bobby Ryzhy
bobby @ domain below
http://weekendtech.net


Bobby Ryzhy
bobby @ domain below
http://weekendtech.net
Nov 18 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Solel Software | last post by:
Hello I have a SQL Server 2000 database query that takes a long time (about 1.5 min in SQL Query Analyser) that I am running from a web page. I keep getting a Timeout error regardless of how long...
9
by: Hasani \(remove nospam from address\) | last post by:
I have a website with 2 aspx pages Foo.aspx, and bar.aspx The content of both files is //in 1 file Hello <%=Session.ToString()%> ================
8
by: bdeviled | last post by:
I am deploying to a web environment that uses load balancing and to insure that sessions persist across servers, the environment uses SQL to manage sessions. The machine.config file determines how...
17
by: jensen bredal | last post by:
Hello, i'm struggling with a somehow badly understood session scenario. I provide acces to my pages based on form authentication using Session cookies. Som of my pages are supposed to be...
10
by: greenb | last post by:
Our asp.net web app uses a .NET component (DLL) in the bin directory to call several stored procedures back to back to perform updates. They don't return any data. Sometimes the total execution...
0
by: Jozef | last post by:
Hello, I'm having trouble with the download links on my web server. The error I'm getting is; CGI Timeout The specified CGI application exceeded the allowed time for processing. The server...
8
by: BBC1009 | last post by:
I have an application connected to an overseas sql-server using port 1433. But recently it always timeout the connection. Any solution to avoid this??? I am using the VB.net Windowed Form with...
3
by: Mike | last post by:
Timeout Calling Web Service I am calling a .NET 1.1 web service from an aspx page. The web service can take several minutes to complete its tasks before returning a message to the aspx page. ...
10
by: Atul Shukla | last post by:
Hi, How can I avoid application timeout? Generally a web application time out is 20 minutes, however, we can define this timeout in web.config to any number of minutes. After giving 500 minutes of...
3
Atli
by: Atli | last post by:
Hi everybody. This is not so much a problem, since I have already managed to find a solution, but my solution requires the use of the eval() function, which I just hate to use. The problem is...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.