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 port 1433 secure?

736


how to do partition in sqlserver

2146


What is meant by indexing?

661


How to find the list of fixed hard drive and free space on server?

782


you want to be sure that queries in a database always execute at the maximum possible speed. To achieve this goal you have created various indexes on tables which other statement will keep the database in good condition? : Sql server administration

740






What is amo? : sql server analysis services, ssas

836


How do I partition a table in sql server?

711


What is triggers in ms sql server?

802


What is the difference between implicit and explicit transaction?

732


What is a non clustered primary key?

670


How display code or Text of Stored Procedure using Sql query in Sql Server ?

816


Explain something about security and SQL Azure?

106


How to verify the port number of the sql server?

712


How do I create an extended event in sql server?

668


What are the 10 characteristics of data quality?

679