Integrating SQL Databases

Size: px
Start display at page:

Download "Integrating SQL Databases"

Transcription

1 Integrating SQL Databases Converting to a SQL database 2000 Presented By: Mike King Copyright 2000 by Sage Canada Ltd. All rights reserved. No part of this publication may be reproduced, or transmitted in any form or by any means, electronic, mechanical, photocopied, recorded or other, without prior written consent of Sage Canada Ltd. 1

2 Presentation Overview Review of ODBC interface Using the PREFIX FILE Record formatting options Implementing different file types Emulating non-normalized data files The ProvideX INI file [ODBC] section Optimization This presentation is intended to assist dealers who may be interested in migrating their existing data files to a SQL-based database, such as Microsoft SQL Server, ORACLE, Informix, or Sybase. The major points that will be covered are: The ODBC interface Using a PREFIX file to simplify the implementation How to define different types of ProvideX style files to the ODBC/SQL interface Record formatting options that can be used to format the record layouts Include packed data and binary data Definitions for Fixed length fields and Variable length fields How to define Variant record formats for data files which have different record layouts. (These are referred to commonly as NON-NORMALIZED files.) Review of the ODBC options available within the ProvideX INI files General discussion regarding optimizing your system performance 2

3 The ODBC Interface Common interface for a variety of database systems Microsoft SQL ORACLE INFORMIX Based on SQL Windows environment only ODBC provides a standard interface for passing information between applications and a wide variety of databases. Using ODBC, ProvideX can interact with any database technology that has an ODBC driver by using a standard set of functions. The interface is based on SQL. In order to interact with the database, ProvideX passes SQL commands to the ODBC administration system which passes them along to the individual database drivers, as required. To use ODBC on a Windows PC, you must define a Data Source Name (DSN) which relates a logical DSN to its associated driver and configuration parameters. For example, when connecting to Microsoft SQL Server, you need the name of the host system, the database name, an appropriate userid, and password. There are a variety of other parameters that can be specified as well. The ODBC DSN is used to define these values (host, database, etc.). The minimum that the ODBC DSN for SQL Server must contain is the name of the host system, since all of the other parameters can be specified at run time. Primarily, ODBC is a Windows environment functionality. There are a variety of non-windows implementations of ODBC on the marketplace. Only the standard Microsoft Windows ODBC interface is standard with ProvideX. We have interfaces available by special request for other ODBC-like interfaces, such as UDBC from OpenLink and CLI from Informix. 3

4 The ODBC Interface Direct access using the standard file I/O directives and functions ProvideX generates SQL directives No need to learn SQL System Generates it Automatically Eases migration of applications to ODBC accessible Databases ProvideX uses the standard file Input/Output directives and functions to interface with ODBC and database(s). Most of the standard ProvideX directives are supported fully within the ODBC interface and can be used with ODBC files, as if they are standard ProvideX files. Supported Directives: OPEN ( ), CLOSE ( ), READ ( ), WRITE ( ), REMOVE ( ), Also supported, but requires the use of a PREFIX file: LOCK( ), UNLOCK( ) Supported Functions: KEY( ), KEL( ), KEF( ), KEP( ), KEC( ), RNO( ), IND( ) Supported Options: KEY=, KNO=, IND=, RNO= Unsupported Directives/Functions: ERASE, REFILE, PURGE, KEN( ) Functions that may be incompatible: FIB( ), FIN( ), FID( ) (appear as ODBC files) In order to ease the transition, ProvideX generates the SQL commands automatically. This means that there are few application changes and little SQL training required for the most part. SQL must be used for file/table creation and deletion. 4

5 Opening ODBC connections OPEN path and OPT= string defines the logical relationship to the Database table Options are separated by semi-colons Options can be either in the pathname or in the OPT= string Use of the OPT= string avoids the 255 byte limitation for file pathnames Only the DSN and Table name are mandatory The OPEN directive is used to establish a logical connection between ProvideX and the database. The pathname and option string defines the database (DSN), the name of table to be accessed, and a variety of data formatting and processing options. It is possible to open a logical connection to the Database only by not specifying any table name. In this case, the program can submit SQL directives directly using the WRITE RECORD directive. Results returned from the database can be obtained using the READ directive, with each column that is returned separated by the SEP character. Normally, the pathname contains a variety of file access and formatting options as well. These options are used to define information regarding how to access the table to ProvideX. Typically, this includes the definition of the key fields, record formatting characteristics, and the details regarding variant record processing for non-normalized files. Additional options can provide information such as Userid and password, database qualifier name (database name within server), record locking characteristics, etc., to the ODBC connection. Because the size of the string needed to pass this information to ProvideX can become quite long and, due to the fact that ProvideX limits file pathnames to a maximum of 255 characters, options can be specified in the OPT=<string> for the OPEN. Options provided in the OPT= string are not treated any differently than those options passed in the pathname. 5

6 Example: Typical OPEN OPEN (n,opt= KEY=Cst_id; REC=Cst_id+Cst_name,Cst_owes ) [odb]starsys; Customer Where: STARSYS is the DSN name for the database Customer is the table name within the database Cst_id, Cst_name, Cst_owes are fields from table The above example shows an OPEN directive that: Connects to the DSN STARSYS. Note: Only System and User DSNs are supported by the ProvideX ODBC interface. File based DSNs are not supported. Establishes that the table to be accessed is called Customer. This must be a valid table in the database. Defines the primary key as the field CST_ID Defines a record layout consisting of columns CST_ID, CST_NAME, and CST_OWES. The columns CST_ID and CST_NAME will be concatenated together to form the first field in the record, with the column CST_OWES as the second column. For clarity, we suggest that only the database and table names be provided in the pathname, with the other options being specified in the OPT= string. A number of errors can occur during the open. Some of the more common PVX error conditions are: Error 10 - Invalid pathname Error 23 - Missing variable Error 12 - File does not exist An invalid combination of options has been specified. A column name not in the table has been specified. Could not locate the specified table in the database. 6

7 OPEN options Options that control data representation KEY=,IND=,REC=,KEYDATA=, RECDATA=, STRIP/NOSTRIP Options used to define variant records TYP=,? Options to control the ODBC interface SHARED, UNIQUE, ORACLE,.. All options in the OPEN directive are separated by semi-colons. Unrecognized options are ignored. The following table lists the options that control the data formatting and logical keys for the file: KEY= Columns This option defines the columns to be used as keys. Commas should separate each column name. The first KEY= option defines the primary key, the second defines the first alternate key (KNO=1), etc IND= Column If present, this option indicates that the ODBC connection is to be treated like an INDEXED file with the column specified containing the record index. The specified column must be numeric. REC= Columns/Literals This option defines the record format. (See next slide) KEYDATA= Column This option is used to define a column that contains the primary key but the column does NOT exist in the logical record data. (See Direct files) RECDATA= Column This option is used to define a column that contains the complete record contents. It can be used when the data content has no fixed format. STRIP/NOSTRIP Indicates that trailing spaces are to be stripped from the data by default. 7

