Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
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)

[SfcPropertyAttribute(SfcPropertyFlags::None | SfcPropertyFlags::Standalone | SfcPropertyFlags::SqlAzureDatabase | SfcPropertyFlags::Matrix)]
property DatabaseEngineType ServerType {
	DatabaseEngineType get();

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.


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


$srv = new-Object Microsoft.SqlServer.Management.Smo.Server("(local)")
Write-Host "The server type is" $srv.ServerType
Return to top
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
© 2015 Microsoft