I have written a query which will dynamically add parameters to that query.Following is the query I have written.
var sql ="SELECT s.contactId,s.name,s.