Home Forums SQL Server 2005 T-SQL (SS2K5) create variable for IN statement RE: create variable for IN statement
BrainDonor
SSCoach
Points: 19252
More actions
October 1, 2012 at 2:44 am
#1543836
Dynamic SQl would enable you to do this.
Have a look at a previous discussion for a similair example: http://www.sqlservercentral.com/Forums/Topic1261985-145-1.aspx.
Steve HallLinkedinBlog Site