Member of the
LearnItFirst.com Video Training Network
Related Video Training Sites:
·
SQL Server DBA Tutorials
·
Integration Services Training
Create a free account
·
Sign In
Transact SQL Video Tutorial
Home
Subscriber 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
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
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
People Who Downloaded this Video Also Downloaded:
Title
Skill
Download
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 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
·
Corporate Philosophy
·
Advertise With Us
·
Become an Author
·
Contact Us
Video Playback
·
System Requirements
·
TSCC Codec
(to play videos)
·
Troubleshooting/Problems
Subscriptions
·
Pricing/Buy Now
·
Testimonials
·
Privacy
·
Terms of Service
More Video Training
·
SQL Server DBA Tutorials
·
Integration Services Training
·
All of Our Websites
More
·
FAQs
·
Search for videos
·
Site Map
© 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.
9/8/2008 8:58:24 AM