Hi Mohamed,
Dynamic SQL adapter has its own advantages and disadvantages. As part of advantages, you can decide on querying the DB real time based on business conditions and helps to build dynamic solution with varying queries. It is not limited where clause only but entire query itself can be passed dynamically.
As part of standard practices and betterment, please try to use other adapter templates provided if that meets your business needs. There are many other adapter templates available Insert/Update/Custom SQL etc. Reason I say this is with Dynamic SQL there is a risk of SQL injection attack, if you aren’t handling your service with proper validation and security.
Again, you can refer the JDBC Adapter Guide for more details about technical implementation of any of these adapters.
Hope this helps.
Regards,
Firoz N
#Service-Designer#Integration-Server-and-ESB#Adapters-and-E-Standards#webMethods