Xbasic
SQL::ResultSetToTableInfo Method
Syntax
Data as SQL::TableInfo = TableInfo ToTableInfo()
Returns
- DataSQL::TableInfo
Information about a result set
Description
Return the column definitions as a single SQL::TableInfo.
Discussion
The ToTableInfo() method copies the column definitions of the SQL::ResultSet into an unnamed SQL::TableInfo and returns it. This is used to manipulate properties of columns which are then used to create a local table using the DBFRowSyntax property.
Example
dim conn as SQL::Connection dim args as SQL::Arguments dim rs as SQL::ResultSet dim connString as C dim select_exp as C dim ti as SQL::TableInfo connString = "::Name::AADemo-Northwind" select_exp = "select * from customers where country = :country" args.set("country","Poland") if .not. conn.open(connString) ui_msg_box("Error", conn.CallResult.text) end end if if .not. conn.execute(select_exp,args) ui_msg_box("Error", conn.CallResult.text) conn.close() end end if rs = conn.ResultSet ti = rs.ToTableInfo() conn.close() showvar(ti.xml,"TableInfo XML")
The script above produces an XML file with properties similar to the following:
<SQLTableInfo Type="SQL::TableInfo"> <TableType>Invalid</TableType> <Catalog Type="C"></Catalog> <Schema Type="C"></Schema> <Owner Type="C"></Owner> <TableName Type="C"></TableName> <Name Type="C"></Name> <NativeAPI Type="C"></NativeAPI> <NativeSyntax Type="C"></NativeSyntax> <Comment Type="C"></Comment> <Alias Type="C"></Alias> <Updateable Type="L">1</Updateable> <CanUpdateInTransaction Type="L">1</CanUpdateInTransaction> <SizeToFit Type="L">0</SizeToFit> <SelectRowLimit Type="N">-1</SelectRowLimit> <SelectRowStartingOffset Type="N">0</SelectRowStartingOffset> <LastKnownRowCount Type="N">-1</LastKnownRowCount> <Column Type="SQL::DataTypeInfo"> <SQLDataTypeInfo Type="SQL::DataTypeInfo"> <Name Type="C">CustomerID</Name> <NativeAPI Type="C"></NativeAPI> <NativeSyntax Type="C"></NativeSyntax> <Comment Type="C"></Comment> <AlphaType Type="C">C</AlphaType> <NativeType Type="N">3</NativeType> <NativeTypeName Type="C">char(5)</NativeTypeName> <IntermediateType>NationalCharacter</IntermediateType> <DecimalDigits Type="N">0</DecimalDigits> <DisplayFormat Type="C"></DisplayFormat> <ExternalFileNameExpression Type="C"></ExternalFileNameExpression> <DataTransformExpression Type="C"></DataTransformExpression> <Length Type="N">5</Length> <Nullable Type="L">1</Nullable> <ZeroFill Type="L">0</ZeroFill> <AutoIncrement Type="L">0</AutoIncrement> <EmptyStringIsNull Type="L">0</EmptyStringIsNull> <Updateable Type="L">1</Updateable> <HTMLEscapeFormattedData Type="L">0</HTMLEscapeFormattedData> <Identity Type="L">0</Identity> <IdentitySeed Type="N">0</IdentitySeed> <IdentityIncrement Type="N">0</IdentityIncrement> <IdentityReplicate Type="L">1</IdentityReplicate> <IdentityMinimum Type="N">-1</IdentityMinimum> <IdentityMaximum Type="N">-1</IdentityMaximum> <IdentitySequenceName Type="C"></IdentitySequenceName> <NamedFormatExpressions Type="C"></NamedFormatExpressions> <DefaultValue Type="C"></DefaultValue> <DefaultValueName Type="C"></DefaultValueName> <OnUpdateValue Type="C"></OnUpdateValue> <SourceTableCatalog Type="C">main</SourceTableCatalog> <SourceTableSchema Type="C"></SourceTableSchema> <SourceTableOwner Type="C"></SourceTableOwner> <SourceTableName Type="C">Customers</SourceTableName> <SourceColumnName Type="C">CustomerID</SourceColumnName> <SourceTableAlias Type="C"></SourceTableAlias> <FixedLength Type="L">0</FixedLength> <ValidationText Type="C"></ValidationText> <NativeValidationRule Type="C"></NativeValidationRule> <NativeValidationRuleName Type="C"></NativeValidationRuleName> <NativeCharacterSetName Type="C"></NativeCharacterSetName> <AutoGenerate Type="L">0</AutoGenerate> <ISAMNotLastColumn Type="L">0</ISAMNotLastColumn> <OneBlobPerPage Type="L">0</OneBlobPerPage> <CompressedUnicode Type="L">0</CompressedUnicode> <HyperLink Type="L">0</HyperLink> <CanBeUsedInWhereClause Type="L">1</CanBeUsedInWhereClause> <SQLExpression Type="C"></SQLExpression> <SizeToFit Type="L">0</SizeToFit> <MaximumActualLength Type="N">-1</MaximumActualLength> <Computed Type="L">0</Computed> <RowUUID Type="L">0</RowUUID> </SQLDataTypeInfo> <SQLDataTypeInfo Type="SQL::DataTypeInfo"> <Name Type="C">CompanyName</Name> <NativeAPI Type="C"></NativeAPI> <NativeSyntax Type="C"></NativeSyntax> <Comment Type="C"></Comment> <AlphaType Type="C">C</AlphaType> <NativeType Type="N">3</NativeType> <NativeTypeName Type="C">varchar(40)</NativeTypeName> <IntermediateType>NationalVaryingCharacter</IntermediateType> <DecimalDigits Type="N">0</DecimalDigits> <DisplayFormat Type="C"></DisplayFormat> <ExternalFileNameExpression Type="C"></ExternalFileNameExpression> <DataTransformExpression Type="C"></DataTransformExpression> <Length Type="N">40</Length> <Nullable Type="L">1</Nullable> <ZeroFill Type="L">0</ZeroFill> <AutoIncrement Type="L">0</AutoIncrement> <EmptyStringIsNull Type="L">0</EmptyStringIsNull> <Updateable Type="L">1</Updateable> <HTMLEscapeFormattedData Type="L">0</HTMLEscapeFormattedData> <Identity Type="L">0</Identity> <IdentitySeed Type="N">0</IdentitySeed> <IdentityIncrement Type="N">0</IdentityIncrement> <IdentityReplicate Type="L">1</IdentityReplicate> <IdentityMinimum Type="N">-1</IdentityMinimum> <IdentityMaximum Type="N">-1</IdentityMaximum> <IdentitySequenceName Type="C"></IdentitySequenceName> <NamedFormatExpressions Type="C"></NamedFormatExpressions> <DefaultValue Type="C"></DefaultValue> <DefaultValueName Type="C"></DefaultValueName> <OnUpdateValue Type="C"></OnUpdateValue> <SourceTableCatalog Type="C">main</SourceTableCatalog> <SourceTableSchema Type="C"></SourceTableSchema> <SourceTableOwner Type="C"></SourceTableOwner> <SourceTableName Type="C">Customers</SourceTableName> <SourceColumnName Type="C">CompanyName</SourceColumnName> <SourceTableAlias Type="C"></SourceTableAlias> <FixedLength Type="L">0</FixedLength> <ValidationText Type="C"></ValidationText> <NativeValidationRule Type="C"></NativeValidationRule> <NativeValidationRuleName Type="C"></NativeValidationRuleName> <NativeCharacterSetName Type="C"></NativeCharacterSetName> <AutoGenerate Type="L">0</AutoGenerate> <ISAMNotLastColumn Type="L">0</ISAMNotLastColumn> <OneBlobPerPage Type="L">0</OneBlobPerPage> <CompressedUnicode Type="L">0</CompressedUnicode> <HyperLink Type="L">0</HyperLink> <CanBeUsedInWhereClause Type="L">1</CanBeUsedInWhereClause> <SQLExpression Type="C"></SQLExpression> <SizeToFit Type="L">0</SizeToFit> <MaximumActualLength Type="N">-1</MaximumActualLength> <Computed Type="L">0</Computed> <RowUUID Type="L">0</RowUUID> </SQLDataTypeInfo> <SQLDataTypeInfo Type="SQL::DataTypeInfo"> <Name Type="C">ContactName</Name> <NativeAPI Type="C"></NativeAPI> <NativeSyntax Type="C"></NativeSyntax> <Comment Type="C"></Comment> <AlphaType Type="C">C</AlphaType> <NativeType Type="N">3</NativeType> <NativeTypeName Type="C">varchar(30)</NativeTypeName> <IntermediateType>NationalVaryingCharacter</IntermediateType> <DecimalDigits Type="N">0</DecimalDigits> <DisplayFormat Type="C"></DisplayFormat> <ExternalFileNameExpression Type="C"></ExternalFileNameExpression> <DataTransformExpression Type="C"></DataTransformExpression> <Length Type="N">30</Length> <Nullable Type="L">1</Nullable> <ZeroFill Type="L">0</ZeroFill> <AutoIncrement Type="L">0</AutoIncrement> <EmptyStringIsNull Type="L">0</EmptyStringIsNull> <Updateable Type="L">1</Updateable> <HTMLEscapeFormattedData Type="L">0</HTMLEscapeFormattedData> <Identity Type="L">0</Identity> <IdentitySeed Type="N">0</IdentitySeed> <IdentityIncrement Type="N">0</IdentityIncrement> <IdentityReplicate Type="L">1</IdentityReplicate> <IdentityMinimum Type="N">-1</IdentityMinimum> <IdentityMaximum Type="N">-1</IdentityMaximum> <IdentitySequenceName Type="C"></IdentitySequenceName> <NamedFormatExpressions Type="C"></NamedFormatExpressions> <DefaultValue Type="C"></DefaultValue> <DefaultValueName Type="C"></DefaultValueName> <OnUpdateValue Type="C"></OnUpdateValue> <SourceTableCatalog Type="C">main</SourceTableCatalog> <SourceTableSchema Type="C"></SourceTableSchema> <SourceTableOwner Type="C"></SourceTableOwner> <SourceTableName Type="C">Customers</SourceTableName> <SourceColumnName Type="C">ContactName</SourceColumnName> <SourceTableAlias Type="C"></SourceTableAlias> <FixedLength Type="L">0</FixedLength> <ValidationText Type="C"></ValidationText> <NativeValidationRule Type="C"></NativeValidationRule> <NativeValidationRuleName Type="C"></NativeValidationRuleName> <NativeCharacterSetName Type="C"></NativeCharacterSetName> <AutoGenerate Type="L">0</AutoGenerate> <ISAMNotLastColumn Type="L">0</ISAMNotLastColumn> <OneBlobPerPage Type="L">0</OneBlobPerPage> <CompressedUnicode Type="L">0</CompressedUnicode> <HyperLink Type="L">0</HyperLink> <CanBeUsedInWhereClause Type="L">1</CanBeUsedInWhereClause> <SQLExpression Type="C"></SQLExpression> <SizeToFit Type="L">0</SizeToFit> <MaximumActualLength Type="N">-1</MaximumActualLength> <Computed Type="L">0</Computed> <RowUUID Type="L">0</RowUUID> </SQLDataTypeInfo> <SQLDataTypeInfo Type="SQL::DataTypeInfo"> <Name Type="C">ContactTitle</Name> <NativeAPI Type="C"></NativeAPI> <NativeSyntax Type="C"></NativeSyntax> <Comment Type="C"></Comment> <AlphaType Type="C">C</AlphaType> <NativeType Type="N">3</NativeType> <NativeTypeName Type="C">varchar(30)</NativeTypeName> <IntermediateType>NationalVaryingCharacter</IntermediateType> <DecimalDigits Type="N">0</DecimalDigits> <DisplayFormat Type="C"></DisplayFormat> <ExternalFileNameExpression Type="C"></ExternalFileNameExpression> <DataTransformExpression Type="C"></DataTransformExpression> <Length Type="N">30</Length> <Nullable Type="L">1</Nullable> <ZeroFill Type="L">0</ZeroFill> <AutoIncrement Type="L">0</AutoIncrement> <EmptyStringIsNull Type="L">0</EmptyStringIsNull> <Updateable Type="L">1</Updateable> <HTMLEscapeFormattedData Type="L">0</HTMLEscapeFormattedData> <Identity Type="L">0</Identity> <IdentitySeed Type="N">0</IdentitySeed> <IdentityIncrement Type="N">0</IdentityIncrement> <IdentityReplicate Type="L">1</IdentityReplicate> <IdentityMinimum Type="N">-1</IdentityMinimum> <IdentityMaximum Type="N">-1</IdentityMaximum> <IdentitySequenceName Type="C"></IdentitySequenceName> <NamedFormatExpressions Type="C"></NamedFormatExpressions> <DefaultValue Type="C"></DefaultValue> <DefaultValueName Type="C"></DefaultValueName> <OnUpdateValue Type="C"></OnUpdateValue> <SourceTableCatalog Type="C">main</SourceTableCatalog> <SourceTableSchema Type="C"></SourceTableSchema> <SourceTableOwner Type="C"></SourceTableOwner> <SourceTableName Type="C">Customers</SourceTableName> <SourceColumnName Type="C">ContactTitle</SourceColumnName> <SourceTableAlias Type="C"></SourceTableAlias> <FixedLength Type="L">0</FixedLength> <ValidationText Type="C"></ValidationText> <NativeValidationRule Type="C"></NativeValidationRule> <NativeValidationRuleName Type="C"></NativeValidationRuleName> <NativeCharacterSetName Type="C"></NativeCharacterSetName> <AutoGenerate Type="L">0</AutoGenerate> <ISAMNotLastColumn Type="L">0</ISAMNotLastColumn> <OneBlobPerPage Type="L">0</OneBlobPerPage> <CompressedUnicode Type="L">0</CompressedUnicode> <HyperLink Type="L">0</HyperLink> <CanBeUsedInWhereClause Type="L">1</CanBeUsedInWhereClause> <SQLExpression Type="C"></SQLExpression> <SizeToFit Type="L">0</SizeToFit> <MaximumActualLength Type="N">-1</MaximumActualLength> <Computed Type="L">0</Computed> <RowUUID Type="L">0</RowUUID> </SQLDataTypeInfo> <SQLDataTypeInfo Type="SQL::DataTypeInfo"> <Name Type="C">Address</Name> <NativeAPI Type="C"></NativeAPI> <NativeSyntax Type="C"></NativeSyntax> <Comment Type="C"></Comment> <AlphaType Type="C">C</AlphaType> <NativeType Type="N">3</NativeType> <NativeTypeName Type="C">varchar(60)</NativeTypeName> <IntermediateType>NationalVaryingCharacter</IntermediateType> <DecimalDigits Type="N">0</DecimalDigits> <DisplayFormat Type="C"></DisplayFormat> <ExternalFileNameExpression Type="C"></ExternalFileNameExpression> <DataTransformExpression Type="C"></DataTransformExpression> <Length Type="N">60</Length> <Nullable Type="L">1</Nullable> <ZeroFill Type="L">0</ZeroFill> <AutoIncrement Type="L">0</AutoIncrement> <EmptyStringIsNull Type="L">0</EmptyStringIsNull> <Updateable Type="L">1</Updateable> <HTMLEscapeFormattedData Type="L">0</HTMLEscapeFormattedData> <Identity Type="L">0</Identity> <IdentitySeed Type="N">0</IdentitySeed> <IdentityIncrement Type="N">0</IdentityIncrement> <IdentityReplicate Type="L">1</IdentityReplicate> <IdentityMinimum Type="N">-1</IdentityMinimum> <IdentityMaximum Type="N">-1</IdentityMaximum> <IdentitySequenceName Type="C"></IdentitySequenceName> <NamedFormatExpressions Type="C"></NamedFormatExpressions> <DefaultValue Type="C"></DefaultValue> <DefaultValueName Type="C"></DefaultValueName> <OnUpdateValue Type="C"></OnUpdateValue> <SourceTableCatalog Type="C">main</SourceTableCatalog> <SourceTableSchema Type="C"></SourceTableSchema> <SourceTableOwner Type="C"></SourceTableOwner> <SourceTableName Type="C">Customers</SourceTableName> <SourceColumnName Type="C">Address</SourceColumnName> <SourceTableAlias Type="C"></SourceTableAlias> <FixedLength Type="L">0</FixedLength> <ValidationText Type="C"></ValidationText> <NativeValidationRule Type="C"></NativeValidationRule> <NativeValidationRuleName Type="C"></NativeValidationRuleName> <NativeCharacterSetName Type="C"></NativeCharacterSetName> <AutoGenerate Type="L">0</AutoGenerate> <ISAMNotLastColumn Type="L">0</ISAMNotLastColumn> <OneBlobPerPage Type="L">0</OneBlobPerPage> <CompressedUnicode Type="L">0</CompressedUnicode> <HyperLink Type="L">0</HyperLink> <CanBeUsedInWhereClause Type="L">1</CanBeUsedInWhereClause> <SQLExpression Type="C"></SQLExpression> <SizeToFit Type="L">0</SizeToFit> <MaximumActualLength Type="N">-1</MaximumActualLength> <Computed Type="L">0</Computed> <RowUUID Type="L">0</RowUUID> </SQLDataTypeInfo> <SQLDataTypeInfo Type="SQL::DataTypeInfo"> <Name Type="C">City</Name> <NativeAPI Type="C"></NativeAPI> <NativeSyntax Type="C"></NativeSyntax> <Comment Type="C"></Comment> <AlphaType Type="C">C</AlphaType> <NativeType Type="N">3</NativeType> <NativeTypeName Type="C">varchar(15)</NativeTypeName> <IntermediateType>NationalVaryingCharacter</IntermediateType> <DecimalDigits Type="N">0</DecimalDigits> <DisplayFormat Type="C"></DisplayFormat> <ExternalFileNameExpression Type="C"></ExternalFileNameExpression> <DataTransformExpression Type="C"></DataTransformExpression> <Length Type="N">15</Length> <Nullable Type="L">1</Nullable> <ZeroFill Type="L">0</ZeroFill> <AutoIncrement Type="L">0</AutoIncrement> <EmptyStringIsNull Type="L">0</EmptyStringIsNull> <Updateable Type="L">1</Updateable> <HTMLEscapeFormattedData Type="L">0</HTMLEscapeFormattedData> <Identity Type="L">0</Identity> <IdentitySeed Type="N">0</IdentitySeed> <IdentityIncrement Type="N">0</IdentityIncrement> <IdentityReplicate Type="L">1</IdentityReplicate> <IdentityMinimum Type="N">-1</IdentityMinimum> <IdentityMaximum Type="N">-1</IdentityMaximum> <IdentitySequenceName Type="C"></IdentitySequenceName> <NamedFormatExpressions Type="C"></NamedFormatExpressions> <DefaultValue Type="C"></DefaultValue> <DefaultValueName Type="C"></DefaultValueName> <OnUpdateValue Type="C"></OnUpdateValue> <SourceTableCatalog Type="C">main</SourceTableCatalog> <SourceTableSchema Type="C"></SourceTableSchema> <SourceTableOwner Type="C"></SourceTableOwner> <SourceTableName Type="C">Customers</SourceTableName> <SourceColumnName Type="C">City</SourceColumnName> <SourceTableAlias Type="C"></SourceTableAlias> <FixedLength Type="L">0</FixedLength> <ValidationText Type="C"></ValidationText> <NativeValidationRule Type="C"></NativeValidationRule> <NativeValidationRuleName Type="C"></NativeValidationRuleName> <NativeCharacterSetName Type="C"></NativeCharacterSetName> <AutoGenerate Type="L">0</AutoGenerate> <ISAMNotLastColumn Type="L">0</ISAMNotLastColumn> <OneBlobPerPage Type="L">0</OneBlobPerPage> <CompressedUnicode Type="L">0</CompressedUnicode> <HyperLink Type="L">0</HyperLink> <CanBeUsedInWhereClause Type="L">1</CanBeUsedInWhereClause> <SQLExpression Type="C"></SQLExpression> <SizeToFit Type="L">0</SizeToFit> <MaximumActualLength Type="N">-1</MaximumActualLength> <Computed Type="L">0</Computed> <RowUUID Type="L">0</RowUUID> </SQLDataTypeInfo> <SQLDataTypeInfo Type="SQL::DataTypeInfo"> <Name Type="C">Region</Name> <NativeAPI Type="C"></NativeAPI> <NativeSyntax Type="C"></NativeSyntax> <Comment Type="C"></Comment> <AlphaType Type="C">C</AlphaType> <NativeType Type="N">5</NativeType> <NativeTypeName Type="C">varchar(15)</NativeTypeName> <IntermediateType>NationalVaryingCharacter</IntermediateType> <DecimalDigits Type="N">0</DecimalDigits> <DisplayFormat Type="C"></DisplayFormat> <ExternalFileNameExpression Type="C"></ExternalFileNameExpression> <DataTransformExpression Type="C"></DataTransformExpression> <Length Type="N">15</Length> <Nullable Type="L">1</Nullable> <ZeroFill Type="L">0</ZeroFill> <AutoIncrement Type="L">0</AutoIncrement> <EmptyStringIsNull Type="L">0</EmptyStringIsNull> <Updateable Type="L">1</Updateable> <HTMLEscapeFormattedData Type="L">0</HTMLEscapeFormattedData> <Identity Type="L">0</Identity> <IdentitySeed Type="N">0</IdentitySeed> <IdentityIncrement Type="N">0</IdentityIncrement> <IdentityReplicate Type="L">1</IdentityReplicate> <IdentityMinimum Type="N">-1</IdentityMinimum> <IdentityMaximum Type="N">-1</IdentityMaximum> <IdentitySequenceName Type="C"></IdentitySequenceName> <NamedFormatExpressions Type="C"></NamedFormatExpressions> <DefaultValue Type="C"></DefaultValue> <DefaultValueName Type="C"></DefaultValueName> <OnUpdateValue Type="C"></OnUpdateValue> <SourceTableCatalog Type="C">main</SourceTableCatalog> <SourceTableSchema Type="C"></SourceTableSchema> <SourceTableOwner Type="C"></SourceTableOwner> <SourceTableName Type="C">Customers</SourceTableName> <SourceColumnName Type="C">Region</SourceColumnName> <SourceTableAlias Type="C"></SourceTableAlias> <FixedLength Type="L">0</FixedLength> <ValidationText Type="C"></ValidationText> <NativeValidationRule Type="C"></NativeValidationRule> <NativeValidationRuleName Type="C"></NativeValidationRuleName> <NativeCharacterSetName Type="C"></NativeCharacterSetName> <AutoGenerate Type="L">0</AutoGenerate> <ISAMNotLastColumn Type="L">0</ISAMNotLastColumn> <OneBlobPerPage Type="L">0</OneBlobPerPage> <CompressedUnicode Type="L">0</CompressedUnicode> <HyperLink Type="L">0</HyperLink> <CanBeUsedInWhereClause Type="L">1</CanBeUsedInWhereClause> <SQLExpression Type="C"></SQLExpression> <SizeToFit Type="L">0</SizeToFit> <MaximumActualLength Type="N">-1</MaximumActualLength> <Computed Type="L">0</Computed> <RowUUID Type="L">0</RowUUID> </SQLDataTypeInfo> <SQLDataTypeInfo Type="SQL::DataTypeInfo"> <Name Type="C">PostalCode</Name> <NativeAPI Type="C"></NativeAPI> <NativeSyntax Type="C"></NativeSyntax> <Comment Type="C"></Comment> <AlphaType Type="C">C</AlphaType> <NativeType Type="N">3</NativeType> <NativeTypeName Type="C">varchar(10)</NativeTypeName> <IntermediateType>NationalVaryingCharacter</IntermediateType> <DecimalDigits Type="N">0</DecimalDigits> <DisplayFormat Type="C"></DisplayFormat> <ExternalFileNameExpression Type="C"></ExternalFileNameExpression> <DataTransformExpression Type="C"></DataTransformExpression> <Length Type="N">10</Length> <Nullable Type="L">1</Nullable> <ZeroFill Type="L">0</ZeroFill> <AutoIncrement Type="L">0</AutoIncrement> <EmptyStringIsNull Type="L">0</EmptyStringIsNull> <Updateable Type="L">1</Updateable> <HTMLEscapeFormattedData Type="L">0</HTMLEscapeFormattedData> <Identity Type="L">0</Identity> <IdentitySeed Type="N">0</IdentitySeed> <IdentityIncrement Type="N">0</IdentityIncrement> <IdentityReplicate Type="L">1</IdentityReplicate> <IdentityMinimum Type="N">-1</IdentityMinimum> <IdentityMaximum Type="N">-1</IdentityMaximum> <IdentitySequenceName Type="C"></IdentitySequenceName> <NamedFormatExpressions Type="C"></NamedFormatExpressions> <DefaultValue Type="C"></DefaultValue> <DefaultValueName Type="C"></DefaultValueName> <OnUpdateValue Type="C"></OnUpdateValue> <SourceTableCatalog Type="C">main</SourceTableCatalog> <SourceTableSchema Type="C"></SourceTableSchema> <SourceTableOwner Type="C"></SourceTableOwner> <SourceTableName Type="C">Customers</SourceTableName> <SourceColumnName Type="C">PostalCode</SourceColumnName> <SourceTableAlias Type="C"></SourceTableAlias> <FixedLength Type="L">0</FixedLength> <ValidationText Type="C"></ValidationText> <NativeValidationRule Type="C"></NativeValidationRule> <NativeValidationRuleName Type="C"></NativeValidationRuleName> <NativeCharacterSetName Type="C"></NativeCharacterSetName> <AutoGenerate Type="L">0</AutoGenerate> <ISAMNotLastColumn Type="L">0</ISAMNotLastColumn> <OneBlobPerPage Type="L">0</OneBlobPerPage> <CompressedUnicode Type="L">0</CompressedUnicode> <HyperLink Type="L">0</HyperLink> <CanBeUsedInWhereClause Type="L">1</CanBeUsedInWhereClause> <SQLExpression Type="C"></SQLExpression> <SizeToFit Type="L">0</SizeToFit> <MaximumActualLength Type="N">-1</MaximumActualLength> <Computed Type="L">0</Computed> <RowUUID Type="L">0</RowUUID> </SQLDataTypeInfo> <SQLDataTypeInfo Type="SQL::DataTypeInfo"> <Name Type="C">Country</Name> <NativeAPI Type="C"></NativeAPI> <NativeSyntax Type="C"></NativeSyntax> <Comment Type="C"></Comment> <AlphaType Type="C">C</AlphaType> <NativeType Type="N">3</NativeType> <NativeTypeName Type="C">varchar(15)</NativeTypeName> <IntermediateType>NationalVaryingCharacter</IntermediateType> <DecimalDigits Type="N">0</DecimalDigits> <DisplayFormat Type="C"></DisplayFormat> <ExternalFileNameExpression Type="C"></ExternalFileNameExpression> <DataTransformExpression Type="C"></DataTransformExpression> <Length Type="N">15</Length> <Nullable Type="L">1</Nullable> <ZeroFill Type="L">0</ZeroFill> <AutoIncrement Type="L">0</AutoIncrement> <EmptyStringIsNull Type="L">0</EmptyStringIsNull> <Updateable Type="L">1</Updateable> <HTMLEscapeFormattedData Type="L">0</HTMLEscapeFormattedData> <Identity Type="L">0</Identity> <IdentitySeed Type="N">0</IdentitySeed> <IdentityIncrement Type="N">0</IdentityIncrement> <IdentityReplicate Type="L">1</IdentityReplicate> <IdentityMinimum Type="N">-1</IdentityMinimum> <IdentityMaximum Type="N">-1</IdentityMaximum> <IdentitySequenceName Type="C"></IdentitySequenceName> <NamedFormatExpressions Type="C"></NamedFormatExpressions> <DefaultValue Type="C"></DefaultValue> <DefaultValueName Type="C"></DefaultValueName> <OnUpdateValue Type="C"></OnUpdateValue> <SourceTableCatalog Type="C">main</SourceTableCatalog> <SourceTableSchema Type="C"></SourceTableSchema> <SourceTableOwner Type="C"></SourceTableOwner> <SourceTableName Type="C">Customers</SourceTableName> <SourceColumnName Type="C">Country</SourceColumnName> <SourceTableAlias Type="C"></SourceTableAlias> <FixedLength Type="L">0</FixedLength> <ValidationText Type="C"></ValidationText> <NativeValidationRule Type="C"></NativeValidationRule> <NativeValidationRuleName Type="C"></NativeValidationRuleName> <NativeCharacterSetName Type="C"></NativeCharacterSetName> <AutoGenerate Type="L">0</AutoGenerate> <ISAMNotLastColumn Type="L">0</ISAMNotLastColumn> <OneBlobPerPage Type="L">0</OneBlobPerPage> <CompressedUnicode Type="L">0</CompressedUnicode> <HyperLink Type="L">0</HyperLink> <CanBeUsedInWhereClause Type="L">1</CanBeUsedInWhereClause> <SQLExpression Type="C"></SQLExpression> <SizeToFit Type="L">0</SizeToFit> <MaximumActualLength Type="N">-1</MaximumActualLength> <Computed Type="L">0</Computed> <RowUUID Type="L">0</RowUUID> </SQLDataTypeInfo> <SQLDataTypeInfo Type="SQL::DataTypeInfo"> <Name Type="C">Phone</Name> <NativeAPI Type="C"></NativeAPI> <NativeSyntax Type="C"></NativeSyntax> <Comment Type="C"></Comment> <AlphaType Type="C">C</AlphaType> <NativeType Type="N">3</NativeType> <NativeTypeName Type="C">varchar(24)</NativeTypeName> <IntermediateType>NationalVaryingCharacter</IntermediateType> <DecimalDigits Type="N">0</DecimalDigits> <DisplayFormat Type="C"></DisplayFormat> <ExternalFileNameExpression Type="C"></ExternalFileNameExpression> <DataTransformExpression Type="C"></DataTransformExpression> <Length Type="N">24</Length> <Nullable Type="L">1</Nullable> <ZeroFill Type="L">0</ZeroFill> <AutoIncrement Type="L">0</AutoIncrement> <EmptyStringIsNull Type="L">0</EmptyStringIsNull> <Updateable Type="L">1</Updateable> <HTMLEscapeFormattedData Type="L">0</HTMLEscapeFormattedData> <Identity Type="L">0</Identity> <IdentitySeed Type="N">0</IdentitySeed> <IdentityIncrement Type="N">0</IdentityIncrement> <IdentityReplicate Type="L">1</IdentityReplicate> <IdentityMinimum Type="N">-1</IdentityMinimum> <IdentityMaximum Type="N">-1</IdentityMaximum> <IdentitySequenceName Type="C"></IdentitySequenceName> <NamedFormatExpressions Type="C"></NamedFormatExpressions> <DefaultValue Type="C"></DefaultValue> <DefaultValueName Type="C"></DefaultValueName> <OnUpdateValue Type="C"></OnUpdateValue> <SourceTableCatalog Type="C">main</SourceTableCatalog> <SourceTableSchema Type="C"></SourceTableSchema> <SourceTableOwner Type="C"></SourceTableOwner> <SourceTableName Type="C">Customers</SourceTableName> <SourceColumnName Type="C">Phone</SourceColumnName> <SourceTableAlias Type="C"></SourceTableAlias> <FixedLength Type="L">0</FixedLength> <ValidationText Type="C"></ValidationText> <NativeValidationRule Type="C"></NativeValidationRule> <NativeValidationRuleName Type="C"></NativeValidationRuleName> <NativeCharacterSetName Type="C"></NativeCharacterSetName> <AutoGenerate Type="L">0</AutoGenerate> <ISAMNotLastColumn Type="L">0</ISAMNotLastColumn> <OneBlobPerPage Type="L">0</OneBlobPerPage> <CompressedUnicode Type="L">0</CompressedUnicode> <HyperLink Type="L">0</HyperLink> <CanBeUsedInWhereClause Type="L">1</CanBeUsedInWhereClause> <SQLExpression Type="C"></SQLExpression> <SizeToFit Type="L">0</SizeToFit> <MaximumActualLength Type="N">-1</MaximumActualLength> <Computed Type="L">0</Computed> <RowUUID Type="L">0</RowUUID> </SQLDataTypeInfo> <SQLDataTypeInfo Type="SQL::DataTypeInfo"> <Name Type="C">Fax</Name> <NativeAPI Type="C"></NativeAPI> <NativeSyntax Type="C"></NativeSyntax> <Comment Type="C"></Comment> <AlphaType Type="C">C</AlphaType> <NativeType Type="N">3</NativeType> <NativeTypeName Type="C">varchar(24)</NativeTypeName> <IntermediateType>NationalVaryingCharacter</IntermediateType> <DecimalDigits Type="N">0</DecimalDigits> <DisplayFormat Type="C"></DisplayFormat> <ExternalFileNameExpression Type="C"></ExternalFileNameExpression> <DataTransformExpression Type="C"></DataTransformExpression> <Length Type="N">24</Length> <Nullable Type="L">1</Nullable> <ZeroFill Type="L">0</ZeroFill> <AutoIncrement Type="L">0</AutoIncrement> <EmptyStringIsNull Type="L">0</EmptyStringIsNull> <Updateable Type="L">1</Updateable> <HTMLEscapeFormattedData Type="L">0</HTMLEscapeFormattedData> <Identity Type="L">0</Identity> <IdentitySeed Type="N">0</IdentitySeed> <IdentityIncrement Type="N">0</IdentityIncrement> <IdentityReplicate Type="L">1</IdentityReplicate> <IdentityMinimum Type="N">-1</IdentityMinimum> <IdentityMaximum Type="N">-1</IdentityMaximum> <IdentitySequenceName Type="C"></IdentitySequenceName> <NamedFormatExpressions Type="C"></NamedFormatExpressions> <DefaultValue Type="C"></DefaultValue> <DefaultValueName Type="C"></DefaultValueName> <OnUpdateValue Type="C"></OnUpdateValue> <SourceTableCatalog Type="C">main</SourceTableCatalog> <SourceTableSchema Type="C"></SourceTableSchema> <SourceTableOwner Type="C"></SourceTableOwner> <SourceTableName Type="C">Customers</SourceTableName> <SourceColumnName Type="C">Fax</SourceColumnName> <SourceTableAlias Type="C"></SourceTableAlias> <FixedLength Type="L">0</FixedLength> <ValidationText Type="C"></ValidationText> <NativeValidationRule Type="C"></NativeValidationRule> <NativeValidationRuleName Type="C"></NativeValidationRuleName> <NativeCharacterSetName Type="C"></NativeCharacterSetName> <AutoGenerate Type="L">0</AutoGenerate> <ISAMNotLastColumn Type="L">0</ISAMNotLastColumn> <OneBlobPerPage Type="L">0</OneBlobPerPage> <CompressedUnicode Type="L">0</CompressedUnicode> <HyperLink Type="L">0</HyperLink> <CanBeUsedInWhereClause Type="L">1</CanBeUsedInWhereClause> <SQLExpression Type="C"></SQLExpression> <SizeToFit Type="L">0</SizeToFit> <MaximumActualLength Type="N">-1</MaximumActualLength> <Computed Type="L">0</Computed> <RowUUID Type="L">0</RowUUID> </SQLDataTypeInfo> </Column> <Index Type="SQL::IndexInfo"> </Index> </SQLTableInfo>