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.SqlCo mmand
cmd.Connection = conSea
cmd.CommandText = "dbo.sel_cs_com pany"
cmd.CommandType = CommandType.Sto redProcedure
cmd.Parameters. Add(New SqlParameter("@ reportid",
SqlDbType.VarCh ar, 20)).Value = Me.pReportId
cmd.ExecuteNonQ uery()
cmd.Parameters. Clear()
cmd.Dispose()
--
Thanks !
--
..
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.SqlCo mmand
cmd.Connection = conSea
cmd.CommandText = "dbo.sel_cs_com pany"
cmd.CommandType = CommandType.Sto redProcedure
cmd.Parameters. Add(New SqlParameter("@ reportid",
SqlDbType.VarCh ar, 20)).Value = Me.pReportId
cmd.ExecuteNonQ uery()
cmd.Parameters. Clear()
cmd.Dispose()
--
Thanks !
--
..
Comment