June 19, 2008 at 1:03 pm
I need to create a clean/empty copy of a SQL Server 2005 database in a production environment with all the "bells and whistles" (i.e., tables, indices, stored procedures, user defined functions, etc.). A copy of the database (with extraneous data) currently exists in our QA environment.
What's the best way to accomplish this task?
June 19, 2008 at 1:28 pm
Use the script wizard in Management Studio to generate a script for all objects in the database and then run the script on the new server.
June 19, 2008 at 1:31 pm
Script the whole DDL using SSMS.
Keep in mind to adjust all the scripting parameters you need !
Rightclick on a dabase name in the object browser, choose tasks and go from there on.
(don't use script database, because that option will only scrip the create statement)
Johan
Learn to play, play to learn !
Dont drive faster than your guardian angel can fly ...
but keeping both feet on the ground wont get you anywhere :w00t:
- How to post Performance Problems
- How to post data/code to get the best help[/url]
- How to prevent a sore throat after hours of presenting ppt
press F1 for solution, press shift+F1 for urgent solution 😀
Need a bit of Powershell? How about this
Who am I ? Sometimes this is me but most of the time this is me
Viewing 3 posts - 1 through 2 (of 2 total)
You must be logged in to reply to this topic. Login to reply