简体   繁体   中英

Use Error Code or exception handling

Right now I have a question on SQL Server Database Stored Procedures Best Practices, I want to know if is a best practice use "Error code" and "Error message" like output parameters of my Stored Procedure for Error control/handling or instead of this, is better practice using Exception handling for that purpouse.

Thanks in advance.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM