Synonym.Parent Property
Applies To: SQL Server 2016 Preview
Gets the Database object that is the parent of the Synonym object.
Namespace: Microsoft.SqlServer.Management.Smo
Assembly: Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)
Syntax
[SfcObjectAttribute(SfcObjectRelationship.ParentObject, SfcObjectFlags.Design)]
public Database Parent { get; set; }
public:
[SfcObjectAttribute(SfcObjectRelationship::ParentObject, SfcObjectFlags::Design)]
property Database^ Parent {
Database^ get();
void set(Database^ value);
}
[<SfcObjectAttribute(SfcObjectRelationship.ParentObject, SfcObjectFlags.Design)>]
member Parent : Database with get, set
<SfcObjectAttribute(SfcObjectRelationship.ParentObject, SfcObjectFlags.Design)>
Public Property Parent As Database
Property Value
Type: Microsoft.SqlServer.Management.Smo.Database
A Database object that is the parent of the Synonym object.
Examples
Legacy Code Example
See Also
Synonym Class
Microsoft.SqlServer.Management.Smo Namespace
CREATE SYNONYM (Transact-SQL)
Return to top