You are here: Record count in all tables « MsSQL Server « IT news, forums, messages
Record count in all tables

Posted by digispace on 01/11/06 21:26

There a stored procedure or query that will count all the records
in all my tables in a database.

One of these two -

exec sp_MSforeachtable N'SELECT "table" = ''?'', cnt = COUNT(*) FROM ?'

select object_name(id), rows from sysindexes where indid in (1, 0)

Is there a way to add columns to the second query? I would like to see
how many columns and their names as well.

Thanks.

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация