Red Gate forums :: View topic - Dropping objects before create
Return to www.red-gate.com RSS Feed Available

Search  | Usergroups |  Profile |  Messages |  Log in  Register 
Go to product documentation
SQL Packager Previous Versions
SQL Packager Previous Versions forum

Dropping objects before create

Search in SQL Packager Previous Versions forum
Post new topic   Reply to topic
Jump to:  
Author Message
bpye



Joined: 27 Mar 2007
Posts: 3

PostPosted: Tue Mar 27, 2007 2:32 pm    Post subject: Dropping objects before create Reply with quote

Is there any way to generate a package that will check for existence of database objects and drop them if they exist, before creating them?
Back to top
View user's profile Send private message
Brian Donahue



Joined: 23 Aug 2004
Posts: 6641

PostPosted: Tue Mar 27, 2007 9:23 pm    Post subject: Reply with quote

Hi,

Unfortunately not. New database packages shouldn't need this logic, and upgrade packages attempt to modify and adjust existing objects.
Back to top
View user's profile Send private message
bpye



Joined: 27 Mar 2007
Posts: 3

PostPosted: Tue Mar 27, 2007 9:31 pm    Post subject: Reply with quote

Thanks for the reply. Will any of the Red Gate tools generate IF EXISTS...DROP... scripts for objects I select?
Back to top
View user's profile Send private message
bpye



Joined: 27 Mar 2007
Posts: 3

PostPosted: Wed Mar 28, 2007 4:58 pm    Post subject: Reply with quote

In case anyone is interested, I ended up generating DROP script by configuring SQL Packager to upgrade to an empty database.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic All times are GMT + 1 Hour
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group