User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the MS SQL section within the Web Development category of DaniWeb, a massive community of 392,267 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,776 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our MS SQL advertiser:

Accesing tables rows in Stored procedure without using cursors

Join Date: Aug 2006
Posts: 7
Reputation: itsdavetime is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 1
itsdavetime itsdavetime is offline Offline
Newbie Poster

Re: Accesing tables rows in Stored procedure without using cursors

  #2  
Sep 1st, 2006
Just to a while loop.

declare @rowcount int,
@counter int
select @rowcount = (select count(*) from table_name)

set @counter = 0
while @counter <= @rowcount
begin
select * from table_name where rowid = @counter
set @counter = @counter + 1
end
Reply With Quote  
All times are GMT -4. The time now is 7:46 pm.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC