Home Forums SQL Server 2008 SQL Server 2008 - General Adding column in where condtion dynamically RE: Adding column in where condtion dynamically
DiverKas
SSCrazy
Points: 2049
More actions
January 15, 2013 at 11:45 am
#1577458
You would be better served with the last line like this:
EXEC sp_executesql @SQL
You should have a higher plan reuse rate instead of the standard EXECUTE (@SQL)