8 The following table lists the options that control the actual ODBC interface: ACCESS SQL_ACCESS_MODE AUTOCOMMIT SQL_AUTOCOMMIT CURSOR_USE SQL_ODBC_CURSORS ISOLATION SQL_TXN_ISOLATION CONCURRENCY SQL_CONCURRENCY CURSOR_TYPE SQL_CURSOR_TYPE KEYSET_SIZE SQL_KEYSET_SIZE MAXROWS SQL_MAX_ROWS ROWSET_SIZE SQL_ROWSET_SIZE READ SQL_MODE_READ_ONLY WRITE SQL_MODE_READ_WRITE OFF SQL_AUTOCOMMIT_OFF ON SQL_AUTOCOMMIT_ON DRIVER SQL_CUR_USE_DRIVER ODBC SQL_CUR_USE_ODBC IF_NEEDED SQL_CUR_USE_IF_NEEDED UNCOMMITED SQL_TXN_READ_UNCOMMITTED COMMITED SQL_TXN_READ_COMMITTED REPEATABLE SQL_TXN_REPEATABLE_READ SERIAL SQL_TXN_SERIALIZABLE VERSIONING SQL_TXN_VERSIONING READONLY SQL_CONCUR_READ_ONLY LOCK SQL_CONCUR_LOCK OPT_VERSION SQL_CONCUR_ROWVER OPT_VALUE SQL_CONCUR_VALUES FORWARD SQL_CURSOR_FORWARD_ONLY STATIC SQL_CURSOR_STATIC KEYSET SQL_CURSOR_KEYSET_DRIVEN DYNAMIC SQL_CURSOR_DYNAMIC <value> <value> <value> This option controls the type of file access required. The default setting is WRITE. This option controls the auto commit functionality of the database driver. It is applicable only if the driver supports Transactions. This option controls the type of cursor to be used within the ODBC connection. The default setting is to use the specific driver s own cursors. Specifying ODBC causes the ODBC interface to use the Driver Managers cursor library that may provide additional functionality not available within the database driver. IF_NEEDED tells the system to use the specific database driver's own cursor functionality unless the additional functionality is requested specifically. This option controls the isolation that this connection will have relative to other processes on the same database. In particular, it controls Dirty reads (reading data that may be rolled back D ), Non-repeatable reads (reading data after changed by other transactions R ), and Phantom reads (reading data newly added to file P ). The settings are: UNCOMMITED - D, R, P possible COMMITED D possible, R & P not possible REPEATABLE P possible, D & R not possible SERIAL D, R, & P not possible VERSIONING D, R, & P not possible, but uses versioning as opposed to record locks This option controls the type of con-current access control/locking to be used. If READONLY is specified, then the cursor is set to read only no updates allowed. If LOCK is specified, then low level record locking is applied. OPT_VERSION causes optimistic locking with the database version control to be used. OPT_VALUE causes optimistic locking with comparing record/column values to be used. This option defines the type of cursor that is to be used. FORWARD indicates that any result sets can be read in a forward only direction. STATIC indicates that the result set is static. KEYSET forces the cursor to use/maintain record keys in a KEYSET. DYNAMIC indicates that the cursor is effective in the current ROWSET only. This option defines the size of the KEYSET for use with the CURSOR. This option can be used to limit the number of rows/records returned. This option defines the size of the ROWSET used by the cursor. 8

9 The following table lists the options that control the actual ODBC interface: TIMEOUT SQL_QUERY_TIMEOUT <value> This option defines the timeout value for any SQL operation (time before error 0 returned). USER <userid> This option specifies the userid to be used for the database connection. PSWD <password> This option specifies the password to be used. DB (or QUALIFIER) SQL_CURRENT_QUALIF ER SHARE UNIQUE <databasename> This option can be used to qualify the specific database that you wish to use when using a driver to service multiple databases. If specified, then the system will attempt to share the database connection with other logical connections to the same DSN. This option is available in the Professional version ONLY. This option forces ProvideX to not share this connection with other logical connections to the same DSN. PREPARE Y -or- N If set to Y, then ProvideX generates parameterized SQL statements that are precompiled. This improves performance of files accessed by key. TOP <value> If specified, then ProvideX uses the TOP clause in all SELECT statements, where possible. If this option exists, then the KEF and KEL functions issues a SELECT TOP 1 SQL statement, which improves system performance. If the <value> is > 0, then PVX issues SELECT TOP <value> to reduce the data transferred. EXTROPT <string> This option is used to control the format of the SELECTstatement used to process an EXTRACT. By default, PVX generates a SELECT * FROM <table> FOR UPDATE WHERE If specified, then <string> is substituted in place of FOR UPDATE. In addition, if the first character of <string> is $, then the remaining characters of <string> are placed at the end of the SELECT statement rather than after the file name. This allows for different variations of SQL to be supported. ORACLE Y / N This option indicates if the database uses ORACLE SQL sequence. If ORACLE and TOP are used, then SELECT commands are generated as SELECT * FROM (SELECT * FROM TABLE) WHERE ROWNUM < 1. MAS90DT Format DATE Fields as MAS90 style dates. FACTSDT Format DATE Fields as Facts style dates. TSQL <SQL statement> This option can be used to define a SQL statement that is used to control what data the logical file returns. (See optimization tips.) EXEC_SPRNO If specified, then PVX attempts to issue an EXEC SPRNO_tablename <rno> statement to read a record using its logical record number. If the stored procedure fails, then the system will revert back to standard RNO processing. 9

10 Defining the Record Layout REC= option defines the record layout Simple format is: REC= <fieldspec> {, -or- + } <fieldspec> Fields separated by either a comma or plus sign If Comma-separated, then a field delimiter is inserted If Plus-separated, then the field is padded to full size and no separator is inserted <fieldspec> contains the name of the field and optional format, length, and scale Literals may be included, if enclosed in apostrophes The REC= phrase is used to control the formatting of the data record as viewed by the ProvideX application. The format consists of a series of field descriptors and/or literals, each separated by either a comma or a plus sign. (Record type indicators can be present within the REC= phrase as well, but these will be discussed later in the presentation.) If a comma is used to separate two entries, then the resultant output record will contain a field separator. If a plus sign is used, then the first field specified will be padded to its full length and be followed immediately by the second field. For Example: REC=CST_ID, CST_NAME, CST_ADDR This results in a record with three fields, each separated by a field separator. REC=CST_ID + CST_NAME + CST_ADDR This results in a record consisting of the fields with each one padded to its full length with no intervening field separator. For example, if CST_ID is 6 characters long and CST_NAME and CST_ADDR are both 30, then the resultant record would be 67 characters long. 10

11 Defining the Record Layout (continued) Any column name can be followed optionally by a colon and a format specification. This format specification consists of an optional data type followed by the field length and, if numeric, a decimal point followed by the number of decimal positions. The possible data types are: P H B D - Packed (BIN) data - Data is stored in HEX - Data is a Binary field - Field is a Date Some examples would be: CST_ID:7 CST_OWING:8.2 CST_AMT:P4.2 CST_NAME:B30 (8 digits with 2 decimal places) (4 bytes containing BIN value scaled by 100) (30 byte binary field) It is desirable to include the field descriptions for all fields since it prevents ProvideX from having to read the table s Data Dictionary to determine the field sizes and types. The Hex and Binary values can be used to store non-printable and/or binary data which would cause problems otherwise when passed in a SQL statement. Binary fields (type P) can be used to define numeric data that has been packed into a string using the BIN and DEC functions. If specified, the scale indicates the number of implied decimal places that the value contains. Literals may be inserted within the record layout as well, in order to insert padding where a field or column is not presently used, but space has been reserved for it. Literals should be enclosed with apostrophes and separated by a comma or plus sign. 11

12 Non-Normalized Files Allows different formats based on content TYP= clause defines the field(s) used to determine the record type. A? in the REC= clause defines the value Special masking options for the? Value Period. specifies any character [abc] indicates any of abc (use - for range as in [0-9]) [ ] indicates end-of-field ^ indicates records that DON T match Non-normalized files are a critical aspect of a number of applications. These are files which use multiple record formats to contain the data used by the application. Applications developed by many Business Basic developers have a number these types of files. Unfortunately, this type of data structure is not supported in a normalized database, such as SQL Server. In order to migrate these files to a SQL-based database, the table contents have to be normalized. The ProvideX ODBC interface has a mechanism built into it to convert data from a SQL normalized file to appear as a non-normalized file. The approach used is to define one column for each potential field which can exist in all the different record layouts within the table that contains the ProvideX data file contents. Then, we define to ProvideX the record layout to be used based upon the contents of one or more fields. In order to accomplish this, ProvideX must know which fields/columns contain the data needed to determine the record format to be used. The column(s) are declared in the TYP= option. If multiple columns are required, each column must be separated by a plus sign as in: TYP=CST_ID+CST_TYPE Then, define the values to be returned by the contents of the fields defined in the TYP= clause within the REC= clause. These values are identified by question marks followed by the contents to match against the fields. (continued) 12

