Using query analyzer, name 3 ways you can get an accurate
count of the number of records in a table?

Answer Posted / mahmood

1) Select count(*) from tablename

2) sp_spaceused tablename

3) Select id from sysobjects where name ='tablename'
GO
Select * from sysindexes where id=? ---Put ID no. from
above query

Is This Answer Correct ?    1 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do I start sql server 2016?

511


What is after dml trigger?

563


What do you mean by data integrity?

574


Which data type columns are the best candidates for full-text indexing?

584


What is collation?

707






Tell me what are the essential components of sql server service broker?

494


can you instantiate a com object by using t-sql? : Sql server database administration

508


Can primary key be null?

502


Is it possible in sql table to have more than one foreign key?

598


List out the differences between the clustered index and non-clustered index in sql server?

490


How do I perform an unattended install of sql server 2000?

589


Does index speed up select statements?

570


What is user-defined inline table-valued function?

507


Do I need a report server to run reports in my application?

104


What is the Control Flow in SSIS

562