Advertisement

01.02.2007 at 10:27AM PST, ID: 22108489
[x]
Attachment Details

foreach statement in TSQL

Asked by brokeMyLegBiking in MS SQL Server

Tags: foreach, tsql

Is there such thing as a foreach statement in TSQL? or is a cursor the only option here?

I want to itterate through a small result set and it would be nice to have something more susinct than a cursor.Start Free Trial
[+][-]01.02.2007 at 10:28AM PST, ID: 18229614

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

Start your 7-day free trial to view this Assisted Solution or ask the Experts your question.

 
[+][-]01.02.2007 at 10:29AM PST, ID: 18229620

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: MS SQL Server
Tags: foreach, tsql
Sign Up Now!
Solution Provided By: Nightman
Participating Experts: 2
Solution Grade: A
 
 
[+][-]01.02.2007 at 10:45AM PST, ID: 18229762

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]01.02.2007 at 10:48AM PST, ID: 18229796

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]01.03.2007 at 10:33AM PST, ID: 18237585

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32