Use the @@error object to check for errors after your insert\update code. if @@error <> 0 then an error has occured, you can return a message to the user to tell them the Insert\update has failed.
See SQL server books online for more info on @@error.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.