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: Design Pattern for Looping Through Rows and Executing A Stored Procedure - Using a Temporary Table

   Chapter: Design Patterns for Transact-SQL
Download! Skill Level: 400 (Intermediate - Advanced)
Duration: 14:43
Size: 10.4MB
Versions/Editions Covered: SQL Server 2005 , SQL Server 2008 , SQL Server 2000
Added/Updated: Apr 18, 2006

Download this video
Another great video in our Design Pattern series, this video tutorial focuses on how to iterate through a resultset and execute a stored procedure for each of the row values. Example: let's say you wanted to execute SP_HELPDB for every database on your server. You could write the code by hand by entering EXEC SP_HELPDB master; EXEC SP_HELPDB msdb; etc. The problem? This is not a dynamic approach so any new databases added after your script would not be included. The technique in the video uses temp tables for iteration.
Tags for this video: iterating iteration loop through resultset  
< 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:58:24 AM