How to handle errors??

Results 1 to 2 of 2

Thread: How to handle errors??

  1. #1
    Join Date
    Dec 1969

    Default How to handle errors??

    I am developing a web application with an SQL Server database. A good bit of the sites functionality is going to be written in transact sql in stored procedures.<BR><BR>My question is this: Should something go wrong, what is the best way to handle errors? I had thought to use return values to indicate success or not, but I dont&#039; think that will work.<BR><BR>Is there a better way?

  2. #2
    Join Date
    Dec 1969

    Default RE: How to handle errors??

    Use a Try Catch block.<BR>When using transactions you can do a rollback when errors are incountered. Then maybe give some error message.<BR><BR>Aaron

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts