944,138 Members | Top Members by Rank

Ad:
  • MS SQL Discussion Thread
  • Unsolved
  • Views: 13850
  • MS SQL RSS
Feb 16th, 2007
0

How do you count number of records in Sql?

Expand Post »
Hi:

I'm writing a VBA macro in xls to chart various records that I'm querying from MS SQL. One of the values that are most important for me to chart is the total number of records. The way I have the xls code, I can pull the data into xls and then count rows. However, sometimes the number of rows queried exceeds the 65K max rows in xls...and the program fails.

Could anyone suggest how I could just extract the number of records directly from sql, using a code that I can embed in my xls code?

Thanks in advance for your help!
-m
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
mason12345 is offline Offline
6 posts
since Feb 2007
Feb 17th, 2007
0

Re: How do you count number of records in Sql?

Normaly I would use COUNT (), but i'm not sure about embeding SQL code in XLS!?

cheers
Reputation Points: 10
Solved Threads: 0
Newbie Poster
FreelanceHW is offline Offline
1 posts
since Feb 2007

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in MS SQL Forum Timeline: How to Backup database - SQL Server 2000
Next Thread in MS SQL Forum Timeline: SQL Report Help





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC