StoneDeCroze
Programmer
MS SQL 7
Has anyone else encountered a problem whereby a stored procedure hangs when you issue a delete statement that for some reason has nothing to delete?
e.g. If I issue the following in a stored procedure (silly example I know ) it hangs:
DELETE FROM sometable WHERE 1=2
I am having to put an IF statement before each one now to check for records.
Just Curious
Peter
Has anyone else encountered a problem whereby a stored procedure hangs when you issue a delete statement that for some reason has nothing to delete?
e.g. If I issue the following in a stored procedure (silly example I know ) it hangs:
DELETE FROM sometable WHERE 1=2
I am having to put an IF statement before each one now to check for records.
Just Curious
Peter