TechNet
Export (0) Print
Expand All
Collapse the table of content
Expand the table of content
Expand Minimize

Server.ServerType Property

 

Gets the server type for the instance of SQL Server.

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

No code example is currently available or this language may not be supported.

Property Value

Type: Microsoft.SqlServer.Management.Common.DatabaseEngineType

A T:Microsoft.SqlServer.Management.Smo.ServerType object that specifies the server type for the instance of SQL Server.

The server type indicates whether the instance of SQL Server is a matrix or a singleton.

C#

Server srv = new Server("(local)");
Console.WriteLine("The server type is " + srv.ServerType.ToString());

PowerShell

$srv = new-Object Microsoft.SqlServer.Management.Smo.Server("(local)")
Write-Host "The server type is" $srv.ServerType
Return to top
Show:
© 2016 Microsoft