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
Expand Minimize

SqlSmoObject.GetServerName Method

Gets the name of the instance of SQL Server with which the object is associated.

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

protected virtual string GetServerName()

Return Value

Type: System.String
A String value that specifies the name of the instance of SQL Server.

Community Additions

© 2015 Microsoft