How to turn off or delay auto-connect to highlighted database from "Red Gate Software - SQL Tools"?
EatBugs
Posts: 3 New member
in SQL Prompt
Scenario: I'm trying to set multiple databases offline. Each database I highlight immediately gains one or two connections, which I then have to kill to set the db offline. It's dangerous since I could easily kill a legitimate connection unless I review existing connections in Activity for EVERY database I touch. This didn't used to be a problem!
Tagged:
Best Answer
-
EatBugs Posts: 3 New memberI figured it out! Mostly. It's not SQL Prompt that was the culprit; it was SQL Source Control. I assume because it's trying to locate source modifications, even though I didn't have it configured to any source control. Or maybe that's why it was going off script? Either way, I'll just leave that uninstalled.
Answers
A couple of suggestions would be to use the don't load suggestions option under the connections tab, and if that doesn't work, try and untick the Show code suggestions temporarily to prevent it loading any suggestions for the server you've clicked on.
Kind regards,
Kurt McCormick
Product Support Engineer, Redgate
Need help? Take a look at our Help Center
It'll most likely be because of having SQL Source Control installed in SSMS. When you click on a database, the SQL Source Control plugin checks to see if it's enabled for source control. You can see what I mean if you open the SQL Source Control plugin, and then click on each of your databases from the explorer window.
Kind regards,
Kurt McCormick
Product Support Engineer, Redgate
Need help? Take a look at our Help Center
If you're a Visual Studio (VS) user, I'd suggest opening your SQL Server Object Explorer pane through VS as this doesn't fire off this circular connection issue.