I am a Coldfusion programer that uses SQL 2008 as a backend but am not proficient sql. I would like to write a script that I can use to duplicate tables. For example, I have table1Dem, table2Dem and table3Dem.
I would like to duplicate table1Dem and table2Dem w/o carrying the data over. Table3dem I would like to duplicate the table and the data.
I would also like to pass a parameter for the naming of the new tables. Ie. I would pass "Lyn" and the new tables would be named table1Lyn, table2Lyn and table3Lyn.
I would appreciate any guidance in this area.
Thanks
I would like to duplicate table1Dem and table2Dem w/o carrying the data over. Table3dem I would like to duplicate the table and the data.
I would also like to pass a parameter for the naming of the new tables. Ie. I would pass "Lyn" and the new tables would be named table1Lyn, table2Lyn and table3Lyn.
I would appreciate any guidance in this area.
Thanks