Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
....
DELETE FROM .... WHERE ...
SELECT @@ROWCOUNT AS DeletedRecs
SQLEXEC(....,[call your SP here], [crsDeletedRecs])
SELECT crsDeletedRecs
BROWSE NORMAL
[COLOR=blue]CREATE[/color] [COLOR=blue]PROCEDURE[/color] [dbo].del_invoice
@minvoice_no [COLOR=blue]CHAR[/color](12)
[COLOR=blue]AS[/color]
[COLOR=blue]begin[/color]
[COLOR=blue]DECLARE[/color] @rCount [COLOR=blue]int[/color]
[COLOR=blue]SET[/color] [COLOR=#FF00FF]NOCOUNT[/color] [COLOR=blue]OFF[/color]
[COLOR=blue]BEGIN[/color] [COLOR=blue]TRANSACTION[/color]
[COLOR=blue]delete[/color] [COLOR=blue]from[/color] mytable
[COLOR=blue]WHERE[/color]
invoice_no = @minvoice_no
[COLOR=blue]SET[/color] @rCount = @@ROWCOUNT
[COLOR=blue]IF[/color] @@error <> 0
[COLOR=blue]BEGIN[/color]
[COLOR=blue]SET[/color] @rCount = -1
[COLOR=blue]ROLLBACK[/color] [COLOR=blue]TRANSACTION[/color]
[COLOR=blue]END[/color]
[COLOR=blue]ELSE[/color]
[COLOR=blue]COMMIT[/color]
[COLOR=blue]SELECT[/color] @rCount
[COLOR=blue]END[/color]