SQL : How to use table variable in a dynamic sql statement?

Published --