Server.ServerType Server.ServerType Server.ServerType Property

Definition

Gets the server type for the instance of SQL Server.

public:
 property Microsoft::SqlServer::Management::Common::DatabaseEngineType ServerType { Microsoft::SqlServer::Management::Common::DatabaseEngineType get(); };
[Microsoft.SqlServer.Management.Sdk.Sfc.Metadata.SfcProperty(Microsoft.SqlServer.Management.Sdk.Sfc.Metadata.SfcPropertyFlags.Standalone | Microsoft.SqlServer.Management.Sdk.Sfc.Metadata.SfcPropertyFlags.SqlAzureDatabase)]
public Microsoft.SqlServer.Management.Common.DatabaseEngineType ServerType { get; }
Public ReadOnly Property ServerType As DatabaseEngineType
Property Value
Microsoft.SqlServer.Management.Common.DatabaseEngineType Microsoft.SqlServer.Management.Common.DatabaseEngineType Microsoft.SqlServer.Management.Common.DatabaseEngineType

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

Examples

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  

Remarks

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

Applies to

See Also