What are some good ways to catch business logic exceptions or return values from SQL in C#? For instance, upon creating a new user, if the user already exists, the system and the user must be notified. I have used the raise_error() method with a particular state int value, I have used a stored procedure returning int values, and I have also selected a msg column with a particular structure. Are there any best practices for this?
Add a comment
|