13 Non-Normalized Files (continued) The contents of the value to match can contain a number of special characters that are designed for simplified matching:. (period) Matches any character [abc] Matches any of the characters a. b, c [0-9] Matches any of the characters between 0 and 9 [ ] Matches end-of-string / No data ^ If the first character is a ^, then it indicates to select records that DON T match the string following the ^. Ie.?^PROD selects anything that doesn t match PROD. The column names specified in the TYP= clause can be followed by a comma and a length specifier, if you only want the first nnn columns used in the match. For example, the clause TYP=CST_ZIP,3 would only check the first three positions of the field CST_ZIP. A typical example of a non-normalized file where each record has a three character prefix on the key field definition follows: File: GCOMP (two record types G/L and DPT ) All record: Prefix Key 3 char Company Key 2 char Id Key 10 char (Dept or Acct #) Name 35 char (Dept or G/L name) DPT rec: Restriction_flag 1 char G/L rec: Control_acct 1 char Stmt_A_Line 4 numeric Stmt_B_Line 4 numeric Subaccount_flag 1 char Inventory_acct 1 char Print_zero 1 char Definition: [odb]jonas_db;gl_dept_master; KEY=Prefix,Company,Id; TYP=Prefix; REC=? DPT,Prefix,Company,Id,Name,Restriction_flag,? G/L, Prefix,Company,Id,Name,Control_acct,Stmt_A_Line,Stmt_B_Line, Subaccount_flag,Inventory_acct,Print_zero (file compliments of Gary Jonas Computing - abbreviated layout) 13

14 Using the PREFIX FILE PREFIX FILE is used to map existing file OPENs into ODBC OPENs Can contain pathname and options Prefix file is a DIRECT file whose key is the filename as given by the program Record has two data fields 1st field contains actual pathname to use 2nd field contains the OPT= string By using the PREFIX FILE integrated into ProvideX, you can map existing file OPENs directly into ODBC opens. The PREFIX FILE consists of a keyed file where the key is the file name as it appears in the program. The data records consist of the actual pathname to use in the first field and the option list in the second field. You can insert [ODB]DatabaseName;TableName (using the actual values) into the first field of a PREFIX FILE and the options that you desire into the second field. For example, in MAS200 the ARF terms code file is described as: File: ARFABC.SOA Fields: TermsCode 2char (concatenated with) Description 30char (concatenated with) DaysBeforeDue 3char (concatenated with) DueDateADayOfMonth 1char (concatenated with) DaysBeforeDiscDue 3char (concatenated with) DiscDateADayOfTheMonth 1char (concatenated with) MinDaysAllowedInvDue 3char (concatenated with) MinDaysAllowedDiscDue 3char (concatenated with) DiscountCalcMethod 1 char DiscountPercentage numeric 19.7 Key: TermsCode (continued) 14

15 Using the Prefix File (continued) To record the definition to the PREFIX file: KEYED PFXFILE,12 OPEN (1) PFXFILE WRITE (1,KEY= ARFABC.SOA ) [odb]mas90mfk;arf_termscodemasterfile;db=mas_abc;, KEY=TermsCode; REC=TermsCode:2+ Description:30+ DaysBeforeDue:3+ DueDateADayOfMonth:1+ DaysBeforeDiscDue:3+ DiscDateADayOfTheMonth:1+ MinDaysAllowedInvDue:3+ MinDaysAllowedDiscDue:3+ DiscountCalcMethod:1, DiscountPercentage:19.7 CLOSE (1) Generally, we suggest that the first field contains the [odb]mas DSN/Table declaration and the second field contains the record layout. Once this record is created, you can enable your PREFIX FILE and access the SQL table in your application by OPENing the file ARFABC.SOA ->PREFIX FILE PFXFILE ->OPEN (1) ARFABC.SOA ->PRINT PTH(1) [odb]mas90mfk;arf_termscodemasterfile;db=mas_abc; -> You should create a PREFIX FILE with a record size large enough to accommodate the largest file definition string that your application requires. A Prefix file with a record size of 4000 bytes is not uncommon. 15

16 Handling File/Record Locks File Lock functionality does not exist ProvideX emulates using PREFIX FILE Places a PSUEDO Lock against PREFIX FILE Don t close Prefix file while ODBC files are open Sessions must share a common PREFIX FILE Record locking provided by SQL Server Does not lock records on same connection EXTRACT on one channel does not block access on the second channel There is no equivalent functionality to File locking available directly within the SQL Server. To get around this issue, ProvideX uses a series of locks placed against the PREFIX file which emulates the LOCK / UNLOCK functionality. When an application opens a ODBC connection to a database table using a PREFIX FILE entry, a lock byte within the PREFIX FILE is set based on the file entry and a process identifier. When a LOCK is issued, then all lock bytes associated with the file are set preventing further access to the file. In order for this process to work, all applications must use the same PREFIX FILE and it must remain active as long as any ODBC file is open. Record locking in Microsoft SQL Server and other SQL based systems is slightly different in that records EXTRACTed on one channel can be accessed on another, if they share a common database connection (i.e. Use the SHARE ODBC option). 16

17 Defining a KEYED file You need to provide: DSN name Table name Record format Optional, if each field matches the database definition Keys using the KEY= option First KEY= is KNO #0, Second is KNO #1, The most common file format within ProvideX applications is a KEYED (or DIRECT) file where the key for the record is contained in the record data. These types of files can be defined directly as tables with each data field defined as a single column in the database. The KEY= clause can be used to define the field(s) that comprise the record key. If more than one key is required, then multiple KEY= clauses can be included for each alternate key required. The following is an example of the definition for a KEYED file: File: ICALPX Fields: Company 2 char Alpha_sort 10 char Item_num 20 char Stocked 1 char Update_Inventory 1 char Key 1: Company, Item_num Key 2: Company, Alpha_sort, Item_num Key 3: Company, Stocked, Alpha_sort, Item_num Key 4: Company, Update_Inventory, Alpha_sort, Item_num Key 5: Company, Stocked, Update_inventory, Alpha_sort, Item_num (continued) 17

18 Defining a KEYED file (continued) Definition: [odb]facts_db;ic_item_alpha ; REC=Company, Alpha_sort, Item_Num, Stocked, Update_Inventory; KEY=Company, Item_num; KEY=Company, Alpha_sort, Item_num; KEY=Company, Stocked, Alpha_sort, Item_num; KEY=Company, Update_Inventory, Alpha_sort, Item_num; KEY=Company, Stocked, Update_inventory, Alpha_sort, Item_num This would declare a KEYED type of file with one primary and four alternate keys. (example compliments of Software Solutions Inc.) 18

19 Defining an INDEXED file You need to provide: DSN name Table name Record format Record INDEX field MUST be a numeric field in Database Should be 8 digits in length - no decimal points While SQL does not support an INDEXED-style table structure typically, ProvideX can emulate this file structure using a numeric field within the table as the record index. This numeric field should contain a minimum of 8 digits with no decimal points. The following is an example of the definition for an INDEXED file: File: PODABC.SOA Index field: IndexSql Numeric 8 Fields Rec#0: RecordsActivelyUsed Numeric 19.7 MaximumRecordsInFile Numeric 19.7 NextNewIndexAvailable Numeric 19.7 LastRemovedIndexRecord Numeric 19.7 Fields other: StdMessageLine1 50 char (concatenated with) StdMessageLine2 50 char Definition: [odb]mas90mfk;pod_pomessage;db=mas_abc; IND=IndexSql:8; TYP=IndexSql,1,8; REC=?" "+ RecordsActivelyUsed:19.7, MaximumRecordsInFile:19.7, NextNewIndexAvailable:19.7, LastRemovedIndexRecord:19.7+?"..."+ StdMessageLine1:50+ StdMessageLine2:50+ ' ' (example from MAS200) 19

20 Defining a DIRECT file Basically the same as a KEYED file If the External Key does not exist as field(s) within the record data, then you must specify the KEYDATA= clause KEYDATA= must specify a single field This field is the primary key of the record Field must NOT appear within the REC= fields Most DIRECT files can be defined using the same format as a KEYED file. However, if the key for a DIRECT file is not contained within the data columns, then a special OPEN syntax is required. This requirement is due to the fact that ProvideX normally attempts to generate the record key from the contents of the record data columns. The KEYDATA option is used to define the column name for the data that contains the record key. In many cases, it will be used when the key is not derived directly from the data in any logical manner or when the file is non-normalized and the key components vary from record type to record type. The column specified in the KEYDATA clause must not exist in the REC= clause. (continued) 20

21 Defining a Direct file (continued) The following is an example of the definition for a Direct file whose key is not made up of column data: File: ARWABC.SOA Fields F rec: RecordNo 1char (concatenated with..) FromDivision 2 char (concatenated with..) FromCustomerNumber 7 char (concatenated with..) ToDivision 2 char (concatenated with..) ToCustomerNumber 7 char Fields T rec: RecordNo 1char (concatenated with..) ToDivision 2 char (concatenated with..) ToCustomerNumber 7 char (concatenated with..) FromDivision 2 char (concatenated with..) FromCustomerNumber 7 char Definition: [odb]mas90mfk;arw_globalcustrenentry;db=mas_abc; KEYDATA=KeySql:B10; TYP=RecordNo,1,1; REC=?"F"+RecordNo:1+ FromDivision:2+ FromCustomerNumber:7+ ToDivision:2+ ToCustomerNumber:7+?"T"+RecordNo:1+ ToDivision:2+ ToCustomerNumber:7+ FromDivision:2+ FromCustomerNumber:7 Basically, the key for this file is the record as defined, thus the actual columns used to create the key, vary between the T and F records. (example from MAS200) 21

22 Defining a SORT file You need to provide: DSN and Table name Record format Fields must be concatenated with the + operator Specify KEY=* This indicates that the KEY is the record No record data will exist logically SORT files pose a different problem to the ProvideX interface, as there is no data record but just a key field. To define a SORT file, the table definition should contain the columns that are required to construct the key with a REC= clause which defines the layout of the KEY. (Normally, this requires the use of the PLUS sign between all the fields.) Use a KEY=* option to indicate that the record itself is the key and that no record actually exists. An example of an OPEN definition for this type of file follows: File: ARCALX Fields: Company 2 char Alpha_Sort_Key 10 char Customer_Num 10 char Definition: [ODB]FACTS_DB;AR_Cust_Alpha ; REC=Company+Alpha_Sort_key+Customer_Num ; KEY=* (example compliments of Software Solutions Inc.) 22

23 ODBC Section in PVX.INI All options can be set in [ODBC] section Simplifies common settings Additional option: DEBUGIT = <string> Appends <string> program name and statement number to all SQL commands If using MS SQL Server, then set <string> to -- To avoid having to specify common ODBC settings, an ODBC section can be added to the PVX INI file. This section can contain any of the settings that you wish to use as a default during your session. Settings established in the INI file can be overridden in the OPEN specifications. MAS200 uses the following ODBC settings in their INI file: EXTROPT=(UPDLOCK) UNIQUE=0 CURSORCLOSE=YES TOP=-1 CURSOR_TYPE=DYNAMIC TIMEOUT=5 ISOLATION=COMMITTED CONCURRENCY=OPT_VALUE There is a special Debugging option available in the INI file only. If you include the option DEBUGIT = <string>, then, whenever a SQL command is generated and passed to the ODBC server, the value in <string> followed by the current program name and line number will be added to the end of the statement. Using a value of -- changes the program information to be considered a comment by the Microsoft SQL server. 23

24 Optimization Tips Performance can be improved signifigantly Results vary drastically between applications Some options to consider: PREPARE=Y option reduces SQL compilations TOP=nnn option reduces transfers for KEF/KEL Try TOP = - 1 is using MSSQL Server or ORACLE A lot of performance issues depend very much on the application and how it references the databases. However, there are a number of options that can be used to improve system throughput in some instances. The PREPARE=Y option causes ProvideX to create a parameterized SELECT statement that can be compiled once and then re-used many times. Use of this technique can improve system throughput. An example of the parameterized statement is: SELECT <fields> FROM CUSTOMER WHERE CST_ID =? (A Question mark is used to denote the location of the parameter within the statement.) ProvideX will create and pass this statement to the ODBC system on the first read using the primary key along with the location where the driver can find the value of the parameter field. Subsequent reads simply change the location of the parameter and have the driver re-execute the SQL statement. No further compilation of the SQL is required. The TOP=nnn directive can be specified for any driver that supports the TOP= clause for the SELECT statement (Microsoft SQL server). If TOP is present, then the system will limit the number of records retrieved when issuing a SELECT. This minimizes the number of unneeded reads that the system will perform. A value of -1 can be used to indicate that the ODBC driver supports this syntax. This can be extremely important if your application uses KEF or KEL functions frequently, since it ensures that a single read only is executed for these functions. 24

25 Optimization Tips If you know SQL, try TSQL=stmt option allows server to pre-process data and reduce traffic EXEC_SPRNO option with stored procedure improves RNO speed Directly issue SQL commands or use Stored procedures The ProvideX interface is designed to provide a fairly efficient but generic interface to any SQL- based database while minimizing the amount of code changes within your application. If you are willing to make application changes, then there are a number of additional ways that you can use SQL directly in order to improve performance. The TSQL option allows you to create your own SQL command that will be used when issuing simple READ NEXT s against a database. For example, if you wanted to get all the customers with an outstanding account balance and the file CSTFILE was defined in the PREFIX FILE, then you could specify: OPEN (1, OPT= TSQL=SELECT * FROM CUSTOMER WHERE CST_OWES>0 ) CSTFILE If this logical file was read sequentially, then it would return only those records which matched the criteria you specified. This would reduce the data transfer to your application effectively because the database server would filter out the records that you don t need. The existing logic, which checks CST_OWES for a non-zero value, could remain, but the application would see only the records which had a non-zero value. (continued) 25

26 Access by RNO (continued) The ODBC does not have functionality that is equivalent to access by RNO. To accommodate this, ProvideX use a SELECT COUNT ( * ) WHERE KEY <. for the RNO function and a SELECT * followed by sucesive reads to position to a specific record to satisfy the RNO= functionality. While the RNO function is relativity fast, access by RNO= can be very slow. The EXEC_SPRNO option can be used if your application makes extensive use of accessing the file using RNO. If specified, then ProvideX will issue the SQL stored procedure invocation command: EXEC sprnottttttttkkkk nnnn Where: tttttttt kkkk nnnn is the name of the Table is either blank, if using the primary key, or an underscore followed by the key number is the record number desired For Example: READ (1,RNO=100) -> EXEC sprnocustomer 100 READ (1,RNO=123,KNO=3) -> EXEC sprnocustomer_3 123 The Stored procedure should return all the columns as defined in the table. The following is a typical Stored procedure: CREATE PROCEDURE [sprnocustomer] (@rno int) AS BEGIN SET NOCOUNT ON VARCHAR (6) DECLARE TempCursor CURSOR DYNAMIC FOR SELECT CustCode FROM Customer ORDER BY CustCode OPEN TempCursor Fetch from TempCursor CLOSE TempCursor DEALLOCATE TempCursor SELECT * FROM Customer WHERE CustCode END 26

27 Review Most applications can be migrated All basic ProvideX file types can be implemented Minimal code impact for basic Implementation Optimization may require code changes to achieve optimal performance Biggest obstacle is logistics Database Creation, Deletion, and Installation Data Dictionary is a MUST 27

28 End of Presentation Thank you 28

ODBC Chapter,First Edition

ODBC Chapter,First Edition 1 CHAPTER 1 ODBC Chapter,First Edition Introduction 1 Overview of ODBC 2 SAS/ACCESS LIBNAME Statement 3 Data Set Options: ODBC Specifics 15 DBLOAD Procedure: ODBC Specifics 25 DBLOAD Procedure Statements

More information

Intro to Embedded SQL Programming for ILE RPG Developers

Intro to Embedded SQL Programming for ILE RPG Developers Intro to Embedded SQL Programming for ILE RPG Developers Dan Cruikshank DB2 for i Center of Excellence 1 Agenda Reasons for using Embedded SQL Getting started with Embedded SQL Using Host Variables Using

More information

Tips and Tricks SAGE ACCPAC INTELLIGENCE

Tips and Tricks SAGE ACCPAC INTELLIGENCE Tips and Tricks SAGE ACCPAC INTELLIGENCE 1 Table of Contents Auto e-mailing reports... 4 Automatically Running Macros... 7 Creating new Macros from Excel... 8 Compact Metadata Functionality... 9 Copying,

More information

Micro Focus Database Connectors

Micro Focus Database Connectors data sheet Database Connectors Executive Overview Database Connectors are designed to bridge the worlds of COBOL and Structured Query Language (SQL). There are three Database Connector interfaces: Database

More information

"SQL Database Professional " module PRINTED MANUAL

SQL Database Professional  module PRINTED MANUAL "SQL Database Professional " module PRINTED MANUAL "SQL Database Professional " module All rights reserved. No parts of this work may be reproduced in any form or by any means - graphic, electronic, or

More information

ProvideX ODBC. Local and Client/Server

ProvideX ODBC. Local and Client/Server ProvideX ODBC Local and Client/Server Introduction 1 Installation Procedures 4 Local & Client Configuration 8 Server Configuration 16 Table Definitions 23 Using the ODBC Driver 37 ProvideX is a trademark

More information

SQL Server Database Coding Standards and Guidelines

SQL Server Database Coding Standards and Guidelines SQL Server Database Coding Standards and Guidelines http://www.sqlauthority.com Naming Tables: Stored Procs: Triggers: Indexes: Primary Keys: Foreign Keys: Defaults: Columns: General Rules: Rules: Pascal

More information

MAS 500 Intelligence Tips and Tricks Booklet Vol. 1

MAS 500 Intelligence Tips and Tricks Booklet Vol. 1 MAS 500 Intelligence Tips and Tricks Booklet Vol. 1 1 Contents Accessing the Sage MAS Intelligence Reports... 3 Copying, Pasting and Renaming Reports... 4 To create a new report from an existing report...

More information

Paper 70-27 An Introduction to SAS PROC SQL Timothy J Harrington, Venturi Partners Consulting, Waukegan, Illinois

Paper 70-27 An Introduction to SAS PROC SQL Timothy J Harrington, Venturi Partners Consulting, Waukegan, Illinois Paper 70-27 An Introduction to SAS PROC SQL Timothy J Harrington, Venturi Partners Consulting, Waukegan, Illinois Abstract This paper introduces SAS users with at least a basic understanding of SAS data

More information

Retrieving Data Using the SQL SELECT Statement. Copyright 2006, Oracle. All rights reserved.

Retrieving Data Using the SQL SELECT Statement. Copyright 2006, Oracle. All rights reserved. Retrieving Data Using the SQL SELECT Statement Objectives After completing this lesson, you should be able to do the following: List the capabilities of SQL SELECT statements Execute a basic SELECT statement

More information

Title. Syntax. stata.com. odbc Load, write, or view data from ODBC sources. List ODBC sources to which Stata can connect odbc list

Title. Syntax. stata.com. odbc Load, write, or view data from ODBC sources. List ODBC sources to which Stata can connect odbc list Title stata.com odbc Load, write, or view data from ODBC sources Syntax Menu Description Options Remarks and examples Also see Syntax List ODBC sources to which Stata can connect odbc list Retrieve available

More information

ODBC Client Driver Help. 2015 Kepware, Inc.

ODBC Client Driver Help. 2015 Kepware, Inc. 2015 Kepware, Inc. 2 Table of Contents Table of Contents 2 4 Overview 4 External Dependencies 4 Driver Setup 5 Data Source Settings 5 Data Source Setup 6 Data Source Access Methods 13 Fixed Table 14 Table

More information

Simply Accounting Intelligence Tips and Tricks Booklet Vol. 1

Simply Accounting Intelligence Tips and Tricks Booklet Vol. 1 Simply Accounting Intelligence Tips and Tricks Booklet Vol. 1 1 Contents Accessing the SAI reports... 3 Running, Copying and Pasting reports... 4 Creating and linking a report... 5 Auto e-mailing reports...

More information

3.GETTING STARTED WITH ORACLE8i

3.GETTING STARTED WITH ORACLE8i Oracle For Beginners Page : 1 3.GETTING STARTED WITH ORACLE8i Creating a table Datatypes Displaying table definition using DESCRIBE Inserting rows into a table Selecting rows from a table Editing SQL buffer

More information

Firebird. Embedded SQL Guide for RM/Cobol

Firebird. Embedded SQL Guide for RM/Cobol Firebird Embedded SQL Guide for RM/Cobol Embedded SQL Guide for RM/Cobol 3 Table of Contents 1. Program Structure...6 1.1. General...6 1.2. Reading this Guide...6 1.3. Definition of Terms...6 1.4. Declaring

More information

Migrating Non-Oracle Databases and their Applications to Oracle Database 12c O R A C L E W H I T E P A P E R D E C E M B E R 2 0 1 4

Migrating Non-Oracle Databases and their Applications to Oracle Database 12c O R A C L E W H I T E P A P E R D E C E M B E R 2 0 1 4 Migrating Non-Oracle Databases and their Applications to Oracle Database 12c O R A C L E W H I T E P A P E R D E C E M B E R 2 0 1 4 1. Introduction Oracle provides products that reduce the time, risk,

More information

Embedded SQL. Unit 5.1. Dr Gordon Russell, Copyright @ Napier University

Embedded SQL. Unit 5.1. Dr Gordon Russell, Copyright @ Napier University Embedded SQL Unit 5.1 Unit 5.1 - Embedde SQL - V2.0 1 Interactive SQL So far in the module we have considered only the SQL queries which you can type in at the SQL prompt. We refer to this as interactive

More information

ERserver. DB2 Universal Database for iseries SQL Programming with Host Languages. iseries. Version 5

ERserver. DB2 Universal Database for iseries SQL Programming with Host Languages. iseries. Version 5 ERserver iseries DB2 Universal Database for iseries SQL Programming with Host Languages Version 5 ERserver iseries DB2 Universal Database for iseries SQL Programming with Host Languages Version 5 Copyright

More information

ICE for Eclipse. Release 9.0.1

ICE for Eclipse. Release 9.0.1 ICE for Eclipse Release 9.0.1 Disclaimer This document is for informational purposes only and is subject to change without notice. This document and its contents, including the viewpoints, dates and functional

More information

Using SQL Queries in Crystal Reports

Using SQL Queries in Crystal Reports PPENDIX Using SQL Queries in Crystal Reports In this appendix Review of SQL Commands PDF 924 n Introduction to SQL PDF 924 PDF 924 ppendix Using SQL Queries in Crystal Reports The SQL Commands feature

More information

What's New in ADP Reporting?

What's New in ADP Reporting? What's New in ADP Reporting? Welcome to the latest version of ADP Reporting! This release includes the following new features and enhancements. Use the links below to learn more about each one. What's

More information

An Oracle White Paper June 2013. Migrating Applications and Databases with Oracle Database 12c

An Oracle White Paper June 2013. Migrating Applications and Databases with Oracle Database 12c An Oracle White Paper June 2013 Migrating Applications and Databases with Oracle Database 12c Disclaimer The following is intended to outline our general product direction. It is intended for information

More information

Using SQL Server Management Studio

Using SQL Server Management Studio Using SQL Server Management Studio Microsoft SQL Server Management Studio 2005 is a graphical tool for database designer or programmer. With SQL Server Management Studio 2005 you can: Create databases

More information

Performance Implications of Various Cursor Types in Microsoft SQL Server. By: Edward Whalen Performance Tuning Corporation

Performance Implications of Various Cursor Types in Microsoft SQL Server. By: Edward Whalen Performance Tuning Corporation Performance Implications of Various Cursor Types in Microsoft SQL Server By: Edward Whalen Performance Tuning Corporation INTRODUCTION There are a number of different types of cursors that can be created

More information

Name: Class: Date: 9. The compiler ignores all comments they are there strictly for the convenience of anyone reading the program.

Name: Class: Date: 9. The compiler ignores all comments they are there strictly for the convenience of anyone reading the program. Name: Class: Date: Exam #1 - Prep True/False Indicate whether the statement is true or false. 1. Programming is the process of writing a computer program in a language that the computer can respond to

More information

Sybase Adaptive Server Enterprise

Sybase Adaptive Server Enterprise technical white paper Sybase Adaptive Server Enterprise Data Transfer Utility www.sybase.com Contents 1. Executive Summary..........................................................................................................

More information

Bank Reconciliation Import BR-1005

Bank Reconciliation Import BR-1005 Bank Reconciliation Import BR-1005 Overview This Extended Solution to the standard MAS 90 MAS 200 Bank Reconciliation module imports a text file and validates cleared checks against the Bank Reconciliation

More information

How To Write A File System On A Microsoft Office 2.2.2 (Windows) (Windows 2.3) (For Windows 2) (Minorode) (Orchestra) (Powerpoint) (Xls) (

How To Write A File System On A Microsoft Office 2.2.2 (Windows) (Windows 2.3) (For Windows 2) (Minorode) (Orchestra) (Powerpoint) (Xls) ( Remark Office OMR 8 Supported File Formats User s Guide Addendum Remark Products Group 301 Lindenwood Drive, Suite 100 Malvern, PA 19355-1772 USA www.gravic.com Disclaimer The information contained in

More information

9.1 Supplement for SAS/ACCESS. Microsoft SQL Server. SAS/ACCESS for Relational Databases

9.1 Supplement for SAS/ACCESS. Microsoft SQL Server. SAS/ACCESS for Relational Databases SAS/ACCESS 9.1 Supplement for Microsoft SQL Server SAS/ACCESS for Relational Databases The correct bibliographic citation for this manual is as follows: SAS Institute Inc. 2004. SAS/ACCESS 9.1 Supplement

More information

Dynamics NAV/SQL Server Configuration Recommendations

Dynamics NAV/SQL Server Configuration Recommendations Dynamics NAV/SQL Server Configuration Recommendations This document describes SQL Server configuration recommendations that were gathered from field experience with Microsoft Dynamics NAV and SQL Server.

More information

DBF Chapter. Note to UNIX and OS/390 Users. Import/Export Facility CHAPTER 7

DBF Chapter. Note to UNIX and OS/390 Users. Import/Export Facility CHAPTER 7 97 CHAPTER 7 DBF Chapter Note to UNIX and OS/390 Users 97 Import/Export Facility 97 Understanding DBF Essentials 98 DBF Files 98 DBF File Naming Conventions 99 DBF File Data Types 99 ACCESS Procedure Data

More information

How Strings are Stored. Searching Text. Setting. ANSI_PADDING Setting

How Strings are Stored. Searching Text. Setting. ANSI_PADDING Setting How Strings are Stored Searching Text SET ANSI_PADDING { ON OFF } Controls the way SQL Server stores values shorter than the defined size of the column, and the way the column stores values that have trailing

More information

ADP Workforce Now V3.0

ADP Workforce Now V3.0 ADP Workforce Now V3.0 Manual What s New Checks in and Custom ADP Reporting Grids V12 Instructor Handout Manual Guide V10171180230WFN3 V09171280269ADPR12 2011 2012 ADP, Inc. ADP s Trademarks The ADP Logo

More information

SQL - QUICK GUIDE. Allows users to access data in relational database management systems.

SQL - QUICK GUIDE. Allows users to access data in relational database management systems. http://www.tutorialspoint.com/sql/sql-quick-guide.htm SQL - QUICK GUIDE Copyright tutorialspoint.com What is SQL? SQL is Structured Query Language, which is a computer language for storing, manipulating

More information

Guide to Upsizing from Access to SQL Server

Guide to Upsizing from Access to SQL Server Guide to Upsizing from Access to SQL Server An introduction to the issues involved in upsizing an application from Microsoft Access to SQL Server January 2003 Aztec Computing 1 Why Should I Consider Upsizing

More information

Choosing a Data Model for Your Database

Choosing a Data Model for Your Database In This Chapter This chapter describes several issues that a database administrator (DBA) must understand to effectively plan for a database. It discusses the following topics: Choosing a data model for

More information

Specifications of Paradox for Windows

Specifications of Paradox for Windows Specifications of Paradox for Windows Appendix A 1 Specifications of Paradox for Windows A IN THIS CHAPTER Borland Database Engine (BDE) 000 Paradox Standard Table Specifications 000 Paradox 5 Table Specifications

More information

How To Use The Correlog With The Cpl Powerpoint Powerpoint Cpl.Org Powerpoint.Org (Powerpoint) Powerpoint (Powerplst) And Powerpoint 2 (Powerstation) (Powerpoints) (Operations

How To Use The Correlog With The Cpl Powerpoint Powerpoint Cpl.Org Powerpoint.Org (Powerpoint) Powerpoint (Powerplst) And Powerpoint 2 (Powerstation) (Powerpoints) (Operations orrelog SQL Table Monitor Adapter Users Manual http://www.correlog.com mailto:info@correlog.com CorreLog, SQL Table Monitor Users Manual Copyright 2008-2015, CorreLog, Inc. All rights reserved. No part

More information

Creating Database Tables in Microsoft SQL Server

Creating Database Tables in Microsoft SQL Server Creating Database Tables in Microsoft SQL Server Microsoft SQL Server is a relational database server that stores and retrieves data for multi-user network-based applications. SQL Server databases are

More information

Connect to a SQL Database with Monitouch

Connect to a SQL Database with Monitouch Connect to a SQL Database with Monitouch Monitouch HMI Technical Note TN-MH-0015a Table of Contents 1. Introduction...2 2. Requirements...2 3. Configure the Database...2 4. Configure the ODBC Driver...4

More information

sqlite driver manual

sqlite driver manual sqlite driver manual A libdbi driver using the SQLite embedded database engine Markus Hoenicka mhoenicka@users.sourceforge.net sqlite driver manual: A libdbi driver using the SQLite embedded database engine

More information

SQL is capable in manipulating relational data SQL is not good for many other tasks

SQL is capable in manipulating relational data SQL is not good for many other tasks Embedded SQL SQL Is Not for All SQL is capable in manipulating relational data SQL is not good for many other tasks Control structures: loops, conditional branches, Advanced data structures: trees, arrays,

More information

Toad for Data Analysts, Tips n Tricks

Toad for Data Analysts, Tips n Tricks Toad for Data Analysts, Tips n Tricks or Things Everyone Should Know about TDA Just what is Toad for Data Analysts? Toad is a brand at Quest. We have several tools that have been built explicitly for developers

More information

Thoroughbred Basic TM ODBC Client Capability Customization Supplement

Thoroughbred Basic TM ODBC Client Capability Customization Supplement Thoroughbred Basic TM ODBC Client Capability Customization Supplement Version 8.8.0 46 Vreeland Drive, Suite 1 Skillman, NJ 08558-2638 Telephone: 732-560-1377 Outside NJ 800-524-0430 Fax: 732-560-1594

More information

Revolutionized DB2 Test Data Management

Revolutionized DB2 Test Data Management Revolutionized DB2 Test Data Management TestBase's Patented Slice Feature Provides a Fresh Solution to an Old Set of DB2 Application Testing Problems The challenge in creating realistic representative

More information

A Brief Introduction to MySQL

A Brief Introduction to MySQL A Brief Introduction to MySQL by Derek Schuurman Introduction to Databases A database is a structured collection of logically related data. One common type of database is the relational database, a term

More information

Frequently Asked Questions Sage Pastel Intelligence Reporting

Frequently Asked Questions Sage Pastel Intelligence Reporting Frequently Asked Questions Sage Pastel Intelligence Reporting The software described in this document is protected by copyright, and may not be copied on any medium except as specifically authorized in

More information

Contents CHAPTER 1 IMail Utilities

Contents CHAPTER 1 IMail Utilities Contents CHAPTER 1 IMail Utilities CHAPTER 2 Collaboration Duplicate Entry Remover... 2 CHAPTER 3 Disk Space Usage Reporter... 3 CHAPTER 4 Forward Finder... 4 CHAPTER 5 IMAP Copy Utility... 5 About IMAP

More information

MS Access: Advanced Tables and Queries. Lesson Notes Author: Pamela Schmidt

MS Access: Advanced Tables and Queries. Lesson Notes Author: Pamela Schmidt Lesson Notes Author: Pamela Schmidt Tables Text Fields (Default) Text or combinations of text and numbers, as well as numbers that don't require calculations, such as phone numbers. or the length set by

More information

InterBase 6. Embedded SQL Guide. Borland/INPRISE. 100 Enterprise Way, Scotts Valley, CA 95066 http://www.interbase.com

InterBase 6. Embedded SQL Guide. Borland/INPRISE. 100 Enterprise Way, Scotts Valley, CA 95066 http://www.interbase.com InterBase 6 Embedded SQL Guide Borland/INPRISE 100 Enterprise Way, Scotts Valley, CA 95066 http://www.interbase.com Inprise/Borland may have patents and/or pending patent applications covering subject

More information

Physical Design. Meeting the needs of the users is the gold standard against which we measure our success in creating a database.

Physical Design. Meeting the needs of the users is the gold standard against which we measure our success in creating a database. Physical Design Physical Database Design (Defined): Process of producing a description of the implementation of the database on secondary storage; it describes the base relations, file organizations, and

More information

Avid Technology, Inc. inews NRCS. inews FTP Server Protocol Specification. Version 2.8 12 January 2006

Avid Technology, Inc. inews NRCS. inews FTP Server Protocol Specification. Version 2.8 12 January 2006 Avid Technology, Inc. inews NRCS inews FTP Server Protocol Specification Version 2.8 12 January 2006 NOTICE: Avid Technology, Inc. accepts no responsibility for the accuracy of the information contained

More information

Basic Import Utility User Guide

Basic Import Utility User Guide 2013 Basic Import Utility User Guide PERPETUAL INNOVATION Lenel OnGuard 2013 Basic Import Utility User Guide, product version 6.6 This guide is item number DOC-101, revision 3.003, July 2012 Copyright

More information

MS SQL Performance (Tuning) Best Practices:

MS SQL Performance (Tuning) Best Practices: MS SQL Performance (Tuning) Best Practices: 1. Don t share the SQL server hardware with other services If other workloads are running on the same server where SQL Server is running, memory and other hardware

More information

Configuration and Coding Techniques. Performance and Migration Progress DataServer for Microsoft SQL Server

Configuration and Coding Techniques. Performance and Migration Progress DataServer for Microsoft SQL Server Configuration and Coding Techniques Performance and Migration Progress DataServer for Microsoft SQL Server Introduction...3 System Configuration...4 Hardware Configuration... 4 Network Configuration...

More information

UNISYS. Business Information Server. MRI Administration and User s Guide. Printed in USA May 2004 7846 0391 013

UNISYS. Business Information Server. MRI Administration and User s Guide. Printed in USA May 2004 7846 0391 013 Business Information Server MRI Administration and User s Guide UNISYS 2004 Unisys Corporation. All rights reserved. Printed in USA May 2004 7846 0391 013 NO WARRANTIES OF ANY NATURE ARE EXTENDED BY THIS

More information

v4.8 Getting Started Guide: Using SpatialWare with MapInfo Professional for Microsoft SQL Server

v4.8 Getting Started Guide: Using SpatialWare with MapInfo Professional for Microsoft SQL Server v4.8 Getting Started Guide: Using SpatialWare with MapInfo Professional for Microsoft SQL Server Information in this document is subject to change without notice and does not represent a commitment on

More information

Database Programming with PL/SQL: Learning Objectives

Database Programming with PL/SQL: Learning Objectives Database Programming with PL/SQL: Learning Objectives This course covers PL/SQL, a procedural language extension to SQL. Through an innovative project-based approach, students learn procedural logic constructs

More information

Teradata SQL Assistant Version 13.0 (.Net) Enhancements and Differences. Mike Dempsey

Teradata SQL Assistant Version 13.0 (.Net) Enhancements and Differences. Mike Dempsey Teradata SQL Assistant Version 13.0 (.Net) Enhancements and Differences by Mike Dempsey Overview SQL Assistant 13.0 is an entirely new application that has been re-designed from the ground up. It has been

More information

User's Guide. Using RFDBManager. For 433 MHz / 2.4 GHz RF. Version 1.23.01

User's Guide. Using RFDBManager. For 433 MHz / 2.4 GHz RF. Version 1.23.01 User's Guide Using RFDBManager For 433 MHz / 2.4 GHz RF Version 1.23.01 Copyright Notice Copyright 2005 Syntech Information Company Limited. All rights reserved The software contains proprietary information

More information

Embedded SQL programming

Embedded SQL programming Embedded SQL programming http://www-136.ibm.com/developerworks/db2 Table of contents If you're viewing this document online, you can click any of the topics below to link directly to that section. 1. Before

More information

How to Connect to CDL SQL Server Database via Internet

How to Connect to CDL SQL Server Database via Internet How to Connect to CDL SQL Server Database via Internet There are several different methods available for connecting to the CDL SQL Server. Microsoft Windows has built in tools that are very easy to implement

More information

INFORMIX - Data Director for Visual Basic. Version 3.5

INFORMIX - Data Director for Visual Basic. Version 3.5 INFORMIX - Data Director for Visual Basic Version 3.5 Installing and Configuring Data Director This document explains how to install INFORMIX-Data Director for Visual Basic, Version 3.5, in your Microsoft

More information

Database Migration from MySQL to RDM Server

Database Migration from MySQL to RDM Server MIGRATION GUIDE Database Migration from MySQL to RDM Server A Birdstep Technology, Inc. Raima Embedded Database Division Migration Guide Published: May, 2009 Author: Daigoro F. Toyama Senior Software Engineer

More information

Chapter 2 The Data Table. Chapter Table of Contents

Chapter 2 The Data Table. Chapter Table of Contents Chapter 2 The Data Table Chapter Table of Contents Introduction... 21 Bringing in Data... 22 OpeningLocalFiles... 22 OpeningSASFiles... 27 UsingtheQueryWindow... 28 Modifying Tables... 31 Viewing and Editing

More information

Webapps Vulnerability Report

Webapps Vulnerability Report Tuesday, May 1, 2012 Webapps Vulnerability Report Introduction This report provides detailed information of every vulnerability that was found and successfully exploited by CORE Impact Professional during

More information

DataLogger. 2015 Kepware, Inc.

DataLogger. 2015 Kepware, Inc. 2015 Kepware, Inc. 2 DataLogger Table of Contents Table of Contents 2 DataLogger Help 4 Overview 4 Initial Setup Considerations 5 System Requirements 5 External Dependencies 5 SQL Authentication 6 Windows

More information

Jet Data Manager 2012 User Guide

Jet Data Manager 2012 User Guide Jet Data Manager 2012 User Guide Welcome This documentation provides descriptions of the concepts and features of the Jet Data Manager and how to use with them. With the Jet Data Manager you can transform

More information

Data Integrator. Pervasive Software, Inc. 12365-B Riata Trace Parkway Austin, Texas 78727 USA

Data Integrator. Pervasive Software, Inc. 12365-B Riata Trace Parkway Austin, Texas 78727 USA Data Integrator Event Management Guide Pervasive Software, Inc. 12365-B Riata Trace Parkway Austin, Texas 78727 USA Telephone: 888.296.5969 or 512.231.6000 Fax: 512.231.6010 Email: info@pervasiveintegration.com

More information

MyOra 3.0. User Guide. SQL Tool for Oracle. Jayam Systems, LLC

MyOra 3.0. User Guide. SQL Tool for Oracle. Jayam Systems, LLC MyOra 3.0 SQL Tool for Oracle User Guide Jayam Systems, LLC Contents Features... 4 Connecting to the Database... 5 Login... 5 Login History... 6 Connection Indicator... 6 Closing the Connection... 7 SQL

More information

SQL Server An Overview

SQL Server An Overview SQL Server An Overview SQL Server Microsoft SQL Server is designed to work effectively in a number of environments: As a two-tier or multi-tier client/server database system As a desktop database system

More information

Data Mining Commonly Used SQL Statements

Data Mining Commonly Used SQL Statements Description: Guide to some commonly used SQL OS Requirement: Win 2000 Pro/Server, XP Pro, Server 2003 General Requirement: You will need a Relational Database (SQL server, MSDE, Access, Oracle, etc), Installation

More information

MapInfo SpatialWare Version 4.6 for Microsoft SQL Server

MapInfo SpatialWare Version 4.6 for Microsoft SQL Server Release Notes MapInfo SpatialWare Version 4.6 for Microsoft SQL Server These release notes contain information about the SpatialWare v. 4.6 release. These notes are specific to the Microsoft SQL Server

More information

Dell InTrust 11.0. Preparing for Auditing Microsoft SQL Server

Dell InTrust 11.0. Preparing for Auditing Microsoft SQL Server 2014 Dell Inc. ALL RIGHTS RESERVED. This guide contains proprietary information protected by copyright. The software described in this guide is furnished under a software license or nondisclosure agreement.

More information

Using Temporary Tables to Improve Performance for SQL Data Services

Using Temporary Tables to Improve Performance for SQL Data Services Using Temporary Tables to Improve Performance for SQL Data Services 2014- Informatica Corporation. No part of this document may be reproduced or transmitted in any form, by any means (electronic, photocopying,

More information

Oracle Forms Services Secure Web.Show_Document() calls to Oracle Reports

Oracle Forms Services Secure Web.Show_Document() calls to Oracle Reports Oracle Forms Services Secure Web.Show_Document() calls to Oracle Reports $Q2UDFOH7HFKQLFDO:KLWHSDSHU )HEUXDU\ Secure Web.Show_Document() calls to Oracle Reports Introduction...3 Using Web.Show_Document

More information

Prescribed Specialised Services 2015/16 Shadow Monitoring Tool

Prescribed Specialised Services 2015/16 Shadow Monitoring Tool Prescribed Specialised Services 2015/16 Shadow Monitoring Tool Published May 2015 We are the trusted national provider of high-quality information, data and IT systems for health and social care. www.hscic.gov.uk

More information

Testing Web Applications for SQL Injection Sam Shober SamShober@Hotmail.com

Testing Web Applications for SQL Injection Sam Shober SamShober@Hotmail.com Testing Web Applications for SQL Injection Sam Shober SamShober@Hotmail.com Abstract: This paper discusses the SQL injection vulnerability, its impact on web applications, methods for pre-deployment and

More information

Database migration using Wizard, Studio and Commander. Based on migration from Oracle to PostgreSQL (Greenplum)

Database migration using Wizard, Studio and Commander. Based on migration from Oracle to PostgreSQL (Greenplum) Step by step guide. Database migration using Wizard, Studio and Commander. Based on migration from Oracle to PostgreSQL (Greenplum) Version 1.0 Copyright 1999-2012 Ispirer Systems Ltd. Ispirer and SQLWays

More information

XMailer Reference Guide

XMailer Reference Guide XMailer Reference Guide Version 7.00 Wizcon Systems SAS Information in this document is subject to change without notice. SyTech assumes no responsibility for any errors or omissions that may be in this

More information

Consulting. Personal Attention, Expert Assistance

Consulting. Personal Attention, Expert Assistance Consulting Personal Attention, Expert Assistance 1 Writing Better SQL Making your scripts more: Readable, Portable, & Easily Changed 2006 Alpha-G Consulting, LLC All rights reserved. 2 Before Spending

More information

PaperClip Audit System Installation Guide

PaperClip Audit System Installation Guide Installation Guide Version 1.0 Copyright Information Copyright 2005, PaperClip Software, Inc. The PaperClip32 product name and PaperClip Logo are registered trademarks of PaperClip Software, Inc. All brand

More information

Novell Identity Manager

Novell Identity Manager AUTHORIZED DOCUMENTATION Manual Task Service Driver Implementation Guide Novell Identity Manager 4.0.1 April 15, 2011 www.novell.com Legal Notices Novell, Inc. makes no representations or warranties with

More information

Copyright. Copyright. Arbutus Software Inc. 270-6450 Roberts Street Burnaby, British Columbia Canada V5G 4E1

Copyright. Copyright. Arbutus Software Inc. 270-6450 Roberts Street Burnaby, British Columbia Canada V5G 4E1 i Copyright Copyright 2015 Arbutus Software Inc. All rights reserved. This manual may contain dated information. Use of these materials is based on the understanding that this manual may not contain all

More information

MOC 20461C: Querying Microsoft SQL Server. Course Overview

MOC 20461C: Querying Microsoft SQL Server. Course Overview MOC 20461C: Querying Microsoft SQL Server Course Overview This course provides students with the knowledge and skills to query Microsoft SQL Server. Students will learn about T-SQL querying, SQL Server

More information

Matisse Installation Guide for MS Windows. 10th Edition

Matisse Installation Guide for MS Windows. 10th Edition Matisse Installation Guide for MS Windows 10th Edition April 2004 Matisse Installation Guide for MS Windows Copyright 1992 2004 Matisse Software Inc. All Rights Reserved. Matisse Software Inc. 433 Airport

More information

Microsoft Access Lesson 5: Structured Query Language (SQL)

Microsoft Access Lesson 5: Structured Query Language (SQL) Microsoft Access Lesson 5: Structured Query Language (SQL) Structured Query Language (pronounced S.Q.L. or sequel ) is a standard computing language for retrieving information from and manipulating databases.

More information

Data Access Guide. BusinessObjects 11. Windows and UNIX

Data Access Guide. BusinessObjects 11. Windows and UNIX Data Access Guide BusinessObjects 11 Windows and UNIX 1 Copyright Trademarks Use restrictions Patents Copyright 2004 Business Objects. All rights reserved. If you find any problems with this documentation,

More information

SAS 9.3 Drivers for ODBC

SAS 9.3 Drivers for ODBC SAS 9.3 Drivers for ODBC User s Guide Second Edition SAS Documentation The correct bibliographic citation for this manual is as follows: SAS Institute Inc. 2011. SAS 9.3 Drivers for ODBC: User s Guide,

More information

Opening a Database in Avery DesignPro 4.0 using ODBC

Opening a Database in Avery DesignPro 4.0 using ODBC Opening a Database in Avery DesignPro 4.0 using ODBC What is ODBC? Why should you Open an External Database using ODBC? How to Open and Link a Database to a DesignPro 4.0 Project using ODBC Troubleshooting

More information

SQL/PSM. Outline. Database Application Development Oracle PL/SQL. Why Stored Procedures? Stored Procedures PL/SQL. Embedded SQL Dynamic SQL

SQL/PSM. Outline. Database Application Development Oracle PL/SQL. Why Stored Procedures? Stored Procedures PL/SQL. Embedded SQL Dynamic SQL Outline Embedded SQL Dynamic SQL Many host languages: C, Cobol, Pascal, etc. JDBC (API) SQLJ (Embedded) Java Database Application Development Oracle PL/SQL Stored procedures CS430/630 Lecture 15 Slides

More information

DataFlex Connectivity Kit For ODBC User's Guide. Version 2.2

DataFlex Connectivity Kit For ODBC User's Guide. Version 2.2 DataFlex Connectivity Kit For ODBC User's Guide Version 2.2 Newsgroup: news://dataaccess.com/dac-public-newsgroups.connectivity- Kit_Support Internet Address (URL): http://www.dataaccess.com FTP Site:

More information

HansaWorld SQL Training Material

HansaWorld SQL Training Material HansaWorld University HansaWorld SQL Training Material HansaWorld Ltd. January 2008 Version 5.4 TABLE OF CONTENTS: TABLE OF CONTENTS:...2 OBJECTIVES...4 INTRODUCTION...5 Relational Databases...5 Definition...5

More information

FileMaker 14. ODBC and JDBC Guide

FileMaker 14. ODBC and JDBC Guide FileMaker 14 ODBC and JDBC Guide 2004 2015 FileMaker, Inc. All Rights Reserved. FileMaker, Inc. 5201 Patrick Henry Drive Santa Clara, California 95054 FileMaker and FileMaker Go are trademarks of FileMaker,

More information

The full setup includes the server itself, the server control panel, Firebird Database Server, and three sample applications with source code.

The full setup includes the server itself, the server control panel, Firebird Database Server, and three sample applications with source code. Content Introduction... 2 Data Access Server Control Panel... 2 Running the Sample Client Applications... 4 Sample Applications Code... 7 Server Side Objects... 8 Sample Usage of Server Side Objects...

More information

Oracle Database: SQL and PL/SQL Fundamentals NEW

Oracle Database: SQL and PL/SQL Fundamentals NEW Oracle University Contact Us: 001-855-844-3881 & 001-800-514-06-97 Oracle Database: SQL and PL/SQL Fundamentals NEW Duration: 5 Days What you will learn This Oracle Database: SQL and PL/SQL Fundamentals

More information

Using the Caché SQL Gateway

Using the Caché SQL Gateway Using the Caché SQL Gateway Version 2007.1 04 June 2007 InterSystems Corporation 1 Memorial Drive Cambridge MA 02142 www.intersystems.com Using the Caché SQL Gateway Caché Version 2007.1 04 June 2007 Copyright

More information

USING FILERELICATIONPRO TO REPLICATE SQL SERVER

USING FILERELICATIONPRO TO REPLICATE SQL SERVER USING FILERELICATIONPRO TO REPLICATE SQL SERVER Abstract FileReplicationPro (FRP) can be used to backup your SQL Server databases. The replication procedure is not as straight forward as replicating other

More information