Skip to content

Instantly share code, notes, and snippets.

@martin9700
Created November 30, 2014 12:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save martin9700/825eb9f76499dda54580 to your computer and use it in GitHub Desktop.
Save martin9700/825eb9f76499dda54580 to your computer and use it in GitHub Desktop.
[CmdletBinding(DefaultParameterSetName="query")]
Param (
[string[]]$Instance = $env:COMPUTERNAME,
[Parameter(ParameterSetName="query",Mandatory)]
[string]$Database,
[Management.Automation.PSCredential]$Credential,
[switch]$MultiSubnetFailover,
[Parameter(ParameterSetName="query",ValueFromPipeline)]
[string]$Query,
[Parameter(ParameterSetName="list")]
[switch]$ListDatabases
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment