SteveMac32
Programmer
My VB6 program calls a stored procedure (SQL server 2000) that runs the code outlined below
CREATE PROCEDURE [spExportResetDNP]
@TableName as varchar(50)
AS
Declare @SQL as varchar(250)
Set @SQL = 'UPDATE ' + @TableName + ' SET ExpProcess = Null Where ExpProcess = 1'
Exec (@SQL)
GO
there are only about 750000 rows.
Now this worked fine for quite a while until the beginning of December when it started getting the Error -2147217871 (Timeout expired).
Here's the kicker it only fails on the timeout if there are no records matching the ExpProcess.....
If i manually amend one record to have a ExpProcess = 1 then it runs fine..
The user has full permissions
The ConnectionTimeout = 0
I have gone as far as i can with this and have no solutions can any of you help.
Thanks loads
Steve Mac
CREATE PROCEDURE [spExportResetDNP]
@TableName as varchar(50)
AS
Declare @SQL as varchar(250)
Set @SQL = 'UPDATE ' + @TableName + ' SET ExpProcess = Null Where ExpProcess = 1'
Exec (@SQL)
GO
there are only about 750000 rows.
Now this worked fine for quite a while until the beginning of December when it started getting the Error -2147217871 (Timeout expired).
Here's the kicker it only fails on the timeout if there are no records matching the ExpProcess.....
If i manually amend one record to have a ExpProcess = 1 then it runs fine..
The user has full permissions
The ConnectionTimeout = 0
I have gone as far as i can with this and have no solutions can any of you help.
Thanks loads
Steve Mac