Skip to content
Permalink
Browse files

try harder to get the db

  • Loading branch information...
potatoqualitee committed Mar 15, 2019
1 parent 7494d5f commit 763ebaae93bfa36fe499d68bc9f8841a8e88b08f
Showing with 8 additions and 0 deletions.
  1. +8 −0 xml/dbatools.Types.ps1xml
@@ -45,6 +45,10 @@
if (-not $Database) {
$Database = $this.ConnectionContext.SqlConnectionObject.Database
}

if (-not $Database) {
$Database = $this.ConnectionContext.DatabaseName
}
}
if (-not $Database) {
$Database = "master"
@@ -67,6 +71,10 @@
if (-not $Database) {
$Database = $this.ConnectionContext.SqlConnectionObject.Database
}

if (-not $Database) {
$Database = $this.ConnectionContext.DatabaseName
}
}
if (-not $Database) {
$Database = "master"

0 comments on commit 763ebaa

Please sign in to comment.
You can’t perform that action at this time.