Is it possible to write a stored procedure (in tsql or other variants) with dynamic parameters like sp_executesql?
i.e. the number and type of parameters in not known in advance and should be built dynamically on client side. just the way you can pass any number of parameters with any type to sp_executesql.