cite from: http://www.sommarskog.se/dynamic_sql.html An SQL text by Erland Sommarskog, SQL Server MVP. Latest revision: 2011-06-23. An earlier version of this article is also available in German. Translations provided by SQL Server MVP Frank Kalis. Introduction If you follow the various newsgroups on Microsoft SQL Server, you often see people asking why they can’t do: SELECT… Read More »