Quantcast
Channel: ADO.NET, Entity Framework, LINQ to SQL, NHibernate
Viewing all articles
Browse latest Browse all 1698

how to calculate time taken by cmd.ExecuteReader.

$
0
0

hi, I have sqlserver 2019 and asp.net  2019 and iis 7 on the same machine.

    What I have noticed is a stored procedure takes 19  second from  query window of sqlserver,

when I run it first time. second time it takes 10 sec because at that time cache is built.

Q1) i have called the sp third time from cmd.ExecuteReader and it takes 18 sec.

so please tell me the delay  of 7 to 8 sec of cmd.ExecuteReader is correct or we can speed up.

the data returned by sp is only 20 columns and 30 rows.

yours sincerley


Viewing all articles
Browse latest Browse all 1698

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>