A
Agnes
I am using vb.net to process a SP
The sp are insert XXX select () statment, there are two parameters , Start
Company code and End Company Code,
The user input the range From A to Z or From A to B.
I found that If the range is A to C , the SP runs fine , if the range is A
to Z , I will got Timeout Expired error,
If I run the SP in SQL analyzer, everyting go fines.
Does the error belong to vb.net ?
Dim cmd As New SqlClient.SqlCommand
cmd.Connection = conSea
cmd.CommandText = "dbo.sel_cs_company"
cmd.CommandType = CommandType.StoredProcedure
cmd.Parameters.Add(New SqlParameter("@reportid",
SqlDbType.VarChar, 20)).Value = Me.pReportId
cmd.ExecuteNonQuery()
cmd.Parameters.Clear()
cmd.Dispose()
The sp are insert XXX select () statment, there are two parameters , Start
Company code and End Company Code,
The user input the range From A to Z or From A to B.
I found that If the range is A to C , the SP runs fine , if the range is A
to Z , I will got Timeout Expired error,
If I run the SP in SQL analyzer, everyting go fines.
Does the error belong to vb.net ?
Dim cmd As New SqlClient.SqlCommand
cmd.Connection = conSea
cmd.CommandText = "dbo.sel_cs_company"
cmd.CommandType = CommandType.StoredProcedure
cmd.Parameters.Add(New SqlParameter("@reportid",
SqlDbType.VarChar, 20)).Value = Me.pReportId
cmd.ExecuteNonQuery()
cmd.Parameters.Clear()
cmd.Dispose()