Skip to content

Commit

Permalink
Merge branch 'development'
Browse files Browse the repository at this point in the history
  • Loading branch information
potatoqualitee committed Oct 14, 2024
2 parents 918182a + 1123b2d commit f3ec064
Show file tree
Hide file tree
Showing 80 changed files with 719 additions and 399 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/integration-tests-repl.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,8 @@ jobs:
- name: Run replication tests part 1
run: |
Import-Module ./dbatools.psd1 -Force
$null = Invoke-Pester ./tests/gh-actions-repl-1.ps1 -Output Detailed -PassThru -Verbose
# Disabled for now, it's suddenly failing
# $null = Invoke-Pester ./tests/gh-actions-repl-1.ps1 -Output Detailed -PassThru -Verbose
repl-tests-part2:
runs-on: ubuntu-latest
Expand Down
39 changes: 38 additions & 1 deletion bin/dbatools-buildref-index.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"LastUpdated": "2024-09-11T00:00:00",
"LastUpdated": "2024-10-08T00:00:00",
"Data": [
{
"Version": "8.0.47",
Expand Down Expand Up @@ -4123,6 +4123,10 @@
"Version": "13.0.6445",
"KBList": "5042207"
},
{
"Version": "13.0.6450",
"KBList": "5046063"
},
{
"Version": "13.0.7000",
"KBList": "5014242"
Expand All @@ -4147,6 +4151,10 @@
"Version": "13.0.7040",
"KBList": "5042209"
},
{
"Version": "13.0.7045",
"KBList": "5046062"
},
{
"Version": "14.0.1",
"Name": "2017"
Expand Down Expand Up @@ -4216,6 +4224,10 @@
"Version": "14.0.2060",
"KBList": "5042217"
},
{
"Version": "14.0.2065",
"KBList": "5046058"
},
{
"CU": "CU1",
"Version": "14.0.3006",
Expand Down Expand Up @@ -4415,6 +4427,10 @@
"Version": "14.0.3475",
"KBList": "5042215"
},
{
"Version": "14.0.3480",
"KBList": "5046061"
},
{
"Version": "15.0.1000",
"Name": "2019"
Expand Down Expand Up @@ -4468,6 +4484,10 @@
"Version": "15.0.2120",
"KBList": "5042214"
},
{
"Version": "15.0.2125",
"KBList": "5046056"
},
{
"CU": "CU1",
"Version": "15.0.4003",
Expand Down Expand Up @@ -4637,6 +4657,10 @@
"Version": "15.0.4390",
"KBList": "5042749"
},
{
"Version": "15.0.4395",
"KBList": "5046060"
},
{
"Version": "16.0.100",
"Name": "2022"
Expand Down Expand Up @@ -4678,6 +4702,10 @@
"Version": "16.0.1125",
"KBList": "5042211"
},
{
"Version": "16.0.1130",
"KBList": "5046057"
},
{
"CU": "CU1",
"Version": "16.0.4003",
Expand Down Expand Up @@ -4767,6 +4795,15 @@
{
"Version": "16.0.4140",
"KBList": "5042578"
},
{
"CU": "CU15",
"Version": "16.0.4145",
"KBList": "5041321"
},
{
"Version": "16.0.4150",
"KBList": "5046059"
}
]
}
Binary file modified bin/dbatools-index.json
Binary file not shown.
2 changes: 1 addition & 1 deletion bin/diagnosticquery/SQLServerDiagnosticQueries_2012.sql
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

-- SQL Server 2012 Diagnostic Information Queries
-- Glenn Berry
-- Last Modified: June 14, 2024
-- Last Modified: September 4, 2024
-- https://glennsqlperformance.com/
-- https://sqlserverperformance.wordpress.com/
-- YouTube: https://bit.ly/2PkoAM1
Expand Down
2 changes: 1 addition & 1 deletion bin/diagnosticquery/SQLServerDiagnosticQueries_2014.sql
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

-- SQL Server 2014 Diagnostic Information Queries
-- Glenn Berry
-- Last Modified: July 9, 2024
-- Last Modified: September 4, 2024
-- https://glennsqlperformance.com/
-- https://sqlserverperformance.wordpress.com/
-- YouTube: https://bit.ly/2PkoAM1
Expand Down
5 changes: 2 additions & 3 deletions bin/diagnosticquery/SQLServerDiagnosticQueries_2016.sql
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

