SCA in SSMS: "Cannot drop database "%_SHADOW" because it is currently in use"
PeterDanielsCRB
Posts: 126 Bronze 3
SCA Version 4.2.20154.20409. SSMS plugin.
Attempting to "Generate migrations". Keep getting:
I've found the SPID connected to shadow and killed it a couple of times, but the error keeps happening. Closing the project and re-opening doesn't help. Restarting SSMS also not helping. Now, I'm installing the latest update of SCA...got to reboot. More to come....
Attempting to "Generate migrations". Keep getting:
I've found the SPID connected to shadow and killed it a couple of times, but the error keeps happening. Closing the project and re-opening doesn't help. Restarting SSMS also not helping. Now, I'm installing the latest update of SCA...got to reboot. More to come....
Tagged:
Answers
Thanks for reporting this.
I've seen this issue before, and I was able to resolve it by manually deleting the shadow database (with the option to close existing connections when I do so). That is a workaround and not something we want users to have to do regularly, so if this issue persists after yesterday's release, we should look into it. I'll keep an eye out for it as well.
Kendra
RedGate Software Developer