Thank this author by sharing:
Ever needed a quick way to generate insert or select columns for a table? All you have to do is replace the 'Tablename' with your tablename. So just cut and paste the results, also the most important step is to remove the comma after the last column. (i.e.
Rename TableName To Year
dynamically creating a tablename in tsql
Trying to convert a MMMYY tablename to datetime for deletion script.
cannot bulk copy into a table 'tablename" that is enabled for immediate updating
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.