Quantcast
Viewing latest article 2
Browse Latest Browse All 6

Re: how to test sql server performance?

thanks for all reply. however, I think maybe my question is misunderstood. I'm not asking how to tune the performance of sql. my question is: how to measure the performance of sql server in the code, such as c#.

should I just create some temporary tables, and then query it using select/insert/update, say, for 1,000,000 times, and measure the elapse time? Obviously, this is not just sql server, but it measures the workstation performance, including sql server's performance.

The idea is: on a standard pc, we can finish 1,000,000 query in 1.123 seconds, but then on another machine (in another environment), it takes 10.234 seconds, then we can draw a conclusion that the second environment may have some problems. It may need check the network connection, use a dedicated sql server, .....

Is there a standard to do this:

"should I just create some temporary tables, and then query it using select/insert/update, say, for 1,000,000 times, and measure the elapse time? Obviously, this is not just sql server, but it measures the workstation performance, including sql server's performance."

thanks

reader


Viewing latest article 2
Browse Latest Browse All 6

Trending Articles