Property | S/T | Description |
---|---|---|
Encoding | ST | Sets the character encoding for XML source and target files. For encoding choices, see Unicode 4.0 Character Encodings. |
WhereStmt | S | Provides a pass-through mechanism for SQL connectors where advanced users can construct the Where clause of the SQL query. It can be used as an alternative to writing a lengthy query statement in the Query Statement text box. This may be used to get the SQL database server to filter the data based on a condition before it is sent to Map Designer. Exclude "WHERE" when you enter the clause. There is no default value for this property. Do not apply the WhereStmt when the source connection is a Select statement. If you are using a Select statement, you should include the Where clause in that statement. The intent of this property is to enable data filtering when selecting a table. |
SystemTables | ST | The SystemTables property is only applicable if the user is logged into the database as the Database Administrator (DBA). Only the DBA has access to SystemTables. If set to true, this property allows you to view all the tables created by the DBA. The system table names appear in the table list. The default value is false. |
Views | ST | If set to true, this property allows you to see views. The view names appear in the table list along with the tables. The default value is true. |
Synonyms | ST | If set to true, this property allows you to see synonyms. The alias names appear in the table list along with the tables. The default value is false. |
CommitFrequency | T | This allows you to control how often the data is committed to the database. By default, this value is zero. This means that data is committed at the end of the transformation, allowing rollback on error. This is the slowest setting. If you are performing large transformations, this is not practical, since it may fill up the transaction logs. If the CommitFrequency is set to a non-zero value, the connector does a database commit after the specified number of records have been inserted or updated in the table. This ensures the transaction log is not full but limits the restartability of the transformation. |
ConstraintDDL | T | Allows you to specify additional SQL data definition language statements to be executed after their target table is created. This is similar to the support provided for SQL pass-through in the SQL import connectors. Each line must be a valid ODBC DDL statement. There is no default value for this property. For example, you can have the statements: CREATE UNIQUE INDEX index1 ON mytable (Field1 ASC) CREATE INDEX index2 ON mytable (Field2, Field3) These statements creates two indices on the table "mytable". The first statement does not allow duplicates and the index values are stored in ascending order. The second index is a compound index on fields Field2 and Field3. The ConstraintDDL is executed only if the replace mode is used for the target. If there are any errors, the errors are written to the error and event log file. During the transformation, the transformation error dialog box appears. If you want to ignore the DDL errors, you may continue the transformation. ConstraintDDL also supports an escaping mechanism that allows users to specify DDL in the native SQL of the DBMS. Any statement that is preceded by an "@" is sent directly to the DBMS. The following statement is an Access DDL statement for creating a primary key for the table mytable: @CREATE INDEX pk_mytable ON mytable (Field1, Field2) WITH PRIMARY The Access ODBC driver does not support the extensions to SQL required to create a primary key with the ODBC variant of the SQL CREATE statement. The only way you can create the primary key for an Access table is with the native SQL. This option works only in REPLACE mode. |