Was this page helpful?
Additional feedback?
1500 characters remaining
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)

Public Sub New

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
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
© 2015 Microsoft