The objects in the API represent tables, columns, indexes, and synchronization publications. Each object has a GetSchema method that provides access to information about the structure of that object.
You cannot modify the schema through the API. You can only retrieve information about the schema.
You can access the following schema objects and information:
DatabaseSchema Exposes the number and names of the tables in the database, as well as global properties such as the format of dates and times.
To obtain a DatabaseSchema object, use Conn->GetSchema.
See GetSchema function.
TableSchema Exposes the number and names of the columns and indexes for this table.
To obtain a TableSchema object, use tbl->GetSchema.
See GetSchema function.
IndexSchema Returns information about the column in the index. As an index has no data directly associated with it there is no separate Index class, just the IndexSchema class.
To obtain a IndexSchema object, call the table_schema->GetIndexSchema or table_schema->GetPrimaryKey methods.
Send feedback about this page via email or DocCommentXchange | Copyright © 2008, iAnywhere Solutions, Inc. - SQL Anywhere 11.0.0 |