B
Bob
I have a stored procedure that takes 4 seconds to execute (returning 3840 rows)
from Query Analyser, yet when I fill it using the following (assume the variable
SQL is the stored procedure)
Dim cmd As SqlCommand
Dim ds As New DataSet
Dim sa As SqlDataAdapter
cmd = New SqlCommand(SQL, cn)
sa = New SqlDataAdapter(cmd)
sa.Fill(ds)
it times out or takes much, much longer than 4 seconds - on the order of a
minute. This delay has a lot of corresponding server processor activity but
absolutely none for the client.
I've read some previous posts about timeout issues, but none of them explain
this performnace degradation. All I want is the data, and no extra overhead. Is
there any way in .Net I can get the *same* performance that I get from QA?
The same problem happens in VB6 using recordsets - the 4 second query takes 62
seconds.
I already looked at the DataSetSurrogate and it performance is worse.
http://support.microsoft.com/?id=829740
DataReader shows the same behavior/problem, only it times out at 30 seconds and
reports "system error".
Someone please help.
TIA,
Bob
from Query Analyser, yet when I fill it using the following (assume the variable
SQL is the stored procedure)
Dim cmd As SqlCommand
Dim ds As New DataSet
Dim sa As SqlDataAdapter
cmd = New SqlCommand(SQL, cn)
sa = New SqlDataAdapter(cmd)
sa.Fill(ds)
it times out or takes much, much longer than 4 seconds - on the order of a
minute. This delay has a lot of corresponding server processor activity but
absolutely none for the client.
I've read some previous posts about timeout issues, but none of them explain
this performnace degradation. All I want is the data, and no extra overhead. Is
there any way in .Net I can get the *same* performance that I get from QA?
The same problem happens in VB6 using recordsets - the 4 second query takes 62
seconds.
I already looked at the DataSetSurrogate and it performance is worse.
http://support.microsoft.com/?id=829740
DataReader shows the same behavior/problem, only it times out at 30 seconds and
reports "system error".
Someone please help.
TIA,
Bob