Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 SQL Server Development (2000)
 looping on a select in a Stored PRocedure

Author  Topic 

pelegk2
Aged Yak Warrior

723 Posts

Posted - 2006-02-06 : 08:13:59
i want to make a SP which will recive some id
make a select o nthat id.
i will recive some rows- how can i loop over them and recive rows
so in the end i will return a big recird set?
thnaks in advance
peleg

Israel -the best place to live in aftr heaven 9but no one wan't to go there so fast -:)

khtan
In (Som, Ni, Yak)

17689 Posts

Posted - 2006-02-06 : 08:23:49
Please refer to this http://weblogs.sqlteam.com/brettk/archive/2005/05/25/5276.aspx


----------------------------------
'KH'


Go to Top of Page

madhivanan
Premature Yak Congratulator

22864 Posts

Posted - 2006-02-06 : 08:52:27
Do you want to get concatenated values?
Post some sample data and the result you want

Madhivanan

Failing to plan is Planning to fail
Go to Top of Page

X002548
Not Just a Number

15586 Posts

Posted - 2006-02-06 : 09:46:22
What do you plan on doing with it?

If you just want to return a rs

SELECT * FROM myTable99 WHERE [id] = @id



Brett

8-)

Hint: Want your questions answered fast? Follow the direction in this link
http://weblogs.sqlteam.com/brettk/archive/2005/05/25/5276.aspx

Add yourself!
http://www.frappr.com/sqlteam
Go to Top of Page
   

- Advertisement -