Without Using Cursors , How to Select the Selected row??

Answer Posted / nandkumar karlekar

use while loop with #temp table containing auto increment
ID as column

find the row on where ID=@Count
Count ++ up to where ID=@Count not exist.

it is very fast as compair to cursor.

Is This Answer Correct ?    1 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is there any difference between the primary key and unique key?

668


What is transact-sql ddl trigger?

722


What is the difference RDBMS and Graph Database?

702


How are the unique and primary key constraints different?

689


Which rendering formats are affected by the pagesize properties?

112






Explain different types of locks in sql server.

678


what is unique and xaml nonclustered index

663


What is global temp table?

671


What is indexing and its types?

628


What are different types of views?

628


What is the purpose of sql profiler in sql server? : sql server database administration

719


How to perform backup for certificates in sql server? : sql server security

678


i have made a project i vb.net n created a .exe of it after installing it in to any pc, the database (sql express) is not geting accesed i.e the aplication cuts the link of the database, so plz help in this matter.

1466


How can I get data from a database on another server?

583


What is the difference between function and stored procedure in sql server?

585