Owner (Property)

Applies To:

DMCatalogItem object

Description:

Returns the value of the database owner name associated with a Table in the Table Catalog.

Action:

Read-only, String

Example:

This example shows how to write all the information about the tables in the Table Catalog to the Console window:

with (ActiveDocument.Sections["Query"].DataModel)
{
var NumTables = Catalog.CatalogItems.Count
	for (I = 1 ; I <= NumTables ;I++)
	{                     
OutputString = "Database Name =" + Catalog.CatalogItems[I].DatabaseName
OutputString = OutputString +":Database Owner=" + Catalog.CatalogItems[I].Owner
OutputString = OutputString +":Table Name=" + Catalog.CatalogItems[I].Name
Console.Writeln(OutputString)
	}
}