| | |
Accesing tables rows in Stored procedure without using cursors
Please support our MS SQL advertiser: Intel Parallel Studio Home
![]() |
•
•
Join Date: Aug 2006
Posts: 2
Reputation:
Solved Threads: 0
•
•
•
•
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
MY REPLY:
What was rowid here. It was giving invalid column name in SQL SERVER. PLZ reply soon.
![]() |
Similar Threads
- PHP MySQL 5.0 stored procedure (PHP)
- How to connect a SQL stored procedure to a windows application? (VB.NET)
- Help with a stored procedure (MS SQL)
- Help with Stored Procedure (MS SQL)
- how do I run a "disconnected" stored procedure (MS SQL)
- Stored procedure call with ADO (C)
Other Threads in the MS SQL Forum
- Previous Thread: Drop User In Mssql
- Next Thread: Modal Function
| Thread Tools | Search this Thread |





