Oct 1, 2004 #1 mp89 Programmer Sep 17, 2004 35 GB Is it possible to test whether or not an UPDATE or INSERT actually updated/inserted a row in your stored procedure? Cheers, Mike
Is it possible to test whether or not an UPDATE or INSERT actually updated/inserted a row in your stored procedure? Cheers, Mike
Oct 1, 2004 1 #2 vongrunt Programmer Mar 8, 2004 4,863 HR @@ERROR for success/failure status and @@ROWCOUNT to get number of row(s) affected... is that enough? Upvote 0 Downvote
@@ERROR for success/failure status and @@ROWCOUNT to get number of row(s) affected... is that enough?
Oct 1, 2004 Thread starter #3 mp89 Programmer Sep 17, 2004 35 GB Thanks Vongrunt, Excellent, just the type of test I was looking for : --on insert if @@rowcount = 0 --no rows were inserted --on update if @@rowcount = 0 --no rows were updated Cheers, Mike Upvote 0 Downvote
Thanks Vongrunt, Excellent, just the type of test I was looking for : --on insert if @@rowcount = 0 --no rows were inserted --on update if @@rowcount = 0 --no rows were updated Cheers, Mike