How do you count number of records in Sql?

Please support our MS SQL advertiser: Intel Parallel Studio Home
Reply

Join Date: Feb 2007
Posts: 6
Reputation: mason12345 is an unknown quantity at this point 
Solved Threads: 0
mason12345 mason12345 is offline Offline
Newbie Poster

How do you count number of records in Sql?

 
0
  #1
Feb 16th, 2007
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
Reply With Quote Quick reply to this message  
Join Date: Feb 2007
Posts: 1
Reputation: FreelanceHW is an unknown quantity at this point 
Solved Threads: 0
FreelanceHW FreelanceHW is offline Offline
Newbie Poster

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

 
0
  #2
Feb 17th, 2007
Normaly I would use COUNT (), but i'm not sure about embeding SQL code in XLS!?

cheers
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



Tag cloud for MS SQL
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC