< Back

Invoke-SQL

Mon Jan 13, 2020 3:17 am

NAME Invoke-SQL



SYNTAX

Invoke-SQL [[-DatabaseServer] <string>] [[-DatabaseInstance] <string>] [[-DatabaseName] <string>] [[-SQLCommand]

<string>] [<CommonParameters>]





PARAMETERS

-DatabaseInstance <string>



Required? false

Position? 1

Accept pipeline input? false

Parameter set name (All)

Aliases None

Dynamic? false



-DatabaseName <string>



Required? false

Position? 2

Accept pipeline input? false

Parameter set name (All)

Aliases None

Dynamic? false



-DatabaseServer <string>



Required? false

Position? 0

Accept pipeline input? false

Parameter set name (All)

Aliases None

Dynamic? false



-SQLCommand <string>



Required? false

Position? 3

Accept pipeline input? false

Parameter set name (All)

Aliases None

Dynamic? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).





INPUTS

None





OUTPUTS

System.Object



ALIASES

None





REMARKS

None