Change the database for a new query window opened
When you find something in HD's window and choose, say, "Select", the add-in opens a new query window (with "USE" statement in it) but not change the database for that window. It's kinda annoying.
Comments (13)
-
-
reporter You have a method in ManagementStudioController class - CreateSQLDocument. There you create a new document (I suspect it's about opening a query window), where you call CreateNewBlankScript supplying UIConnectionInfo object (http://technet.microsoft.com/en-us/library/microsoft.sqlserver.management.smo.regsvrenum.uiconnectioninfo_properties.aspx). You can probably set the database using AdvancedOptions property ("DATABASE"). (http://technet.microsoft.com/en-us/library/microsoft.sqlserver.management.smo.regsvrenum.uiconnectioninfo.advancedoptions.aspx)
-
reporter - changed milestone to 2014-04-01
-
reporter - changed milestone to 2015-04-01
-
reporter - changed milestone to 2015-07-01
-
reporter - changed version to 3.1.1
-
reporter - changed component to ux
-
reporter - changed milestone to 2015-08-01
- changed version to 3.1.2
-
reporter - changed version to 3.1.4
-
reporter - changed version to 3.2.1
-
reporter - changed milestone to 2016-02-01
-
reporter - changed version to 3.5.0
-
reporter - changed version to 3.6.0
- Log in to comment
I know it is - but it is not because I am lazy or something. It is because I didn't find a way to hack SQL Studio to force ti to change connection...