SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 SQL Server 2000 Forums
 SQL Server Administration (2000)
 System stored procedure that returns rowcount for table
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

AskSQLTeam
Ask SQLTeam Question

USA
0 Posts

Posted - 04/20/2004 :  09:53:15  Show Profile  Visit AskSQLTeam's Homepage  Reply with Quote
John writes "Hi,

I used to work with a guy when I was contracting at MSN and he turned me on to a system stored procedure that would return the number of rows for a table along with other information but I cannot find it now. Funny I remember his name but not the name of the sproc.

Was this all just a vivid halucination or does such a stored procedure exist or did it ever? I remember that it was much more efficient than doing some thing like this "Select count(*) from table_name".

Please help me restore sanity to my world.

Thank you,
John"

graz
Chief SQLTeam Crack Dealer

USA
4137 Posts

Posted - 04/20/2004 :  09:53:15  Show Profile  Visit graz's Homepage  Reply with Quote
We've got a script on the site called bigtables.sql. With a little (very little) modification that should do what you want.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.5 seconds. Powered By: Snitz Forums 2000