Parameterize where clause?
BrianVallelunga
Posts: 3
Is it possible to parameterize a where clause with a variable that is passed in when using the command line?
I'm using ROWVERSIONs in my tables for change detection and hence I'll want to be able to pass in a filter for something like WHERE Product.RowVersionNumber > @ProductRowVersion. Of course this will change every time I want to run the comparison, but it will dramatically speed up the process.
I'm using ROWVERSIONs in my tables for change detection and hence I'll want to be able to pass in a filter for something like WHERE Product.RowVersionNumber > @ProductRowVersion. Of course this will change every time I want to run the comparison, but it will dramatically speed up the process.
Comments
Senior Product Support Engineer
Redgate Software Ltd
Email: support@red-gate.com