query execution time

  • Thread starter Thread starter Dino L.
  • Start date Start date
D

Dino L.

Hi,
how can I get query execution time?
I am using ODBC conncetion, and OdbcDataReader
 
Hi

I guess the execution time is time that ExecuteReader consumes.
 
Two easy solutions:

Store DateTime.Now before and compare it to DateTime.Now after the execution
or
do the same with Environment.TickCount.
 
Miha said:
Two easy solutions:

Store DateTime.Now before and compare it to DateTime.Now after the execution
or
do the same with Environment.TickCount.

Hvala,
thanks
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top