Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

duplicating tables 2

Status
Not open for further replies.

jesse1

Programmer
Aug 29, 2008
30
US
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
 
Thanks, Markros! I wonder why the link does not work when I click directly on it... [ponder]
 
you have to copy and paste. Clicking ignores the hyphen at the end
 
Oh wow. Who would have thought?

-George

"The great things about standards is that there are so many to choose from." - Fortune Cookie Wisdom
 
It seems to be a problem using link ending with - on other forums too. Perhaps there need to be something done to never end the link with -
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top