How to import/export table definitions from my dev database to production database(recreate the whole database). I have Sql server 2005, Sql Management studio with power shell.
Thanks in advance.
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.
You can do tables or the entire database.
For a table go in your dev SSMS object explorer: right click the table, click “Script Table As” then “Create To” then “clipboard” or “file”. Paste the clipboard or open the file into your production SSMS query window and press
f5to run the script.For a database, go in your dev SSMS object explorer: right click the database, click “Tasks” then “Generate Scripts”, then use the wizard to pick all the objects to include (triggers, roles, schemas, stored procedures, tables, etc..) save this to a file and then open the file into your production SSMS query window and press
f5to run the script.