Red Gate forums :: View topic - Delete database if it exists....
Return to www.red-gate.com RSS Feed Available

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

Delete database if it exists....

Search in SQL Packager 6 forum
Post new topic   Reply to topic
Jump to:  
Author Message
splitpete



Joined: 26 Aug 2010
Posts: 5

PostPosted: Thu Aug 26, 2010 11:07 am    Post subject: Delete database if it exists.... Reply with quote

Hi,

I would like to create an exe that installs a database. I am able to do that easily enough. However, if the database already exists on the specified machine, I want the existing database to be deleted and the new version to be installed in its place.

I attempted to do this by creating a script and inserting the appropriate code to perform the delete in the script and then creating an exe from that script. This does not work. The exe tells me there is already a database by that name and won't continue until I provide a different one. I know it has not reached the script at this point.

Is there a way to do this?

Thanks in advance

-splitpete
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