Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Loop through a result set
Message
General information
Forum:
Microsoft SQL Server
Category:
Stored procedures, Triggers, UDFs
Miscellaneous
Thread ID:
01116848
Message ID:
01116873
Views:
12
Kurt,
Thanks for the hint. It was exactly what I needed.

Einar

>Search for DECLARE CURSOR in BOL.
>
>Kurt
>>How do I loop through a result set using T-SQL?
>>
>>Something like this pseudo code:
>>
>>SELECT pk from mytable where fk = @fk
>>
>>foreach_row_in_result_above
>>{
>>  do something with the fk from the row (pass fk to another SP)
>>}
>>
>>
>>Any help would be appreciated.
>>
>>Thanks,
>>Einar
Semper ubi sub ubi.
Previous
Reply
Map
View

Click here to load this message in the networking platform