Is it possible to get VS to drop the destination database before a deploy?
I’ve tried adding a post deploy script to the project, but it always comes back with active connections.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You’ll need to look up the
Always recreate databaseoption in the properties of the database project -> Deploy -> Deployment configuration file -> Edit Dialog.Another option “Drop objects that exist in the target database but not in the schema” can also be useful to you.