| Author |
Message |
bpye
Joined: 27 Mar 2007 Posts: 3
|
Posted: Tue Mar 27, 2007 2:32 pm Post subject: Dropping objects before create |
|
|
| 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 |
|
 |
Brian Donahue
Joined: 23 Aug 2004 Posts: 6348 Location: Red Gate Software
|
Posted: Tue Mar 27, 2007 9:23 pm Post subject: |
|
|
Hi,
Unfortunately not. New database packages shouldn't need this logic, and upgrade packages attempt to modify and adjust existing objects. _________________ Brian Donahue
Technical Support
Red Gate Software Ltd.
44 (0)870 160 0037 ext 8521
US and CAN 1-866-RED GATE ext 8521 |
|
| Back to top |
|
 |
bpye
Joined: 27 Mar 2007 Posts: 3
|
Posted: Tue Mar 27, 2007 9:31 pm Post subject: |
|
|
| Thanks for the reply. Will any of the Red Gate tools generate IF EXISTS...DROP... scripts for objects I select? |
|
| Back to top |
|
 |
bpye
Joined: 27 Mar 2007 Posts: 3
|
Posted: Wed Mar 28, 2007 4:58 pm Post subject: |
|
|
| In case anyone is interested, I ended up generating DROP script by configuring SQL Packager to upgrade to an empty database. |
|
| Back to top |
|
 |
|
|
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