AX1770
Importing from an external database
You can import data into Axiom Software from an external database, such as a SQL Server or Oracle database.
When importing from an external database, you must provide the appropriate information to allow Axiom Software to connect to the database, such as the server and/or database name, and the login credentials. You must also create a SQL statement to query the necessary data that you want to import into Axiom Software.
NOTE: The Connection information is only used to connect to the source and extract the data into the import temp table. If the connection information includes a password, the password must be re-entered anytime the connection information is changed.
Source configuration
To import data from an external database, complete the following configuration settings on the Source tab of the Import Wizard.
Item | Description |
---|---|
Import type |
Select External Database to import data directly from an external database. |
Import source |
Select one of the following database sources:
NOTES:
|
Remote Data Connection |
If your Axiom Software system is hosted on the Axiom Software cloud service, then you must specify a remote data connection so that the cloud service can connect to the database server located on your network. You can select any remote data connection defined in your system, or you can enter an import variable name. For example, you can enter the built-in system variable Remote data connections are defined in Scheduler. If no remote data connections have been defined in your system, then this setting does not apply and will not display. |
Connection information for SQL Server
Complete the following connection information when the Import source is SQL Server.
Item | Description |
---|---|
Server |
The name of the SQL Server. |
Database |
The name of the database. |
User |
The user name to use to connect to the specified server and database. The user credentials must be for a SQL Server account; network domain credentials cannot be used. |
Password |
The password to use to connect to the specified server and database. |
Once you have completed the connection settings, click the Test connection button to test the connection. The Status updates to show either a success message or an error message.
Connection information for Oracle
Complete the following connection information when the Import source is Oracle.
Field | Description |
---|---|
Server |
The connection parameters for the Oracle server. You can obtain this information from the Oracle TNS Names entry. A typical TNS Names entry for Oracle looks like the following: SERVER=(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=MyHOSTNAME)(PORT=MyPORT))(CONNECT_DATA=(SERVICE_NAME=MyOracleServiceID))) Axiom Software requires this information in the following format: MyHOSTNAME:MyPORT/MyOracleServiceID Where:
|
User |
The user name to use to connect to the database. |
Password |
The password to use to connect to the database. |
Once you have completed the connection settings, click the Test connection button to test the connection. The Status updates to show either a success message or an error message.
Connection information for OLEDB
Complete the Connection string field when the Import source is OLEDB. The connection string identifies the name and location of the database or file to connect to, including any necessary validation information. Any valid SQL connection string can be used. The connection string cannot contain spaces.
Once you have completed the connection settings, click the Test connection button to test the connection. The Status updates to show either a success message or an error message.
A good resource for connection strings is http://www.connectionstrings.com/ (external link). Some examples of common connection strings are shown below:
Source | Sample string |
---|---|
CSV |
Server=.\SQLExpress;Provider=MSDASQL;Driver={Microsoft Text Driver (*.txt; *.csv)};UID=test;PWD=test!123;Database=AxiomFinancial |
SQL Server, trusted connection |
Data Source=myServerAddress;Initial Catalog=myDataBase;Integrated Security=SSPI; |
Oracle with TNS |
Data Source=TORCL;User Id=myUsername;Password=myPassword; |
SQLOLEDB (standard) |
Provider=sqloledb;Data Source=myServerAddress;Initial Catalog=myDataBase;User Id=myUsername;Password=myPassword; |
SQLOLEDB (trusted) |
Provider=sqloledb;Data Source=myServerAddress;Initial Catalog=myDataBase;Integrated Security=SSPI; |
SQLOLEDB (server instance) |
Provider=sqloledb;Data Source=myServerName\theInstanceName;Initial Catalog=myDataBase;Integrated Security=SSPI; |
AS400 |
Provider=IBMDA400;Data Source=MY_SYSTEM_NAME;User Id=myUsername;Password=myPassword; |
Connection information for ODBC
Complete the Connection string field when the Import source is ODBC. The connection string identifies the name and location of the database to connect to, including any necessary authentication credentials. The connection string requirements and syntax vary depending on the source database you are attempting to connect to. Consult the documentation from your database vendor to determine an appropriate ODBC connection string for this purpose.
Once you have completed the connection settings, click the Test connection button to test the connection. The Status updates to show either a success message or an error message.
SQL Select Statement
The SQL SELECT statement defines the data query to the source database, resulting in the set of data to be imported to the temp table. You can then perform mapping and transformations on the data before importing into the destination table.
In the SQL Select Statement box, enter any valid SQL statement to define the data query. You can click the SQL editor button to open the Edit SQL dialog. This dialog provides a text editor for entering and reviewing large SQL statements, and several tools to check the statement. For more information, see Creating the SQL SELECT statement.
Variables can be used in the SELECT statement. See Using variables in imports.
NOTE: The syntax of the SQL statement cannot be validated when using OLEDB or ODBC as the source.
Use of ODBC requires an ODBC driver to be installed on the following servers:
- For on-premise systemsAxiom Software systems that are installed on the client's premises. All servers and technical requirements are managed by the client., the driver must be installed on the Axiom Software Application Server.
- For cloud service systemsAxiom Software systems that are accessed using the Axiom Cloud Service. Technical requirements are managed by Axiom Support; no server software is installed on the client's premises., the driver must be installed on the local server that is hosting the Axiom Software Cloud Integration Service.
The ODBC driver is specific to your source database. If you want to use ODBC with a particular database, that database vendor should provide or recommend an ODBC driver for use with that database.