Skip to content

Latest commit

 

History

History
49 lines (37 loc) · 1.35 KB

New-DBScripterObject.md

File metadata and controls

49 lines (37 loc) · 1.35 KB

New-DBScripterObject

Author Tim Cartwright

Source Code

Synopsis

Creates a database scripting object that can be customized and used by Invoke-DBScriptObjects

Description

Creates a database scripting object that can be customized and used by Invoke-DBScriptObjects

Syntax

New-DBScripterObject 
    [-ServerInstance] <String> 
    [-Credentials <PSCredential>] 
    [<CommonParameters>]

Parameters

-ServerInstance <String>
    The sql server instance to connect to.

    Required?                    true
    Position?                    1
    Default value                
    Accept pipeline input?       false
    Accept wildcard characters?  false

-Credentials <PSCredential>
    Specifies credentials to connect to the database with. If not supplied 
    then a trusted connection will be used.

    Required?                    false
    Position?                    3
    Default value                
    Accept pipeline input?       false
    Accept wildcard characters?  false

Example

$scripter = New-ScripterObject `
    -ServerInstance "ServerName" `
    -InformationAction Continue


Back