Any suggestions? Export (0) Print
Expand All

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

Powershell

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