Member of the LearnItFirst.com Video Training Network Related Video Training Sites: · SQL Server DBA Tutorials · Integration Services Training
   
Transact SQL
                        Training Videos

Transact SQL Tutorial: RAISERROR and Substitution Parameters - How to Customize Your Error Messages (SQL Server 2000)

   Chapter: Stored Procedure Programming, Error Handling, and Passing Resultsets to the Client
Download! Skill Level: 200 (Beginner - Intermediate)
Duration: 11:46
Size: 7.25MB
Versions/Editions Covered: SQL Server 2000
Added/Updated: Apr 18, 2006

Download this video
This video is part of our series on using custom error messages in SQL Server and shows you how to create dynamic error messages that are stored in sysmessages (sys.messages in SQL Server 2005).

Highlights from this video:

  • sp_addmessage
  • Storing messages in the master database
  • Calling adhoc messages
  • Substition parameters (%s, %d) and dynamic vs. static parameterization
  • Architecture of error messages in SQL Server 2005 and 2000
  • RAISERROR and severity levels
  • SQL Server error message 50000
  • How to pass scalar functions into RAISERROR (i.e. SUSER_SNAME(), USER_NAME(), DB_NAME())
  • Using RAISERROR in stored procedures for custom error handling
  • Using RAISERROR WITH LOG to log SQL Server errors to the Event Log in Windows

Tags for this video: log errors master.dbo.sysmessages master.sys.messages msg_id sql server error number  
< Back Download this video
AddThis Social Bookmark Button
People Who Downloaded this Video Also Downloaded:
TitleSkillDownload
Subqueries, Nested Queries, and Derived Tables - An Introduction to Advanced SQL... 300 Download
Constraint Keys, Index Keys, Composite Keys, Natural keys, and Surrogate Keys 200 Download
Query Analyzer - Beyond the Basics (SQL Server 2000) 200 Download
When to Use HAVING Instead of WHERE - Aggregates, GROUP BY, and the HAVING Claus... 300 Download
JOINs and UNIONs - How Do I Know When to Use a JOIN or a UNION? 300 Download

About the Instructor:

Scott Whigham Scott Whigham is the founder of LearnItFirst.com, one of the web's most extensive video training libraries focusing on technical training. Scott is also an experienced consultant, trainer, and author with more than a decade of hands-on experience working with SQL Server databases, writing and debugging applications using Visual Studio, and performance tuning. Scott designed the architecture (websites, class libraries, and database) for the LearnItFirst.com websites and, most re... (Scott Whigham's full bio can be found on the About the Author page)

   
 
About Us Video Playback Subscriptions More Video Training More
 
© Copyright 2004-2008 LearnItFirst.com LLC. All rights reserved. All trademarks remain the property of their respective owners. This site is not affiliated in any way with the Microsoft Corporation. Refer a Friend and Get a Free Subscription!
 
9/8/2008 8:57:50 AM