CleanCode PowerShell Libraries v1.2.08 API: CleanCode » SqlTools » Invoke-InferredSqlcmd
A character string specifying the name of an instance of
the Database Engine. For default instances, only specify the computer name:
"MyComputer". For named instances, use the format "ComputerName\InstanceName".
If -ServerInstance is not specified Invoke-InferredSqlcmd attempts to infer it:
* If on a SQLSERVER: drive (or alias) and the path specifies the SQL folder,
Invoke-InferredSqlcmd uses the server and instance specified in the path.
* If not on a SQLSERVER: drive but the current location on your SQLSERVER:
drive specifies the SQL folder, Invoke-InferredSqlcmd uses the server and instance
specified in that path.
This latter inference is the difference between Invoke-Sqlcmd
and Invoke-InferredSqlcmd.
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
A character string specifying the name of a database.
Invoke-InferredSqlcmd connects to this database in the instance specified by -ServerInstance.
If -Database is not specified Invoke-InferredSqlcmd attempts to infer it:
* If on a SQLSERVER: drive (or alias) and the path specifies both the SQL folder
and a database name, Invoke-InferredSqlcmd uses the database specified in the path.
* If not on a SQLSERVER: drive but the current location on your SQLSERVER:
drive specifies both the SQL folder and a database name, Invoke-InferredSqlcmd uses
the database specified in that path.
This latter inference is the difference between Invoke-Sqlcmd
and Invoke-InferredSqlcmd.
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
See Invoke-Sqlcmd.
Required? false
Position? named
Default value False
Accept pipeline input? false
Accept wildcard characters? false
See Invoke-Sqlcmd.
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
See Invoke-Sqlcmd.
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
See Invoke-Sqlcmd.
Required? false
Position? 1
Default value
Accept pipeline input? false
Accept wildcard characters? false
See Invoke-Sqlcmd.
Required? false
Position? named
Default value 0
Accept pipeline input? false
Accept wildcard characters? false
See Invoke-Sqlcmd.
Required? false
Position? named
Default value 0
Accept pipeline input? false
Accept wildcard characters? false
See Invoke-Sqlcmd.
Required? false
Position? named
Default value 0
Accept pipeline input? false
Accept wildcard characters? false
See Invoke-Sqlcmd.
Required? false
Position? named
Default value 0
Accept pipeline input? false
Accept wildcard characters? false
See Invoke-Sqlcmd.
Required? false
Position? named
Default value 0
Accept pipeline input? false
Accept wildcard characters? false
See Invoke-Sqlcmd.
Required? false
Position? named
Default value 0
Accept pipeline input? false
Accept wildcard characters? false
See Invoke-Sqlcmd.
Required? false
Position? named
Default value False
Accept pipeline input? false
Accept wildcard characters? false
See Invoke-Sqlcmd.
Required? false
Position? named
Default value False
Accept pipeline input? false
Accept wildcard characters? false
See Invoke-Sqlcmd.
Required? false
Position? named
Default value False
Accept pipeline input? false
Accept wildcard characters? false
See Invoke-Sqlcmd.
Required? false
Position? named
Default value False
Accept pipeline input? false
Accept wildcard characters? false
See Invoke-Sqlcmd.
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
See Invoke-Sqlcmd.
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
See Invoke-Sqlcmd.
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
See Invoke-Sqlcmd.
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
See Invoke-Sqlcmd.
Required? false
Position? named
Default value False
Accept pipeline input? false
Accept wildcard characters? false
See Invoke-Sqlcmd.
Required? false
Position? named
Default value False
Accept pipeline input? false
Accept wildcard characters? false
See Invoke-Sqlcmd.
Required? false
Position? named
Default value False
Accept pipeline input? false
Accept wildcard characters? false
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer and OutVariable. For more information, see
about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).
This function is part of the CleanCode toolbox
from http://cleancode.sourceforge.net/.
Since CleanCode 1.1.05.
-none-
This documentation set was created with CleanCode's DocTreeGenerator.