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

Answer Posted / raman

If you want row id as ROWID in Oracle, use %%physloc%% to
get unique id for each row in a table.
Ex. Query to get physical address/rowid of first row in
table.
SELECT TOP 1 %%physloc%% AS ROWID FROM <UrTable>

Is This Answer Correct ?    1 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

ow to bring suspect mode datbase online from scratch

1415


What is replication with database mirroring? : sql server database administration

539


Explain the purpose of indexes?

552


What is instead of trigger sql server?

506


What is surrogate key? : sql server analysis services, ssas

703






What is query processing?

549


List the different types of collation sensitivities in sql server?

545


Why variables called the most powerful component of ssis?

599


Stored Procedure returns data from multiple tables. How to access it in your ASP.Net code?

561


List the different types of joins?

574


What is clustered index

578


How is sql server used?

556


How to modify existing triggers using "alter trigger"?

543


What is the synonym of join?

535


Mention the different authentication modes in sql server.

542