Abstract
Prior to SQL Server 2005, error handling was limited almost exclusively to the @@error system function and the RAISERROR statement, or through client-side exception handling. T-SQL in SQL Server 2012 still provides access to these tools, but it also supports modern structured error handling similar to that offered by other high-level languages such as C++, C#, and Visual Basic. In this chapter, we will discuss legacy T-SQL error-handling functionality and the newer structured error-handling model in T-SQL. This chapter introduces tools useful for debugging server-side code, including T-SQL statements and the Visual Studio IDE.
Keywords
These keywords were added by machine and not by the authors. This process is experimental and the keywords may be updated as the learning algorithm improves.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Preview
Unable to display preview. Download preview PDF.
Rights and permissions
Copyright information
© 2012 Jay Natarajan, Rudi Bruchez, Scott Shaw, and Michael Coles
About this chapter
Cite this chapter
Natarajan, J., Bruchez, R., Shaw, S., Coles, M. (2012). Error Handling and Dynamic SQL. In: Pro T-SQL 2012 Programmer’s Guide. Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4302-4597-1_17
Download citation
DOI: https://doi.org/10.1007/978-1-4302-4597-1_17
Publisher Name: Apress, Berkeley, CA
Print ISBN: 978-1-4302-4596-4
Online ISBN: 978-1-4302-4597-1
eBook Packages: Professional and Applied ComputingProfessional and Applied Computing (R0)Apress Access Books