I'd like to know the standard way to benchmark a SQL Sever Query, preferably I'd like to know about the tools that come with SQL Server rather than 3rd Party tools.
In the database industry, a benchmark is a test in which you collect the performance metrics of a system under a specific, predefined workload.
set showplan_text on will show you the execution plan (to see it graphically use CTRL + K (sql 2000) or CTRL + M (sql 2005 +)
set statistics IO on will show you the reads
set statistics time on will show you the elapsed time
Use SQL Profiler.
For .NET applications, filter that Application name by '.NET%' and you'll omit other extraneous queries.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With