Error Handling with Cursor (edit)

SQL Server Tutorial

  • Standard  (actually most of SQL is here, including many advanced concepts)
  • Advanced (User-defined Functions)
  • Functions (Builtin Functions)

SQL Server Basics - Standard

SQL Server User-defined Functions - Advanced

We suggest to open the corresponding tutorial page and go over the examples "side by side".

SQL Server Builtin Functions - Functions

ELINQ offers all of these as a local class library.

This list is available from the top right Functions menu on the tutorial site

 

Error Handling

http://www.sommarskog.se/error-handling-I.html

http://www.sommarskog.se/error-handling-II.html

http://www.sommarskog.se/error-handling-III.html

http://www.sommarskog.se/error_handling/Part1.html

http://www.sommarskog.se/error_handling/Part2.html

http://www.sommarskog.se/error_handling/Part3.html

It written for SQL Server 2000, but it covers the new try/catch error handling abilities in SQL Server 2005+ as well.

Error Handling with Cursor

http://www.sommarskog.se/error-handling-II.html#cursors

Error Handling In Transaction

https://docs.microsoft.com/en-us/previous-versions/sql/sql-server-2005/ms175976(v=sql.90)?redirectedfrom=MSDN

CTE

https://stackoverflow.com/questions/4740748/when-to-use-common-table-expression-cte

https://docs.microsoft.com/en-us/previous-versions/sql/sql-server-2008-r2/ms190766(v=sql.105)