/build/static/layout/Breadcrumb_cap_w.png

Installing database MSI - drop database

Hi,

I have development a Wise Installer MSI to create a database, it runs a long transact SQL script as a SQL Scripts Action. This SQL creates a database and populates it with table and view on those tables. Fine.


But when I unistall, it leaves the database behind. I would like to uninstall to drop the database.

I watched your video on custom actions, and I believe I can write a Windows App to connect and drop the database when uninstall is requested.

If this the best solution to dropping the database ? Or is there a better cleaner way to to it?


thanks, Adrian

0 Comments   [ + ] Show comments

Answers (1)

Posted by: anonymous_9363 15 years ago
Red Belt
0
You won't need to develop an application to do this: surely a simple SQL script executed with OSQL (or whatever the database client's query tool is called) will suffice? http://sqlserver2000.databases.aspfaq.com/how-do-i-drop-a-sql-server-database.html
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