Click here to Skip to main content
11,706,799 members (47,718 online)
Click here to Skip to main content

Tagged as

A better way to count(*)

, 8 Jun 2010 CPOL 2K 5
Rate this:
Please Sign up or sign in to vote.
Or, assuming your table has an index, you could do this "old-school" as:select MAX(rows) from sysindexes where id = Object_ID('{tablename}')
Or, assuming your table has an index, you could do this "old-school" as:

select MAX(rows) from sysindexes where id = Object_ID('{tablename}')

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

Share

About the Author

basementman
Web Developer
United States United States
Starting developing in 1980's using Basic, MSC 5.0, Btrieve and DBFs. Back when men were men and there were no wizards. Since then, I have developed payroll processing system, general ledger packages, billing systems, project accounting systems, order entry, a report writer, email systems, development frameworks, C++ based Web Application Server and others that have long been forgotten.

Professionally, I have been a developer, sr. developer, development lead, architect, chief architect, CTO, director of development, and consultant. I am also in charge of changing the bottled water when empty.

You may also be interested in...

Comments and Discussions

 
GeneralYep, that works too. Pin
Lee Humphries8-Jun-10 15:02
memberLee Humphries8-Jun-10 15:02 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

| Advertise | Privacy | Terms of Use | Mobile
Web03 | 2.8.150819.1 | Last Updated 8 Jun 2010
Article Copyright 2010 by basementman
Everything else Copyright © CodeProject, 1999-2015
Layout: fixed | fluid