Connecting to Your Database
Total Page:16
File Type:pdf, Size:1020Kb
Connecting to Your Database Appeon InfoMaker® 2019 FOR WINDOWS DOCUMENT ID: DC37791-01-1900-01 LAST REVISED: June 03, 2019 Copyright © 2019 Appeon. All rights reserved. This publication pertains to Appeon software and to any subsequent release until otherwise indicated in new editions or technical notes. Information in this document is subject to change without notice. The software described herein is furnished under a license agreement, and it may be used or copied only in accordance with the terms of that agreement. Upgrades are provided only at regularly scheduled software release dates. No part of this publication may be reproduced, transmitted, or translated in any form or by any means, electronic, mechanical, manual, optical, or otherwise, without the prior written permission of Appeon Inc. Appeon and other Appeon products and services mentioned herein as well as their respective logos are trademarks or registered trademarks of Appeon Inc. SAP and other SAP products and services mentioned herein as well as their respective logos are trademarks or registered trademarks of SAP and SAP affiliate company. Java and all Java-based marks are trademarks or registered trademarks of Oracle and/or its affiliates in the U.S. and other countries. Unicode and the Unicode Logo are registered trademarks of Unicode, Inc. All other company and product names mentioned may be trademarks of the respective companies with which they are associated. Use, duplication, or disclosure by the government is subject to the restrictions set forth in subparagraph (c)(1)(ii) of DFARS 52.227-7013 for the DOD and as set forth in FAR 52.227-19(a)-(d) for civilian agencies. Appeon Inc., 1/F, Shell Industrial Building, 12 Lee Chung Street, Chai Wan District, Hong Kong Contents I Introduction to Database Connections .................................................................... 1 1 Understanding Data Connections ................................................................... 2 1.1 How to find the information you need .................................................. 2 1.2 Accessing data in InfoMaker ................................................................ 3 1.3 Accessing the Demo Database ............................................................ 4 1.4 Using database profiles ........................................................................ 4 1.4.1 About creating database profiles ................................................ 5 1.4.2 Creating a database profile ........................................................ 8 1.5 What to do next .................................................................................... 9 II Working with Standard Database Interfaces ....................................................... 10 2 Using the ODBC Interface ............................................................................ 11 2.1 Using the ODBC interface .................................................................. 11 2.1.1 What is ODBC? ........................................................................ 11 2.1.2 Using ODBC in InfoMaker ........................................................ 12 2.1.3 Components of an ODBC connection ...................................... 12 2.1.4 Types of ODBC drivers ............................................................ 14 2.1.5 Ensuring the proper ODBC driver conformance levels ............. 16 2.1.5.1 What are ODBC conformance levels? ........................... 16 2.1.6 Obtaining ODBC drivers ........................................................... 18 2.1.7 Getting help with ODBC drivers ............................................... 18 2.2 Preparing ODBC data sources ........................................................... 18 2.3 Defining ODBC data sources ............................................................. 19 2.3.1 How InfoMaker accesses the data source ............................... 19 2.3.1.1 PBODB190 initialization file ............................................ 19 2.3.1.2 ODBCINST registry entries ............................................ 20 2.3.1.3 ODBC registry entries .................................................... 20 2.3.1.4 Database profiles registry entry ...................................... 21 2.3.2 Defining multiple data sources for the same data .................... 22 2.3.3 Displaying Help for ODBC drivers ............................................ 22 2.3.3.1 Help for any ODBC driver .............................................. 22 2.3.4 Selecting an ODBC translator .................................................. 23 2.4 Defining the ODBC interface .............................................................. 23 2.5 SAP SQL Anywhere ........................................................................... 23 2.5.1 Supported versions for SQL Anywhere .................................... 24 2.5.2 Basic software components for SQL Anywhere ....................... 24 2.5.3 Preparing to use the SQL Anywhere data source .................... 25 2.5.4 Defining the SQL Anywhere data source ................................. 26 2.5.5 Support for Transact-SQL special timestamp columns ............. 28 2.5.6 What to do next ........................................................................ 29 2.6 PostgreSQL ........................................................................................ 29 3 Using the JDBC Interface ............................................................................. 31 3.1 About the JDBC interface ................................................................... 31 3.1.1 What is JDBC? ......................................................................... 31 3.1.2 Components of a JDBC connection ......................................... 32 3.1.3 JDBC registry entries ............................................................... 33 3.1.4 Supported versions for JDBC ................................................... 34 3.1.5 Supported JDBC datatypes ...................................................... 34 3.2 Preparing to use the JDBC interface .................................................. 34 3.3 Defining the JDBC interface ............................................................... 35 4 Using the OLE DB interface ......................................................................... 37 4.1 About the OLE DB interface ............................................................... 37 4.1.1 What is OLE DB? ..................................................................... 37 4.1.2 Components of an OLE DB connection ................................... 39 4.1.3 Obtaining OLE DB data providers ............................................ 40 4.1.4 Supported versions for OLE DB ............................................... 40 4.2 Preparing to use the OLE DB interface .............................................. 41 4.3 Defining the OLE DB interface ........................................................... 42 5 Using the ADO.NET interface ...................................................................... 44 5.1 About ADO.NET ................................................................................. 44 5.2 About the InfoMaker ADO.NET database interface ............................ 45 5.2.1 Components of an ADO.NET connection ................................. 45 5.2.2 OLE DB data providers ............................................................ 46 5.3 Preparing to use the ADO.NET interface ........................................... 47 5.4 Defining the ADO.NET interface ........................................................ 48 III Working with Native Database Interfaces ........................................................... 50 6 Using Native Database Interfaces ................................................................ 51 6.1 About native database interfaces ....................................................... 51 6.1.1 What is a native database interface? ....................................... 51 6.1.2 Components of a database interface connection ..................... 51 6.1.3 Using a native database interface ............................................ 52 6.2 Informix ............................................................................................... 53 6.2.1 Supported versions for Informix ............................................... 53 6.2.2 Supported Informix datatypes ................................................... 54 6.2.2.1 Informix DateTime datatype ........................................... 54 6.2.2.2 Informix Time datatype ................................................... 55 6.2.2.3 Informix Interval datatype ............................................... 55 6.2.3 Basic software components for Informix .................................. 55 6.2.4 Preparing to use the Informix database ................................... 56 6.2.5 Defining the Informix database interface .................................. 57 6.2.5.1 Specifying the server name ............................................ 58 6.2.6 What to do next ........................................................................ 58 6.3 Microsoft SQL Server ......................................................................... 58 6.3.1 Supported versions for SQL Server ......................................... 58 6.3.2 Supported SQL Server datatypes ............................................ 59 6.3.3 Basic software components for Microsoft SQL Server ............. 59 6.3.4 Preparing to use the SQL Server database ............................