Print data in MSSQL after transact
Oct 21, 2020
If you want to give information after the transact, let's assume an update
UPDATE Production_Units Set deleted=0 WHERE Id = 3
I did this with the stored procedure because I want to give permission to my users. On the backend(i used c#), I want to review completed with success or not
So there are two way
- “INSERTED” contains the new rows (INSERT or UPDATE‘s SET)
- “DELETED” contains the old copy of the rows(UPDATE‘s SET)
here the returnId