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

Is there any difference between the primary key and unique key?

1004


Can coalesce return null?

1021


What is difference between views and tables?

1015


What are data resources?

918


What is query cost in sql server?

998


What is the difference between sql server 2000 object owner and sql server 2005 schema? : sql server database administration

986


What do you understand by mirroring and mention the advantages of the mirroring?

1068


What do you mean by an execution plan? Why is it used?

1029


Name and describe few console utilities for ssrs?

284


How to create an multi-statement table-valued function?

1003


What is the difference between dataadapter and datareader?

1008


What is the security principal at the database level that represents your session?

945


How do I find my localdb version?

988


In which files does sql server actually store data?

908


How can we solve concurrency problems?

1058