Server Constructor
Collapse the table of content
Expand the table of content

Server Constructor ()


Initializes a new instance of the Server class.

Namespace:   Microsoft.SqlServer.Management.Smo
Assembly:  Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)

new : unit -> Server

The default constructor initializes any fields to their default values.

Visual Basic


$srv = new-Object Microsoft.SqlServer.Management.Smo.Server("(local)")
Write-Host $srv.Information.Version
Return to top
© 2015 Microsoft