My sp creates an error report.
at a certain stage i want it to stop running if there
are errors in thar report.
I wrote:
Expand|Select|Wrap|Line Numbers
- DECLARE @myparam INTEGER
- SELECT @myparam=COUNT(*) FROM report_errors1
- IF (@myParam>0)
- BEGIN
- print 'stop running due to existing errors ! '
- commit
- END
the procedure operates next commands.
I wonder if anyone will be kind enough to correct the above
code that is not doing what i wanted it.
Thank a lot !