8
Appx & RDBMS (ODBC) Appx & RDBMS (ODBC)

Appx & RDBMS (ODBC). The ODBC connection is included in the base Appx licence. Allows data to be stored/retrieved from SQL Server, MySQL, Postgres,

Embed Size (px)

DESCRIPTION

Appx & RDBMS (ODBC)  The process to move data into an ODBC compliant RDBMS is straightforward.  Define a ODBC connection using Windows ODBC Administrator, or unixODBC if Linux/Unix.  Create an Appx FMS group that points to this ODBC Connection.  Export your data.

Citation preview

Page 1: Appx & RDBMS (ODBC).  The ODBC connection is included in the base Appx licence.  Allows data to be stored/retrieved from SQL Server, MySQL, Postgres,

Appx & RDBMS (ODBC)Appx & RDBMS (ODBC)

Page 2: Appx & RDBMS (ODBC).  The ODBC connection is included in the base Appx licence.  Allows data to be stored/retrieved from SQL Server, MySQL, Postgres,

Appx & RDBMS (ODBC)Appx & RDBMS (ODBC) The ODBC connection is included in the The ODBC connection is included in the

base Appx licence.base Appx licence. Allows data to be stored/retrieved from Allows data to be stored/retrieved from

SQL Server, MySQL, Postgres, Access, SQL Server, MySQL, Postgres, Access, others (SQL Server 2005 requires 4.3). others (SQL Server 2005 requires 4.3).

Easy way to share data with other Easy way to share data with other applications, i.e., export data to shipping applications, i.e., export data to shipping or web servers or import from other or web servers or import from other applications.applications.

Page 3: Appx & RDBMS (ODBC).  The ODBC connection is included in the base Appx licence.  Allows data to be stored/retrieved from SQL Server, MySQL, Postgres,

Appx & RDBMS (ODBC)Appx & RDBMS (ODBC)

The process to move data into an ODBC The process to move data into an ODBC compliant RDBMS is straightforward.compliant RDBMS is straightforward.

Define a ODBC connection using Define a ODBC connection using Windows ODBC Administrator, or Windows ODBC Administrator, or unixODBC if Linux/Unix.unixODBC if Linux/Unix.

Create an Appx FMS group that points to Create an Appx FMS group that points to this ODBC Connection.this ODBC Connection.

Export your data.Export your data.

Page 4: Appx & RDBMS (ODBC).  The ODBC connection is included in the base Appx licence.  Allows data to be stored/retrieved from SQL Server, MySQL, Postgres,

Appx & RDBMS (ODBC)Appx & RDBMS (ODBC)

Change your files to use the new FMS Change your files to use the new FMS group.group.

Create files in the RDBMS.Create files in the RDBMS. Import your data. Extra steps required if Import your data. Extra steps required if

data in a non-standard location.data in a non-standard location. Enjoy!Enjoy!

Page 5: Appx & RDBMS (ODBC).  The ODBC connection is included in the base Appx licence.  Allows data to be stored/retrieved from SQL Server, MySQL, Postgres,

Appx & RDBMS (ODBC)Appx & RDBMS (ODBC)

Performance can be an issue once data is Performance can be an issue once data is in a RDBMS.in a RDBMS.

Hard to give general suggestions that Hard to give general suggestions that always work, as each RDBMS has it’s own always work, as each RDBMS has it’s own strengths/weaknesses. strengths/weaknesses.

For example, Oracle is more sensitive to For example, Oracle is more sensitive to commits than others.commits than others.

Page 6: Appx & RDBMS (ODBC).  The ODBC connection is included in the base Appx licence.  Allows data to be stored/retrieved from SQL Server, MySQL, Postgres,

Appx & RDBMS (ODBC)Appx & RDBMS (ODBC)

In order of most likely to help to least In order of most likely to help to least likely, techniques are: likely, techniques are: Put Appx & RDBMS on same serverPut Appx & RDBMS on same server Cache filesCache files Control commits (use Control commits (use

APPX_IMPORT_COMMIT=x for imports)APPX_IMPORT_COMMIT=x for imports) Partial Record ReadsPartial Record Reads

Demonstrate!Demonstrate!

Page 7: Appx & RDBMS (ODBC).  The ODBC connection is included in the base Appx licence.  Allows data to be stored/retrieved from SQL Server, MySQL, Postgres,

Appx & RDBMS (ODBC)Appx & RDBMS (ODBC) Transaction ControlTransaction Control Only useful where all files are in RDBMSOnly useful where all files are in RDBMS COMMIT at start of JOB, Manual in AACOMMIT at start of JOB, Manual in AA COMMIT at end of each ‘transaction’COMMIT at end of each ‘transaction’ ROLLBACK at EOP and/or Post InvocationROLLBACK at EOP and/or Post Invocation If connection closed w/o commit, RDBMS If connection closed w/o commit, RDBMS

*may* automatically rollback, check *may* automatically rollback, check RDBMSRDBMS

Page 8: Appx & RDBMS (ODBC).  The ODBC connection is included in the base Appx licence.  Allows data to be stored/retrieved from SQL Server, MySQL, Postgres,

Appx & RDBMS (ODBC)Appx & RDBMS (ODBC)

DebuggingDebugging Set APPX_SQL_LOG=<filename>Set APPX_SQL_LOG=<filename> Set APPX_DBG_CODE=0xFFFFFFFFSet APPX_DBG_CODE=0xFFFFFFFF This logs all RDBMS access in the file, which This logs all RDBMS access in the file, which

can be reviewed to spot problems.can be reviewed to spot problems.

Demonstrate!Demonstrate!