Xbasic

SQL::Connection::GenerateNativeTableName Function

Syntax

Table_Name as C = GenerateNativeTableName as C (TypeInfo as SQL::TableInfo)

Arguments

Table_Name

Formatted table name.

SQL::Connection

A SQL::Connection object.

TypeInfo

SQL::TableInfo

Description

Generate a formatted table name suitable for a SQL query in using the current syntax.

Discussion

The GenerateNativeTableName method generates a formatted table name suitable for a SQL query in using the current syntax.

Example

dim conn as SQL::Connection
dim ti as SQL::TableInfo
dim connString as C
dim select_exp as C
connString = "{A5API='Access', FileName='c:\program files\a5v8\mdbfiles\alphasports.mdb'}"
select_exp = "select Lastname from customer where bill_state_region = 'ma'"
if .not. conn.open(connString)
    ui_msg_box("Error", conn.CallResult.text)
    end
end if
if .not. conn.GetTableInfo(ti, "customer")
    ui_msg_box("Error", conn.CallResult.text)
    end
end if
ui_msg_box("Native Type String", conn.GenerateNativeTableName(ti))
conn.close()

See Also