Being a newbie to the TSQL world, I just need to know if there is a way to determine the current record position in a table with TSQL, ala the RECNO() function I used in FoxPro.
One thing you have to understand about SQL Server is that the records are not guaranteed to have the same order when you query them, therefore no real record number. If you use an identity field on insert you will know what order the records were inserted in, other wise the rank will depend on how you ordered the table and if you do not use an order by clause then the order will not necessarily be the order the records were inserted in.
"NOTHING is more important in a database than integrity." ESquared
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.