-- SQL Server 2016 Diagnostic Information Queries
-- Glenn Berry
-- Last Modified: July 9, 2024
-- Last Modified: September 4, 2024
-- https://glennsqlperformance.com/
-- https://sqlserverperformance.wordpress.com/
-- YouTube: https://bit.ly/2PkoAM1
Expand Down Expand Up @@ -2004,8 +2004,7 @@ SELECT es.session_id, DB_NAME(es.database_id) AS [Database Name],
FROM sys.dm_exec_sessions AS es WITH (NOLOCK)
CROSS APPLY sys.dm_exec_input_buffer(es.session_id, NULL) AS ib
WHERE es.database_id = DB_ID()
AND es.session_id > 50
AND es.session_id <> @@SPID OPTION (RECOMPILE);
AND es.is_user_process = 1 OPTION (RECOMPILE);
------

-- Gives you input buffer information from all non-system sessions for the current database
Expand Down
17 changes: 13 additions & 4 deletions bin/diagnosticquery/SQLServerDiagnosticQueries_2016SP2.sql
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

-- SQL Server 2016 SP2 Diagnostic Information Queries
-- Glenn Berry
-- Last Modified: July 9, 2024
-- Last Modified: September 11, 2024
-- https://glennsqlperformance.com/
-- https://sqlserverperformance.wordpress.com/
-- YouTube: https://bit.ly/2PkoAM1
Expand Down Expand Up @@ -85,13 +85,23 @@ SELECT @@SERVERNAME AS [Server Name], @@VERSION AS [SQL Server and OS Version In
-- 13.0.5865.1 SP2 CU15 + Security Update 1/12/2021 https://support.microsoft.com/en-us/help/4583461/kb4583461-security-update-for-sql-server-2016-sp2-cu15
-- 13.0.5882.1 SP2 CU16 2/11/2021 https://support.microsoft.com/en-us/office/kb5000645-cumulative-update-16-for-sql-server-2016-sp2-a3997fa9-ec49-4df0-bcc3-12dd58b78265
-- 13.0.5888.11 SP2 CU17 3/29/2021 https://support.microsoft.com/en-us/topic/kb5001092-cumulative-update-17-for-sql-server-2016-sp2-5876a4d6-59ac-484a-93dc-4be456cd87d1

-- SP3 Builds
-- 13.0.6300.2 SP3 RTM 9/15/2021 https://support.microsoft.com/en-us/topic/kb5003279-sql-server-2016-service-pack-3-release-information-46ab9543-5cf9-464d-bd63-796279591c31
-- 13.0.6404.1 SP3 Hotfix 10/28/2021 https://support.microsoft.com/en-us/topic/kb5006943-on-demand-hotfix-update-package-for-sql-server-2016-sp3-94de2975-cd7d-47ed-b003-5d7daf4e2caf
-- 13.0.6419.1 SP3 + GDR 6/14/2022 https://support.microsoft.com/en-us/topic/kb5014355-description-of-the-security-update-for-sql-server-2016-sp3-gdr-june-14-2022-bb5097a0-f8f1-4d2c-bfe1-af069ca3cc59
-- 13.0.6430.49 SP3 + GDR 3/2/2023 https://support.microsoft.com/en-us/topic/kb5021129-description-of-the-security-update-for-sql-server-2016-sp3-gdr-february-14-2023-1a592815-9dc4-434b-9fb2-119339251317
-- 13.0.6435.1 SP3 + GDR 10/10/2023 https://support.microsoft.com/en-us/topic/kb5029186-description-of-the-security-update-for-sql-server-2016-sp3-gdr-october-10-2023-618b034a-d575-48e0-804a-7b481ba2e600
-- 13.0.6441.1 SP3 + GDR 7/9/2024 https://support.microsoft.com/en-us/topic/kb5040946-description-of-the-security-update-for-sql-server-2016-sp3-gdr-july-9-2024-e943f6a8-7a97-41b4-804c-c52ca775f5dd
-- 13.0.6445.1 SP3 + GDR 9/10/2024 https://support.microsoft.com/en-us/topic/kb5042207-description-of-the-security-update-for-sql-server-2016-sp3-gdr-september-10-2024-e27a41df-009d-4a50-85e7-dc8f06b9a5a5

-- Azure Connect Pack Builds
-- 13.0.7000.253 Azure Connect Pack 5/19/2022 https://learn.microsoft.com/en-us/troubleshoot/sql/releases/sqlserver-2016/servicepack3-azureconnect
-- 13.0.7016.1 Azure Connect Pack + GDR 6/14/2022 https://support.microsoft.com/en-us/topic/kb5015371-description-of-the-security-update-for-sql-server-2016-sp3-azure-connect-feature-pack-june-14-2022-d809657e-15a9-48fe-bd19-a8864ac5d3a4
-- 13.0.7024.30 Azure Connect Pack + GDR 2/14/2023 https://support.microsoft.com/en-us/topic/kb5021128-description-of-the-security-update-for-sql-server-2016-sp3-azure-connect-feature-pack-february-14-2023-89e54794-460a-41bd-981f-998290e7d46e
-- 13.0.7029.3 Azure Connect Pack + GDR 10/10/2023 https://support.microsoft.com/en-us/topic/kb5029187-description-of-the-security-update-for-sql-server-2016-sp3-azure-connect-feature-pack-october-10-2023-e5541468-f243-4000-872c-ac782cfad99f
-- 13.0.7037.1 Azure Connect Pack + GDR 7/9/2024 https://support.microsoft.com/en-us/topic/kb5040944-description-of-the-security-update-for-sql-server-2016-sp3-azure-connect-feature-pack-july-9-2024-72b636c9-0619-4c44-b263-f3d7478bcd75
-- 13.0.7037.1 Azure Connect Pack + GDR 7/9/2024 https://support.microsoft.com/en-us/topic/kb5040944-description-of-the-security-update-for-sql-server-2016-sp3-azure-connect-feature-pack-july-9-2024-72b636c9-0619-4c44-b263-f3d7478bcd75
-- 13.0.7040.1 Azure Connect Pack + GDR 9/10/2024 https://support.microsoft.com/en-us/topic/kb5042207-description-of-the-security-update-for-sql-server-2016-sp3-gdr-september-10-2024-e27a41df-009d-4a50-85e7-dc8f06b9a5a5

-- How to determine the version, edition and update level of SQL Server and its components
-- https://bit.ly/2oAjKgW
Expand Down Expand Up @@ -2027,8 +2037,7 @@ SELECT es.session_id, DB_NAME(es.database_id) AS [Database Name],
FROM sys.dm_exec_sessions AS es WITH (NOLOCK)
CROSS APPLY sys.dm_exec_input_buffer(es.session_id, NULL) AS ib
WHERE es.database_id = DB_ID()
AND es.session_id > 50
AND es.session_id <> @@SPID OPTION (RECOMPILE);
AND es.is_user_process = 1 OPTION (RECOMPILE);
------

-- Gives you input buffer information from all non-system sessions for the current database
Expand Down
6 changes: 3 additions & 3 deletions bin/diagnosticquery/SQLServerDiagnosticQueries_2017.sql
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

-- SQL Server 2017 Diagnostic Information Queries
-- Glenn Berry
-- Last Modified: July 10, 2024
-- Last Modified: September 11, 2024
-- https://glennsqlperformance.com/
-- https://sqlserverperformance.wordpress.com/
-- YouTube: https://bit.ly/2PkoAM1
Expand Down Expand Up @@ -107,6 +107,7 @@ SELECT @@SERVERNAME AS [Server Name], @@VERSION AS [SQL Server and OS Version In
-- 14.0.3460.9 CU31 + GDR 2/14/2023 https://support.microsoft.com/en-us/topic/kb5021126-description-of-the-security-update-for-sql-server-2017-cu31-february-14-2023-2867280f-e66f-4598-a2f1-3d301e367683
-- 14.0.3465.1 CU31 + GDR 10/10/2023 https://support.microsoft.com/en-us/topic/kb5029376-description-of-the-security-update-for-sql-server-2017-cu31-october-10-2023-ce23ddf7-b79e-4ba7-ba9d-2679f23a1ad8
-- 14.0.3471.2 CU31 + GDR 7/9/2024 https://support.microsoft.com/en-us/topic/kb5040940-description-of-the-security-update-for-sql-server-2017-cu31-july-9-2024-bff7ab26-e882-4419-aebb-30356125f5c9
-- 14.0.3475.1 CU31 + GDR 9/10/2024 https://support.microsoft.com/en-us/topic/kb5042215-description-of-the-security-update-for-sql-server-2017-cu31-september-10-2024-55bba26f-548d-466c-9c48-edfb51a53a8a

-- How to determine the version, edition and update level of SQL Server and its components
-- https://bit.ly/2oAjKgW
Expand Down Expand Up @@ -2063,8 +2064,7 @@ SELECT es.session_id, DB_NAME(es.database_id) AS [Database Name],
FROM sys.dm_exec_sessions AS es WITH (NOLOCK)
CROSS APPLY sys.dm_exec_input_buffer(es.session_id, NULL) AS ib
WHERE es.database_id = DB_ID()
AND es.session_id > 50
AND es.session_id <> @@SPID OPTION (RECOMPILE);
AND es.is_user_process = 1 OPTION (RECOMPILE);
------

-- Gives you input buffer information from all non-system sessions for the current database
Expand Down
10 changes: 6 additions & 4 deletions bin/diagnosticquery/SQLServerDiagnosticQueries_2019.sql
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

-- SQL Server 2019 Diagnostic Information Queries
-- Glenn Berry
-- Last Modified: July 9, 2024
-- Last Modified: October 2, 2024
-- https://glennsqlperformance.com/
-- https://sqlserverperformance.wordpress.com/
-- YouTube: https://bit.ly/2PkoAM1
Expand Down Expand Up @@ -102,7 +102,10 @@ SELECT @@SERVERNAME AS [Server Name], @@VERSION AS [SQL Server and OS Version In
-- 15.0.4360.2 CU25 + GDR 4/9/2024 https://support.microsoft.com/en-us/topic/kb5036335-description-of-the-security-update-for-sql-server-2019-cu25-april-9-2024-eb3571d0-62ee-445e-9681-5715caf9bbc2
-- 15.0.4365.2 CU26 4/11/2024 https://learn.microsoft.com/en-us/troubleshoot/sql/releases/sqlserver-2019/cumulativeupdate26
-- 15.0.4375.4 CU27 6/13/2024 https://learn.microsoft.com/en-us/troubleshoot/sql/releases/sqlserver-2019/cumulativeupdate27
-- 15.0.8382.1 CU27 + GDR 7/9/2024 https://support.microsoft.com/en-us/topic/kb5040948-description-of-the-security-update-for-sql-server-2019-cu27-july-9-2024-6447dc00-9f1b-484c-9d3d-9e1f1b9f915c
-- 15.0.4382.1 CU27 + GDR 7/9/2024 https://support.microsoft.com/en-us/topic/kb5040948-description-of-the-security-update-for-sql-server-2019-cu27-july-9-2024-6447dc00-9f1b-484c-9d3d-9e1f1b9f915c
-- 15.0.4385.2 CU28 8/1/2024 https://learn.microsoft.com/en-us/troubleshoot/sql/releases/sqlserver-2019/cumulativeupdate28
-- 15.0.4390.2 CU28 + GDR 9/10/2024 https://support.microsoft.com/en-us/topic/kb5042749-description-of-the-security-update-for-sql-server-2019-cu28-september-10-2024-17402ce5-07d3-4e30-9037-9ef997104f34


-- How to determine the version, edition and update level of SQL Server and its components
-- https://bit.ly/2oAjKgW
Expand Down Expand Up @@ -2173,8 +2176,7 @@ SELECT es.session_id, DB_NAME(es.database_id) AS [Database Name],
FROM sys.dm_exec_sessions AS es WITH (NOLOCK)
CROSS APPLY sys.dm_exec_input_buffer(es.session_id, NULL) AS ib
WHERE es.database_id = DB_ID()
AND es.session_id > 50
AND es.session_id <> @@SPID OPTION (RECOMPILE);
AND es.is_user_process = 1 OPTION (RECOMPILE);
------

-- Gives you input buffer information from all non-system sessions for the current database
Expand Down
9 changes: 5 additions & 4 deletions bin/diagnosticquery/SQLServerDiagnosticQueries_2022.sql
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

-- SQL Server 2022 Diagnostic Information Queries
-- Glenn Berry
-- Last Modified: July 24, 2024
-- Last Modified: October 3, 2024
-- https://glennsqlperformance.com/
-- https://sqlserverperformance.wordpress.com/
-- YouTube: https://bit.ly/2PkoAM1
Expand Down Expand Up @@ -82,6 +82,8 @@ SELECT @@SERVERNAME AS [Server Name], @@VERSION AS [SQL Server and OS Version In
-- 16.0.4125.3 CU13 5/16/2024 https://learn.microsoft.com/en-us/troubleshoot/sql/releases/sqlserver-2022/cumulativeupdate13
-- 16.0.4131.2 CU13 + GDR 7/9/2024 https://support.microsoft.com/en-us/topic/kb5040939-description-of-the-security-update-for-sql-server-2022-cu13-july-9-2024-16a61a81-926c-46a5-b6c0-edbca541f2f6
-- 16.0.4135.4 CU14 7/23/2024 https://learn.microsoft.com/en-us/troubleshoot/sql/releases/sqlserver-2022/cumulativeupdate14
-- 16.0.4140.3 CU14 + GDR 9/10/2024 https://support.microsoft.com/en-us/topic/kb5042578-description-of-the-security-update-for-sql-server-2022-cu14-september-10-2024-560e6e4c-1f49-4c18-9eb7-054e9fdee3c7
-- 16.0.4145.4 CU15 9/25/2024 https://learn.microsoft.com/en-us/troubleshoot/sql/releases/sqlserver-2022/cumulativeupdate15

-- What's new in SQL Server 2022 (16.x)
-- https://bit.ly/3MJEjR1
Expand Down Expand Up @@ -2198,7 +2200,7 @@ ORDER BY total_worker_time DESC OPTION (RECOMPILE);


-- Determine which scalar UDFs are in-lineable (Query 84) (Inlineable UDFs)
SELECT OBJECT_NAME(m.object_id) AS [Function Name], is_inlineable, inline_type,
SELECT OBJECT_NAME(m.object_id) AS [Function Name], m.is_inlineable, m.inline_type,
efs.total_worker_time
FROM sys.sql_modules AS m WITH (NOLOCK)
LEFT OUTER JOIN sys.dm_exec_function_stats AS efs WITH (NOLOCK)
Expand Down Expand Up @@ -2246,8 +2248,7 @@ SELECT es.session_id, DB_NAME(es.database_id) AS [Database Name],
FROM sys.dm_exec_sessions AS es WITH (NOLOCK)
CROSS APPLY sys.dm_exec_input_buffer(es.session_id, NULL) AS ib
WHERE es.database_id = DB_ID()
AND es.session_id > 50
AND es.session_id <> @@SPID OPTION (RECOMPILE);
AND es.is_user_process = 1 OPTION (RECOMPILE);
------

-- Gives you input buffer information from all non-system sessions for the current database
Expand Down
2 changes: 1 addition & 1 deletion dbatools.psd1
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
RootModule = 'dbatools.psm1'

# Version number of this module.
ModuleVersion = '2.1.23'
ModuleVersion = '2.1.26'

# ID used to uniquely identify this module
GUID = '9d139310-ce45-41ce-8e8b-d76335aa1789'
Expand Down
45 changes: 24 additions & 21 deletions private/functions/Test-DbaLsnChain.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ function Test-DbaLsnChain {
}
$DiffAnchor = $TestHistory | Where-Object { $_.$TypeName -in ('Database Differential', 'Differential') }
#Check for no more than a single Differential backup
if (($DiffAnchor.FirstLSN | Select-Object -unique | Measure-Object).count -gt 1) {
if (($DiffAnchor.FirstLSN | Select-Object -Unique | Measure-Object).count -gt 1) {
Write-Message -Level Warning -Message "More than 1 differential backup, not supported"
return $false
break;
Expand All @@ -96,27 +96,30 @@ function Test-DbaLsnChain {


#Check T-log LSNs form a chain.
$TranLogBackups = $TestHistory | Where-Object { $_.$TypeName -in ('Transaction Log', 'Log') -and $_.DatabaseBackupLSN -eq $FullDBAnchor.CheckPointLSN } | Sort-Object -Property LastLSN, FirstLsn
for ($i = 0; $i -lt ($TranLogBackups.count)) {
Write-Message -Level Debug -Message "looping t logs"
if ($i -eq 0) {
if ($TranLogBackups[$i].FirstLSN -gt $TlogAnchor.LastLSN) {
Write-Message -Level Warning -Message "Break in LSN Chain between $($TlogAnchor.FullName) and $($TranLogBackups[($i)].FullName) "
Write-Message -Level Verbose -Message "Anchor $($TlogAnchor.LastLSN) - FirstLSN $($TranLogBackups[$i].FirstLSN)"
return $false
break
}
} else {
if ($TranLogBackups[($i - 1)].LastLsn -ne $TranLogBackups[($i)].FirstLSN -and ($TranLogBackups[($i)] -ne $TranLogBackups[($i - 1)])) {
Write-Message -Level Warning -Message "Break in transaction log between $($TranLogBackups[($i-1)].FullName) and $($TranLogBackups[($i)].FullName) "
return $false
break
}
}
$i++
$TranLogBackups = $TestHistory | Where-Object {
$_.$TypeName -in ('Transaction Log', 'Log') -and (($_.DatabaseBackupLSN.ToString() -eq $FullDBAnchor.CheckPointLSN) -or (($_.DatabaseBackupLSN.ToString() -ne $FullDBAnchor.CheckPointLSN) -and ($TranLogBackups[$i].FirstLSN -gt $FullDBAnchor.CheckPointLSN)))
} | Sort-Object -Property LastLSN, FirstLsn

for ($i = 0; $i -lt ($TranLogBackups.count)) {
Write-Message -Level Debug -Message "looping t logs"
if ($i -eq 0) {
if ($TranLogBackups[$i].FirstLSN.ToString() -gt $TlogAnchor.LastLSN) {
Write-Message -Level Warning -Message "Break in LSN Chain between $($TlogAnchor.FullName) and $($TranLogBackups[($i)].FullName) "
Write-Message -Level Verbose -Message "Anchor $($TlogAnchor.LastLSN) - FirstLSN $($TranLogBackups[$i].FirstLSN)"
return $false
break
}
} else {
if ($TranLogBackups[($i - 1)].LastLsn -ne $TranLogBackups[($i)].FirstLSN -and ($TranLogBackups[($i)] -ne $TranLogBackups[($i - 1)])) {
Write-Message -Level Warning -Message "Break in transaction log between $($TranLogBackups[($i-1)].FullName) and $($TranLogBackups[($i)].FullName) "
return $false
break
}
}
Write-Message -Level VeryVerbose -Message "Passed LSN Chain checks"
return $true
$i++

}
Write-Message -Level VeryVerbose -Message "Passed LSN Chain checks"
return $true
}
}
5 changes: 4 additions & 1 deletion public/Connect-DbaInstance.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -639,10 +639,13 @@ function Connect-DbaInstance {
if ($Database) {
# Save StatementTimeout because it might be reset on GetDatabaseConnection
$savedStatementTimeout = $connContext.StatementTimeout
$connContext = $connContext.GetDatabaseConnection($Database)
$connContext = $connContext.GetDatabaseConnection($Database, $false)
$connContext.StatementTimeout = $savedStatementTimeout
}
$server = New-Object -TypeName Microsoft.SqlServer.Management.Smo.Server -ArgumentList $connContext
if ($Database -and $server.ConnectionContext.CurrentDatabase -ne $Database) {
Write-Message -Level Warning -Message "Changing connection context to database $Database was not successful. Current database is $($server.ConnectionContext.CurrentDatabase). Please open an issue on https://github.com/dataplat/dbatools/issues."
}
} else {
$server = $inputObject
}
Expand Down
Loading

0 comments on commit f3ec064

Please sign in to comment.