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 2008 still provides access to these tools, but 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, I 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.
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
© 2008 Michael Coles
About this chapter
Cite this chapter
(2008). Error Handling and Dynamic SQL. In: Pro T-SQL 2008 Programmer’s Guide. Apress. https://doi.org/10.1007/978-1-4302-1002-3_18
Download citation
DOI: https://doi.org/10.1007/978-1-4302-1002-3_18
Publisher Name: Apress
Print ISBN: 978-1-4302-1001-6
Online ISBN: 978-1-4302-1002-3
eBook Packages: Professional and Applied ComputingProfessional and Applied Computing (R0)Apress Access Books