Sql server query
i want to create a table with the same data as old table and schema but with different name
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Khargesh RajputRank #616 · 3.9K reputationPosted Jan 20, 2015, 10:33 PM EST
select specific database object> choose your table>
next>click on advance>general>types of data to script>dropdown choose >Schema and data
>ok>next >finish>
run script to database and rename the tablename
Jitendra KumarRank #760 · 3K reputationPosted Jan 20, 2015, 10:50 PM EST
Try this :-
SELECT * INTO NewtableName FROM OldTableName
Ex :- SELECT * INTO tbl_Emp1 FROM tbl_Emp