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

Answer Posted / vivek

Select Count(*) as ro_no from <tablename>

Is This Answer Correct ?    6 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain a join?

615


What type of Index will get created after executing the above statement?

643


Are connections to sql server encrypted?

576


How to create a view and a stored procedure in ms sql server using "create view/procedure" statements?

510


You want to use bids to deploy a report to a different server than the one you chose in the report wizard. How can you change the server url?

110






How to get @@error and @@rowcount at the same time?

570


How to remove duplicate rows from table?

601


What do you mean by stored techniques? How would we use it?

584


what are database files and filegroups? : Sql server database administration

501


When you use @@error and try-catch?

575


Can we use where clause with group by?

519


What is the syntax to execute the sys.dm_db_missing_index_details?

585


What is explicit mode in sql server?

533


Explain DBCC?

569


Can foreign key be duplicate?

631