You need to reduce the amount of time it takes to execute Proc1

You have a SQL Server 2012 database named Database1.
You execute the following code:

You insert 3 million rows into Sales.
You need to reduce the amount of time it takes to execute Proc1.
What should you do?

You have a SQL Server 2012 database named Database1.
You execute the following code:

You insert 3 million rows into Sales.
You need to reduce the amount of time it takes to execute Proc1.
What should you do?

A.
Option A

B.
Option B

C.
Option C

D.
Option D



Leave a Reply 5

Your email address will not be published. Required fields are marked *


Pauline Doxie

Pauline Doxie

Thank you for posting.It had been really fantastic reading about all of your opinion of this kind of topic area.I was seeking such a write up for awhile,and fortunately i came accross your blog.I hope you certainly will continue to keep helping people in the same way in future also.

http://www.surfworld.com

mst

mst

The answer should be A.
When the query is been prepared, it is a one-time action to convert the parameters @date1 and @date2.
But is would be a conversion for every row if answer C is used. Which will take longer in most cases.