Click here to Skip to main content
15,886,919 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

What is the main advantage of using dynamic query in sql server?
Posted

Obviously you do not need to write a bunch of query with the same logic!

A single query that is consumed by many would be better. All you need to do is to supply the required parameters to make your query dynamic.

Regards,
Eduard
 
Share this answer
 
Comments
Shobana16 14-Dec-11 1:49am    
Thank you..
use your friend google

Dynamic Query in TSQL [^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900