Need to duplicate a TABLE using Microsoft SQL Management Studio 2008
The TABLE needs to duplicate all table row (Primary Key) ID as well.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
In SSMS open a new query window and then do something like this:
Change
NewTableto the name that the new table should have. ChangeOldTableto the name of the current table.This will copy over the basic table structure and all the data. It will NOT duplicate any of the table constraints; you will need to script those out and change the names in those scripts.