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

What is a dbms wizard?

1013


What is a trigger what are the advantages of trigger?

995


What do you mean by an execution plan?

1110


What is the log shipping?

994


Tell me what are the advantages of using stored procedures?

1000


Can foreign key be duplicate?

1053


How to write the storeprocedure with in the store procedure? and how can we write the store procedure with in a trigger vice versa? plz post me the exact answer?

2579


What is the difference between a unique key and primary key?

942


Do you know what are the differences between lost updates and uncommitted dependencies?

1073


Can we take the full database backup in log shipping?

939


How many types of objects are there?

1002


Can a rule be bound to any column of any data type?

956


List the different types of collation sensitivities in sql server?

1042


What is failover clustering overview?

1079


Will the writetext statement activate a trigger?

1085