Hello, I have a production database that I need to recreate somewhere else
 but with no data in the tables. Is the best way to do this, simply using the
 'Generate SQL Script' option though Enterprise Manager against the existing
 database. Are there any objects that will not get created?
 One thing I have come across with scripting so far is that I have views
 based on views. So I'm having to manually change the order of views in my
 script to have the ones not based on views at the top. Is there a easier way
 to do this?
 Thanks
 DonHope the server is 2000 itself, the best way is by generate script only. You
will get all the objects asscoiated with one DB when using generate script.
Again the question regarding views, after generating the script reorder the
views according to your need. While sciprting it will get generated in the
order in which each object was created, so there wont be much work for you.
--
Thanks,
Sree
[Please specify the version of Sql Server as we can save one thread and time
asking back if its 2000 or 2005]
"Don" wrote:
> Hello, I have a production database that I need to recreate somewhere else
> but with no data in the tables. Is the best way to do this, simply using the
> 'Generate SQL Script' option though Enterprise Manager against the existing
> database. Are there any objects that will not get created?
> One thing I have come across with scripting so far is that I have views
> based on views. So I'm having to manually change the order of views in my
> script to have the ones not based on views at the top. Is there a easier way
> to do this?
> Thanks
> Don
 
No comments:
Post a Comment