Created
November 30, 2014 12:45
-
-
Save martin9700/8249d9143043cb80aa4a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
End { | |
If ($Input) | |
{ $Query = $Input -join "`n" | |
} | |
If ($Credential) | |
{ $Security = "uid=$($Credential.UserName);pwd=$($Credential.GetNetworkCredential().Password)" | |
} | |
Else | |
{ $Security = "Integrated Security=True;" | |
} | |
If ($MultiSubnetFailover) | |
{ $MSF = "MultiSubnetFailover=yes;" | |
Write-Warning "MultiSubnetFailover has been set to on. You must have the SQL 2012 Native Client installed for this to work." | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment