dbaspot
Tags Register FAQ Calendar Search Today's Posts Mark Forums Read

Record row count and execution time into table? - Database Discussions

This is a discussion on Record row count and execution time into table? - Database Discussions ; I was wondering if anyone knows the best way to count the number of rows in a table and enter this row count into a table along with how long the query took to execute? I realise that you can ...


Home > Database Forum > Database and Unix Discussions > Database Discussions > Record row count and execution time into table?

Reply

 

LinkBack Thread Tools Display Modes
  #1  
Old 09-29-2005, 09:04 PM
Database Bot
 
Join Date: Sep 2009
Posts: 1,236,254
Database Administrator is on a distinguished road
Default Record row count and execution time into table?

I was wondering if anyone knows the best way to count the number of rows
in a table and enter this row count into a table along with how long the
query took to execute?

I realise that you can get both the row count and SQL execution time by
turning timing on and then running the select count(*) ... but then I
have to format the results and then do the insert into a table.

Is there an easier way?
Reply With Quote
  #2  
Old 09-29-2005, 10:10 PM
Database Bot
 
Join Date: Sep 2009
Posts: 1,236,254
Database Administrator is on a distinguished road
Default Re: Record row count and execution time into table?

Check out the following article which has a code sample to generate a
select count(*) and execute it

Is there a good way of counting the number of rows in a table ?
http://www.jlcomp.demon.co.uk/faq/count_rows.html


Adding time would be trival.

HTH -- Mark D Powell --

Reply With Quote
  #3  
Old 09-29-2005, 10:10 PM
Database Bot
 
Join Date: Sep 2009
Posts: 1,236,254
Database Administrator is on a distinguished road
Default Re: Record row count and execution time into table?

Check out the following article which has a code sample to generate a
select count(*) and execute it

Is there a good way of counting the number of rows in a table ?
http://www.jlcomp.demon.co.uk/faq/count_rows.html


Adding time would be trival.

HTH -- Mark D Powell --

Reply With Quote
  #4  
Old 09-29-2005, 10:10 PM
Database Bot
 
Join Date: Sep 2009
Posts: 1,236,254
Database Administrator is on a distinguished road
Default Re: Record row count and execution time into table?

Check out the following article which has a code sample to generate a
select count(*) and execute it

Is there a good way of counting the number of rows in a table ?
http://www.jlcomp.demon.co.uk/faq/count_rows.html


Adding time would be trival.

HTH -- Mark D Powell --

Reply With Quote
  #5  
Old 09-29-2005, 10:10 PM
Database Bot
 
Join Date: Sep 2009
Posts: 1,236,254
Database Administrator is on a distinguished road
Default Re: Record row count and execution time into table?

Check out the following article which has a code sample to generate a
select count(*) and execute it

Is there a good way of counting the number of rows in a table ?
http://www.jlcomp.demon.co.uk/faq/count_rows.html


Adding time would be trival.

HTH -- Mark D Powell --

Reply With Quote
  #6  
Old 09-29-2005, 10:10 PM
Database Bot
 
Join Date: Sep 2009
Posts: 1,236,254
Database Administrator is on a distinguished road
Default Re: Record row count and execution time into table?

Check out the following article which has a code sample to generate a
select count(*) and execute it

Is there a good way of counting the number of rows in a table ?
http://www.jlcomp.demon.co.uk/faq/count_rows.html


Adding time would be trival.

HTH -- Mark D Powell --

Reply With Quote
  #7  
Old 09-29-2005, 10:10 PM
Database Bot
 
Join Date: Sep 2009
Posts: 1,236,254
Database Administrator is on a distinguished road
Default Re: Record row count and execution time into table?

Check out the following article which has a code sample to generate a
select count(*) and execute it

Is there a good way of counting the number of rows in a table ?
http://www.jlcomp.demon.co.uk/faq/count_rows.html


Adding time would be trival.

HTH -- Mark D Powell --

Reply With Quote
  #8  
Old 09-29-2005, 10:10 PM
Database Bot
 
Join Date: Sep 2009
Posts: 1,236,254
Database Administrator is on a distinguished road
Default Re: Record row count and execution time into table?

Check out the following article which has a code sample to generate a
select count(*) and execute it

Is there a good way of counting the number of rows in a table ?
http://www.jlcomp.demon.co.uk/faq/count_rows.html


Adding time would be trival.

HTH -- Mark D Powell --

Reply With Quote
  #9  
Old 09-29-2005, 10:10 PM
Database Bot
 
Join Date: Sep 2009
Posts: 1,236,254
Database Administrator is on a distinguished road
Default Re: Record row count and execution time into table?

Check out the following article which has a code sample to generate a
select count(*) and execute it

Is there a good way of counting the number of rows in a table ?
http://www.jlcomp.demon.co.uk/faq/count_rows.html


Adding time would be trival.

HTH -- Mark D Powell --

Reply With Quote
  #10  
Old 09-29-2005, 10:17 PM
Database Bot
 
Join Date: Sep 2009
Posts: 1,236,254
Database Administrator is on a distinguished road
Default Re: Record row count and execution time into table?

Whoops, wrong link. Try this one instead:

Is there a simple way to produce a report of all tables in the database
with current number of rows ?
http://www.jlcomp.demon.co.uk/faq/count_all_rows.html

HTH -- Mark D Powell --

Reply With Quote
Reply

Thread Tools
Display Modes



All times are GMT -4. The time now is 12:49 PM.