Viewing 2 posts - 1 through 3 (of 3 total)
You don't need to use dynamic sql. The easiest way to do this would be to have two select statements and an if else to decide which one to run....
November 3, 2009 at 11:43 pm
#1074690
It tells about dynamic sql which I do not want to use
November 3, 2009 at 2:12 am
#1074158