Using query analyzer, name 3 ways you can get an accurate
count of the number of records in a table?
Answers were Sorted based on User's Feedback
Answer / kumar.t
1. Select Count(EmployeeId) As NoOfRow From Employee
2. Select Count(*) As NoOfRow From Employee
3. Select Count_Big(*) As NoOfRow From Employee
4. Select Rows From SysIndexes Where Id = Object_Id
('Employee') And IndId<2
By
Kumar.T
| Is This Answer Correct ? | 12 Yes | 5 No |
Answer / madhu
To get the total record count of a table use
Select count(*) from table_name
or
select count(column_name) from table_name
| Is This Answer Correct ? | 8 Yes | 2 No |
Answer / mathan
1.select count(*) from <table name>
2.select count_big(*) from <table name>
3.select rows from sysindexes where id=?
| Is This Answer Correct ? | 7 Yes | 3 No |
Answer / ramakrishna
count()
@@rowcount
sysindexes
dbcc chektable
sp_spaceused
excution plan
| Is This Answer Correct ? | 2 Yes | 3 No |
Answer / 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 |
what is difference between nchar and char in Sql server ?
What happens if you delete a table that is used by a view?
Do you know what are the steps to process a single select statement?
default databases available in sql server and there uses ?
select empid empname from employee What is the result for the about query?
What is a synonym for manipulation?
List the types of recovery model available in sql server?
What is the purpose of UPDATE STATISTICS?
What is the maximum size of a row in sql server?
What are indexers?
What is blocking in SQL Server? If this situation occurs how to troubleshoot this issue
Are there any preferred steps that need to be taken care of before starting the installation of sql server 2000?
Oracle (3259)
SQL Server (4518)
MS Access (429)
MySQL (1402)
Postgre (483)
Sybase (267)
DB Architecture (141)
DB Administration (291)
DB Development (113)
SQL PLSQL (3330)
MongoDB (502)
IBM Informix (50)
Neo4j (82)
InfluxDB (0)
Apache CouchDB (44)
Firebird (5)
Database Management (1411)
Databases AllOther (288)