Yes.
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.
Andy
Best bet is to choose to save the results of the query to text, from the Query menu in SQL Query Analyser.
Execute your query, and the results will appear in your Query Analyser window, with the column headings. You can then copy and paste this into a text editor, or excel.
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.