Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

State the difference between local and global temporary tables?

1062


How do I start sql server 2017?

897


What is snapshot replication?

1008


How can we remove orphan records from a table?

945


What is function of ROLLUP ?

1046


explain different types of backups avaialabe in sql server? : Sql server database administration

936


What is the difference between varchar and nvarchar datatypes?

1043


Explain what are the authentication modes in sql server?

961


What new changes are being made in SQL Server?

1113


Explain what is meant by replication of database?

969


Can primary key be null?

886


What is self contained scalar sub query?

937


How to drop existing indexes in ms sql server?

1024


Can a table be moved to different filegroup?

929


Describe the functionalities that views support.

1067