Forced sending queries to the server without parameters
Queries may be with or without parameters:
select *
from test_table
where id = :ID
or
select *
from test_table
However some database servers execute queries without parameters faster than the same queries with parameters. An option (for example, AllowParams) may be added; if this option is set to False, all queries will be sent to a server as text.
-
Dorin Marcoci commented
This is more a "parameter by value" replacement feature.
It may lead in sql injections.
Also different DBMSes handle parameters in different way. Quoted/unquoted, date format, etc... -
Francesco commented
This is a SDAC only suggestion in my opinion
-
Flavio commented
This feature is very important because the queries with "exec sp_executesql" are very slow. As with plain text is very fast.
-
Francesco commented
Please see also this forum entry were there is some more details (and were this was already asked): http://www.devart.com/forums/viewtopic.php?p=69497#69497