how to get the rowid/rownumbes of a table in sqlserver

Answer Posted / payal nath

SELECT ROW_NUMBER() OVER(ORDER BY <FieldName>)
FROM <TableName>

Is This Answer Correct ?    27 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain differentiate between a having clause and a where clause?

520


What are the different Topologies in which Replication can be configured?

648


Explain the use of containers in ssis and also their types?

528


What is default port number for sql server 2000?

598


What are trace files?

535






How to find a value in another dataset based on current dataset field (ssrs 2008 r2)?

116


Can a stored procedure call itself or recursive stored procedure? How many levels sp nesting is possible?

525


What is an identity?

572


What are system databases into sql server (2005/2008) : sql server database administration

572


How do I edit a procedure in sql server?

550


What is index in an assignment?

534


If you are given access to a SQL Server, how do you find if the SQL Instance is a named instance or a default instance?

668


Explain the properties of sub-query in sql server?

514


What is temporal table?

484


Mention the different authentication modes in sql server.

536