Thank this author by sharing:
By Cade Bryant,
dynamic database generation
Write Query Dynamic Generated Column
How can I generate node names dynamically using FOR XML query?
Query to generate a dynamic Select statement from any table for moving data between servers.
How to dynamically change Aggregate function in Cube ?
As a member of SQLServerCentral, you get free access to loads of fresh content: thousands
of articles and SQL scripts, a library of free eBooks, a weekly database news roundup,
a great Q & A platform… And it’s our huge, buzzing community of SQL Server Professionals
that makes it such a success.