You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
IsNewConnection records whether the connection behind the store was opened here or handed in by the caller. The registered server commands use it to decide whether they may close the connection when they are done.
52
54
53
55
All SMO RegisteredServersStore properties are accessible using Select-Object *, including the excluded properties if needed for advanced operations.
54
56
@@ -72,8 +74,17 @@ function Get-DbaRegServerStore {
72
74
)
73
75
process {
74
76
foreach ($instancein$SqlInstance) {
77
+
# Connect-DbaInstance tells us whether it opened a connection for us. The whole registered server
78
+
# family closes the connection through Disconnect-RegServer, which reads the answer back off the
79
+
# store, so that only a connection this module opened is ever closed. See #10572.
0 commit comments