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.Languages Property


Represents a collection of Language objects. Each Language object represents an languages supported by the instance of SQL Server.

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

	SfcContainerCardinality.ZeroToAny, typeof(Language))]
public LanguageCollection Languages { get; }

Property Value

Type: Microsoft.SqlServer.Management.Smo.LanguageCollection

A LanguageCollection object that represents all the languages supported by the instance of SQL Server.

The Languages property points to the LanguageCollection object. You can use the collection to reference the various written languages that are supported by SQL Server.

Visual Basic

'Connect to the local, default instance of SQL Server.
Dim srv As Server
srv = New Server
'Display the supported languages.
Dim lng As Language
For Each lng In srv.Languages


$srv = new-object Microsoft.SqlServer.Management.Smo.Server("(local)")
foreach ($lng in $srv.Languages)
   Write-Host $lng.Name
Return to top
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
© 2015 Microsoft