Top Banner
KB SQL Getting Started Guide
131

KBS Getting Started Guide€¦  · Web viewOutput reports to the screen, Windows printers, host devices, or Microsoft Word. For more information on QRE Professional, please refer

Oct 09, 2018

Download

Documents

ledien
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: KBS Getting Started Guide€¦  · Web viewOutput reports to the screen, Windows printers, host devices, or Microsoft Word. For more information on QRE Professional, please refer

KB SQL

Getting Started Guide

Page 2: KBS Getting Started Guide€¦  · Web viewOutput reports to the screen, Windows printers, host devices, or Microsoft Word. For more information on QRE Professional, please refer

Table of ContentsIntroduction............................................................................................................1Audience................................................................................................................3Software Components Overview...........................................................................7

KB_SQL Architecture.........................................................................................7Documentation...................................................................................................8

Documentation Download Instructions.........................................................11KB_SQL Server...............................................................................................12KB_SQL ODBC Driver.....................................................................................12QRE Professional.............................................................................................13QRE Services..................................................................................................14

Installing and Upgrading KB_SQL Server............................................................15KB_SQL Requirements....................................................................................15

M Type Specific Issues.................................................................................16Installing the Server Software..........................................................................20

Pre-Installation Steps for Previous Installs...................................................20Installation Procedures.................................................................................22

Post-Installation................................................................................................26Customizing the Site Definition.....................................................................26Defining a Printer..........................................................................................27Defining Base Routines and Schemas.........................................................27Adding Security............................................................................................28Building Your Data Dictionary.......................................................................28Allowing Client Connections.........................................................................29

Upgrading the Server Software........................................................................29Upgrading the Server Software from Previous Versions...............................29Upgrading from Versions Prior to 3.6...........................................................29Upgrading from Version 3.6 or Higher..........................................................30

View and Updating License Information...........................................................31Viewing License Information.........................................................................31Changing the License Key............................................................................31Changing the M Type...................................................................................32

Starting KB_SQL..............................................................................................32Auto Start by Logging into KB_SQL.............................................................35Manually Start Using a Command................................................................35Manually Start Using Menu Option...............................................................36Starting the Server in a VMS Cluster............................................................36

Stopping the Server.........................................................................................38Configuring the Server Information..................................................................39

Definition of each fields on the SITE EDIT screen........................................39Customizing the KB_SQL Server Install Process................................................45

SQLSCR.USR..................................................................................................45Customization Types........................................................................................46

1 – KBS Routine Import................................................................................472 – KBS Global Import..................................................................................473 – Routine Execute.....................................................................................47

iii

Page 3: KBS Getting Started Guide€¦  · Web viewOutput reports to the screen, Windows printers, host devices, or Microsoft Word. For more information on QRE Professional, please refer

Getting Started Guide

4 – Prompt....................................................................................................485 – Import Table Definitions..........................................................................486 – Import Query Definitions.........................................................................497 – Import Device Type Definitions...............................................................498 – Execute M Code.....................................................................................499 – Import Function Definitions.....................................................................5010 – Import Pseudo Column Definitions.......................................................5011 – Import Table Statistics..........................................................................5112 – Global Import from XFER Export File...................................................5113 – Import Routine Data.............................................................................52

Installing and Configuring the KB_SQL ODBC Driver..........................................53Before You Begin.............................................................................................53ODBC Driver Installation..................................................................................54Creating KB_SQL ODBC Data Sources...........................................................59Test ODBC Data Source..................................................................................63

Installing QRE Professional.................................................................................65QRE Professional Requirements.....................................................................65

File Summary......................................................................................................67KB_SQL Server Installer File Summary...........................................................67

Getting Technical Support...................................................................................69The Online Knowledge Base............................................................................69

Logging Into the Online Knowledge Base.....................................................70Searching the Online Knowledge Base........................................................72Submitting Questions to KBS Support..........................................................74Reviewing and Updating Incidents Submitted to KBS Support.....................77

Education/Training...........................................................................................82Ordering Software................................................................................................83Index....................................................................................................................86

Page 4: KBS Getting Started Guide€¦  · Web viewOutput reports to the screen, Windows printers, host devices, or Microsoft Word. For more information on QRE Professional, please refer

iv

Page 5: KBS Getting Started Guide€¦  · Web viewOutput reports to the screen, Windows printers, host devices, or Microsoft Word. For more information on QRE Professional, please refer

Getting Started Guide Page 1 of 91

IntroductionThe Getting Started Guide provides information about the KB_SQL product components, installation and upgrade procedures, installation customization, and configuration of the KB_SQL Server, KB_SQL ODBC Driver, and QRE Professional.

In addition, the Getting Started Guide offers guidelines for distributing the software, getting technical support from Knowledge Based Systems (KBS), and ordering additional licenses.

Page 6: KBS Getting Started Guide€¦  · Web viewOutput reports to the screen, Windows printers, host devices, or Microsoft Word. For more information on QRE Professional, please refer
Page 7: KBS Getting Started Guide€¦  · Web viewOutput reports to the screen, Windows printers, host devices, or Microsoft Word. For more information on QRE Professional, please refer

Getting Started Guide Page 3 of 91 5/12/23

AudienceThis manual is intended for Knowledge Based Systems’ Solutions Providers. The various sections are targeted at different individuals as noted below:

Software Components

This section is targeted at the database administrator (DBA) or users interested in obtaining a description of the pieces of the software.

Installing/Upgrading KB_SQL Server, Installing the KB_SQL ODBC Driver, Configuring the KB_SQL ODBC Server, Installing and Configuring QRE, Customizing the Software Install Process, Distributing Software

These sections are intended for the DBA or others responsible for the installation, configuration, or distribution of KB_SQL.

Getting Technical Support

This section is targeted towards KB_SQL DBAs, users, and programmers responsible for the support of KB_SQL.

Ordering Software

This section is targeted at individuals responsible for purchasing KB_SQL.

Page 8: KBS Getting Started Guide€¦  · Web viewOutput reports to the screen, Windows printers, host devices, or Microsoft Word. For more information on QRE Professional, please refer
Page 9: KBS Getting Started Guide€¦  · Web viewOutput reports to the screen, Windows printers, host devices, or Microsoft Word. For more information on QRE Professional, please refer

Getting Started Guide Page 5 of 91

© 1988-2018 by Knowledge Based Systems, Inc. Printed in the United States of America.

No part of this manual may be reproduced in any form or by any means (including electronic storage and retrieval or translation into a foreign language) without prior agreement and written consent from KB Systems, Inc., as governed by United States and international copyright laws.

The information contained in this document is subject to change without notice. KB Systems, Inc., does not warrant that this document is free of errors. If you find any problems in the documentation, please report them to us in writing.

Knowledge Based Systems, Inc.43053 Midvale CourtAshburn, Virginia 20147

KB_SQL is a registered trademark of Knowledge Based Systems, Inc.

MUMPS is a registered trademark of the Massachusetts General Hospital.

All other trademarks or registered trademarks are properties of their respective companies.

Page 10: KBS Getting Started Guide€¦  · Web viewOutput reports to the screen, Windows printers, host devices, or Microsoft Word. For more information on QRE Professional, please refer
Page 11: KBS Getting Started Guide€¦  · Web viewOutput reports to the screen, Windows printers, host devices, or Microsoft Word. For more information on QRE Professional, please refer

Getting Started Guide Page 7 of 91

Software Components OverviewThe KB_SQL Software consists of five separate components:

Documentation KB_SQL Server KB_SQL ODBC Driver QRE Professional

KB_SQL Architecture

Page 12: KBS Getting Started Guide€¦  · Web viewOutput reports to the screen, Windows printers, host devices, or Microsoft Word. For more information on QRE Professional, please refer

Getting Started Guide

Getting_Started_Guide.doc Page 8 of 91

Documentation

KBS strongly recommends downloading and reviewing the documentation before installing other KB_SQL components.

KB_SQL documentation is distributed through the online knowledge base at support website of Knowledge Based Systems.

Document Audience DescriptionData Dictionary Guide

Technical resource responsible for the overall management of the KB_SQL system and who is familiar with M, the relational database model, and SQL.

The KB_SQL Data Dictionary Guide explains relational tables and the process of mapping M global to a data dictionary.KB_SQL requires the data dictionary to retrieve data from your M database. This guide also provides information about a technology used to update M global and about an alternative mapping process for these global.

DBA (Database Administrator’s) Guide

Database administrator of KB_SQL who is responsible for the smooth, ongoing operation of the system. Experienced users and programmers will find the information in this guide helpful in the basic implementation of the system and for integrating the system with existing applications. Familiarity with M, the relational database model, and SQL is required.

The KB_SQL Database Administrator’s Guide contains information about maintenance procedures for KB_SQL. This document is designed to help the database administrator (DBA) use the KB_SQL procedures effectively to ensure good performance and consistent operation of the system.

EZQ Reference Guide

All users of the EZQ Editor interested in

The KB_SQL EZQ Reference Guide provides a

Page 13: KBS Getting Started Guide€¦  · Web viewOutput reports to the screen, Windows printers, host devices, or Microsoft Word. For more information on QRE Professional, please refer

Getting_Started_Guide.doc Page 9 of 91

Software Components Overview

Document Audience Descriptiongenerating reports in a customized format.

comprehensive understanding of the EZQ Editor’s report design process. It also provides a tutorial that introduces you to the EZQ Editor and guides you through the creation of four reports.Each report uses one or more basic features of the editor.The examples in this guide provide a foundation that enables you to create more comprehensive reports with your data. The reference section contains detailed information about the features of the EZQ Editor.

SQL Reference Guide

All users of the SQL Editor wanting to control database information.

The KB_SQL SQL Reference Guide explains how to use the SQL Editor to select and control information in your database. A tutorial is provided to give you hands-on experience. Refer to the KB_SQL Syntax Guide for a listing of KB_SQL syntax, usage rules, and examples.

Syntax Guide All users familiar with the basics of SQL and who want to use SQL to access data from the database systems defined in the KB_SQL Data Dictionary.

The KB_SQL Syntax Guide is an alphabetical listing of KB_SQL syntax, usage rules, and examples as they apply to the KB_SQL Editor and KB_SQL API. To use KB_SQLwith the SQL Editor, refer to the KB_SQL SQL Reference Guide.

KB_SQL ODBCDriver Help

The KB_SQL ODBCDriver Help file is intended for the DBA and others responsible for the installation and support of KB_SQL.

The KB_SQL ODBC Driver Help file describes the ODBC solution in the context of the KB_SQL Server product provided by Knowledge Based Systems, Inc. It contains the following sections: Features, Understanding ODBC, Driver Installation and Setup, Server

Page 14: KBS Getting Started Guide€¦  · Web viewOutput reports to the screen, Windows printers, host devices, or Microsoft Word. For more information on QRE Professional, please refer

Getting Started Guide

Getting_Started_Guide Page 10 of 91 10/25/2013

Document Audience Descriptionand Network Configuration, Simulating ODBC with QUICK^SQL, Managing ODBC Data Sources, Windows Applications, and Programming Considerations.

KB_SQLRelease Notes

All users interested in information about product changes, problem resolutions, and known problems.

The Version 4.3 Release Notes provides information about the product's new features, fixes, and known problems for KBS' Solutions Providers and direct end-users.

QREProfessional Usage Guide

The QRE Professional Usage Guide is targeted towards KB_SQL Query Developers and Database Administrators. An intermediate knowledge of KB_SQL is assumed. For an introduction to KB_SQL, KBSrecommends theKB_SQL SQLReference Guide.

The QRE Professional Usage Guide includes an overview of QRE Professional (capabilities, requirements, considerations, elements of QRE Professional User Interface), instructions for installing and configuring the software, details on running queries, guidance on creating and editing queries, and information regarding the offline options.

QRE Services Programmer’s Reference

The QRE Services Programmer’s Reference is targeted towards experienced Windows Client programmers or Web programmers.

The QRE Services Programmer’s References assumes the familiarity with KB_SQL, familiarity with a COM-based programming language and Visual Basic. Note it will not cover Visual Basic coding tutorials (although examples are written in Visual Basic) and SQL syntax. The QRE Services Programmer’s Reference includes:

A description of each method

Details about the arguments (data type, length, purpose)

Details about the return

Page 15: KBS Getting Started Guide€¦  · Web viewOutput reports to the screen, Windows printers, host devices, or Microsoft Word. For more information on QRE Professional, please refer

Software Components Overview

Getting_Started_Guide.doc Page 11 of 91

Document Audience Descriptionvalue of the (data type, contents)

Example code (in VB) Usage Notes Related methods

Documentation Download Instructions

To download the documentation:

1. Go to http://www.knowledgebasedsys.com/support.

2. Select the My Knowledge Base tab, which will prompt you for login information.

3. Enter your user id and password. (If you do not have an account to the online knowledge base, please contact KBS at [email protected] to request an account.)

4. Once you are logged in, select the Answers tab.

5. Select Documentation from the Categories drop down list.

6. Click the Search button. The available documentation for download will display.

Page 16: KBS Getting Started Guide€¦  · Web viewOutput reports to the screen, Windows printers, host devices, or Microsoft Word. For more information on QRE Professional, please refer

Getting Started Guide

Getting_Started_Guide Page 12 of 91 10/25/2013

KB_SQL Server

KB_SQL integrates SQL and M, two ANSI standard languages, to provide state- of-the-art access to the information that drives your organization. KB_SQL enables you to retrieve information from your existing M globals while remaining completely independent of the M implementation. The DBA procedures that accompany KB_SQL let you map your information into the KB_SQL Data Dictionary, apply security to tables and queries, and define terminals and printers for use by the system.

KB_SQL ODBC Driver

ODBC (Open Database Connectivity) is a standard interface developed by Microsoft for accessing data from different kinds of SQL database management systems.

For more information about ODBC, please see the Microsoft documentation available at www.microsoft.com/data.

The KB_SQL ODBC Driver allows you to connect your M database to a world of applications, providing more choices for data access and reporting of your M application data.

For more information about the KB_SQL ODBC Driver, please refer to theKB_SQL ODBC Driver Help.

Page 17: KBS Getting Started Guide€¦  · Web viewOutput reports to the screen, Windows printers, host devices, or Microsoft Word. For more information on QRE Professional, please refer

Software Components Overview

QRE Professional

KB_SQL from Knowledge Based Systems has been the de facto data access and reporting solution for M databases since 1988. Since its introduction, it has progressed from simple report writer to database management system to application development platform. Thousands of users worldwide use KB_SQL, via terminal screen or ODBC application, to retrieve valuable information from their M databases and present it as a formatted report. In 1999, Knowledge Based Systems introduced QRE (Query and Reporting Environment) to serve as a Windows-based companion to the terminal-based SQL Editor. QRE for the first time made it possible for customers to access the power of KB_SQL reporting from a Windows environment.

With QRE Professional, users can: Run existing queries created with SQL Editor, EZQ Editor, or previous

versions of QRE Create and edit KB_SQL queries that can be executed in QRE

Professional or SQL Editor Open multiple queries simultaneously

Getting_Started_Guide.doc Page 13 of 91

Page 18: KBS Getting Started Guide€¦  · Web viewOutput reports to the screen, Windows printers, host devices, or Microsoft Word. For more information on QRE Professional, please refer

Getting Started Guide

Getting_Started_Guide.doc Page 14 of 91

Output reports to the screen, Windows printers, host devices, or Microsoft Word

For more information on QRE Professional, please refer to the KBS QRE Professional Usage Guide.

QRE Services

QRE Services provide a Windows-based programmatic interface to functionality historically provided only by the host-based SQL Editor and EZQ. Examples of some of the features of QRE Services are:

Running a Query Creating a Query Editing a Query Deleting a Query Sending a Query to the Background Queue Running a Query with Prompts

The QRE Services API is provided in a COM/ActiveX DLL that allows it to be used in Visual Basic, Active Server Pages, Visual C++, Delphi, and other programming environments that support COM.

For more information on QRE Services, please refer to the QRE Services Programmer’s Reference.

Page 19: KBS Getting Started Guide€¦  · Web viewOutput reports to the screen, Windows printers, host devices, or Microsoft Word. For more information on QRE Professional, please refer

Installing and Upgrading KB_SQL ServerKB_SQL Requirements

This section is included to help you measure the impact on the operating system and MUMPS environment. Some of the issues raised here are not explained in full detail because they represent a larger issue that is typically in the domain of the system administrator.

MUMPSMUMPS (M) is required to run KB_SQL. The product is written in M, specifically for providing SQL access to M data structures. The vast majority of the product routines are identical and portable across all M types. Implementation-specific code is well isolated for those issues that are not portable across implementations. These functions are typically managed in the routines that are loaded in the first step of the installation process.

Disk SpaceKB_SQL requires disk space for routines, globals, and host files. It takes a minimum of 10mb of disk space to store our product routines and globals. There is a requirement for approximately 10mb of additional space in the host file system space during the installation only. After the installation is complete, the installation files can be removed and the space can be made available.

User Partitions/Stack SizeKB_SQL requires sufficient memory for routine compilation and other CPU intensive procedures. A typical partition used for query development and compilation requires 40-60kb of memory, but might require additional tuning for performance.

Depending on your implementation and the characteristics of queries written at your site, you may need to increase the amount of memory allocated for both string and stack operations. If you encounter errors that are related to insufficient memory, you may have to increase the default values. These values can usually be modified in a startup script or by a startup parameter.

Consult your M system manager guide for more information on memory configuration.

Getting Started Guide Page 15 of 91

Page 20: KBS Getting Started Guide€¦  · Web viewOutput reports to the screen, Windows printers, host devices, or Microsoft Word. For more information on QRE Professional, please refer

Getting Started Guide

Getting_Started_Guide.doc Page 16 of 91

M Type Specific Issues

This section outlines some special considerations that may need to be addressed.

If your operating system platform and the type of M that you use are not listed, you can ignore this section.

In general, Knowledge Based Systems’ technical support can help with the basic configuration of the KB_SQL product on almost all configurations. To ensure the best possible support when contacting Knowledge Based Systems, please have your M implementation documentation available.

KB_SQL supports the following implementations of M

M Type Description

Caché Unless specifically noted, the issues in this section apply to Caché, OpenM, NextGen, and ISM product implementations from InterSystems.

MaxArray SizeInterSystems limits the number of entries in a local array structure. One of the local structures used by the Server API is an array of message elements that can approach the limits specified by InterSystems. The default maximum number of elements used is 1024 for all InterSystems licenses. If<MaxArray> errors occur when using the Server API, please contact KBS technical support for instructions on how to lower this number.

Read RecallThere is a feature in Caché/OpenM that allows for quick recall of previous READ values. It can be quite handy, but can also conflict with the function key oriented interface provided by KB_SQL. Because of the potential conflict, this feature is disabled during a KB_SQL session. This primarily affects the CACHE_TERMINAL and ISM_PC_CONSOLE device types.

CacheLinuxAs of the date this was written, the Linux implementation of Caché does not support the concurrent TCP feature. If using Caché on Linux, load and use the ISM.RTN routine set.

CacheWindowsThe WindowsNT/9x implementations of Caché support the concurrent TCP feature. If using Caché on WindowsNT/9x, load the CACHE.RTN routine set. When configuring the server, only one port will need to be defined.

Page 21: KBS Getting Started Guide€¦  · Web viewOutput reports to the screen, Windows printers, host devices, or Microsoft Word. For more information on QRE Professional, please refer

Getting_Started_Guide.doc Page 17 of 91

Installing and Upgrading KB_SQL Server

KB_SQL supports the following implementations of M

M Type Description

DSM Symbol Table Save Uses Host FileThere are circumstances when KB_SQL attempts to save the current symbol table of a process. On DSM, this is accomplished by opening a host file in the current working directory, writing the symbol table to the file, then reading the contents back. If errors occur, it could be due to file ownership permissions.

Disable Line EditingIf problems occur using the cursor keys on the keyboard, check the status of LineEditing for the terminal. This feature can be turned off at the VMS level as well as within DSM. Note that the newer device drivers from Knowledge Based Systems attempt to turn this feature off as part of the device type initial execute.

VMS ClusteringIf your installation uses VMS clustering, you will need to be careful to only start the Server from the node that is defined as the local host in the ServerAPI network configuration. You will also want to disable the autostart option found on the Configuration/Site Edit/Server Info menu.

Page 22: KBS Getting Started Guide€¦  · Web viewOutput reports to the screen, Windows printers, host devices, or Microsoft Word. For more information on QRE Professional, please refer

Getting Started Guide

Getting_Started_Guide.doc Page 18 of 91

KB_SQL supports the following implementations of M

M Type Description

GT.M Process SettingsEach process running KB_SQL must have the following attribute settings.

StackSize >= 40k

Database SettingsThe database that contains the SQL global must have the following attribute settings.

RecordSize >= 512KeySize >= 128

TCP/IPGreystone provides TCP/IP on all current releases of the GTM product for VMS and Unix. If unsure about TCP/IP support, please verify this information with the GTM provider.

VMS File VersioningIf the installation uses VMS file versioning, KBS recommends disabling the feature on the directory that stores the generated M routine source files. These files can change dramatically based on the source SQL commands.

Lock SpaceThe lock space setting for the segment is crucial for systems running a large number of concurrent connections. On GT.M Linux, we found that with a lock space of 20 pages, we were able to get 158 locks and 78 concurrent connections. Increasing the lock space to 40 doubled both the number of locks and connections that we were able to acquire (i.e. 316 locks, 156 connections). The ratio of lock space to connections on VMS is different than Linux. Setting the lock space to 80 pages resulted in approximately 150 concurrent connections. It may take some testing to find the ideal configuration of lock space. If you have any questions or problems, please contact KBS Technical Support.

HBOM

Page 23: KBS Getting Started Guide€¦  · Web viewOutput reports to the screen, Windows printers, host devices, or Microsoft Word. For more information on QRE Professional, please refer

Installing and Upgrading KB_SQL Server

Getting_Started_Guide.doc Page 19 of 91

KB_SQL supports the following implementations of M

M Type Description

ISM

M21

MSE

MSM MSM-NT and TCP/IPKB_SQL uses an undocumented feature within MSM to accomplish the TCP/IP listen and accept functions required by the Server API. This capability requires MSM-NT v4.3 or greater.

MSM-Unix and TCP/IPMSM-Unix requires a muserver process for each TCP/IP session. If multiple connections cannot be made, verify that a sufficient number of muserver processes have been allocated.

Page 24: KBS Getting Started Guide€¦  · Web viewOutput reports to the screen, Windows printers, host devices, or Microsoft Word. For more information on QRE Professional, please refer

Getting Started Guide

Getting_Started_Guide.doc Page 20 of 91

Installing the Server Software

If this is not a new installation, make sure that the Pre-Installation steps are completed before starting the installation of a new version.

The entire installation takes about one hour to complete. The data dictionary integrity check takes anywhere from 20 minutes to several hours depending on the number of object definitions in the data dictionary.

Note: For information on running the installation as a background process, please see the documentation on AUTO^SQL0LOAD in the Upgrading from Versions Prior to 3.6 section of this guide.

Pre-Installation Steps for Previous Installs

Before beginning the server software installation ensure the following steps have been completed.

The KB_SQL Data Dictionary Integrity Check procedure has been run.For more information on Integrity Check and options, refer them to KB SQL Database Administrator's Guide.

The KB_SQL routines and globals have been backed up. Export the SQL routines and globals together with any other custom routines necessary for your KB_SQL environment.

Avoid mixing SQL routines and globals from different environments.When copying the SQL globals or routines into an "area", it should first be

purged of any existing SQL globals or routines.

All users are logged out of KB_SQL.

Check to make sure that there are no connections to KB_SQL by using the DBA OPTIONS menu and select the UTILITIES option, then the JOB WATCH option.

Page 25: KBS Getting Started Guide€¦  · Web viewOutput reports to the screen, Windows printers, host devices, or Microsoft Word. For more information on QRE Professional, please refer

Installing and Upgrading KB_SQL Server

Getting_Started_Guide.doc Page 21 of 91

There should be a Server-Listener process and the current process you are using to access the Job Watch. If there are any more processes, they must be stopped before starting the upgrade.

To shut down any of the background agent processes, use theSTOP^SQL utility as follows:

>D STOP^SQL

For more information on this utility, refer the KB_SQL Database Administrator's Guide.

To make sure that no new sessions are created, go to the DBA OPTIONS menu and select the Utilities option.

The Select System-Wide Lock menu displays. Select theSYSTEM option.

The Lock Status window displays. Enter Yes in the Locked? Field? To keep all users off the system while the upgrade is being performed.

Page 26: KBS Getting Started Guide€¦  · Web viewOutput reports to the screen, Windows printers, host devices, or Microsoft Word. For more information on QRE Professional, please refer

Getting Started Guide

Getting_Started_Guide.doc Page 22 of 91

Installation Procedures

If KBS SQL Server has previously been installed on your server, go to the pre- installation instructions before starting the installation.

Download the KBS SQL Server zip install file (KBSQL_ANSI_V<Version>_Build_<Build#>.zip) from KBS Knowledge Base.

Where Version is the current version number such as 44Q1. Where Build# is the current build number such as 4819.

Extract the Setup Files into a temporary working directory on your M Server:such as C:\temp for a windows based installation

or /usr1/temp for a UNIX based installation.

The server setup files are extracted from a zip extraction tool such as WinZip or PKUnzip.

The setup files can be deleted after completing all steps of the installation process.

Load the Setup Routines. This step loads the routines necessary to begin the software installation process. We recommend that you use a separate UCI (an area also referred to as namespace or simply area) for KB_SQL. If the KB_SQL routines and globals are loaded into a UCI with other applications, check to ensure that no conflicts will occur. All of the KB_SQL product routine and global names begin with the uppercase characters, SQL. There are no %routines or %globals, and there are no special requirements for your manager’s directory.

If you use a separate location (directory), you must reference your application globals indirectly. Application globals can be on the same machine or in the same network. Global data can be referenced via M Vendor networking (e.g. DDP). Call you M technical support representative if you need more assistance.

The mtype.RTN file contains the KB_SQL install routines. This file is stored in an M vendor-specific routine transfer format. Use the routine import/restore utility provided by the M vendor to load the .RTN file. Refer to the following list for the appropriate utility in your environment. If it is not listed, please contact your KB_SQL technical support representative.

Page 27: KBS Getting Started Guide€¦  · Web viewOutput reports to the screen, Windows printers, host devices, or Microsoft Word. For more information on QRE Professional, please refer

Installing and Upgrading KB_SQL Server

Getting_Started_Guide.doc Page 23 of 91

M Type Utility Filename DescriptionCaché %RI CACHE.RTN InterSystems CachéDSM %RR DSM.RTN InterSystems DSM

GTM %RI GTM.RTN Sanchez Computer Associates GTM

HBOM %RR HBOM.RTN McKesson UK HBOMISM %RI ISM.RTN InterSystems ISMM21 %RR M21.RTN M21MSE %YRR MSE.RTN McKesson MSEMSM %RR MSM.RTN InterSystems MSM

The following example shows using the InterSystems Caché to load the setup routines.

Cache>D ^%RI

Input routines from SequentialDevice: /usr/kbsql/cache/cache.rtn (Sample for Unix)

c:\temp\cache.trn (Sample for Microsoft)

Parameters: "R"=>File written by KB_SQL V4.4 using %RI on yyyy-mm- dd@hh:mm:sswith extension INT and with description:KB_SQL V4.4 Routine Save

( All Select Enter List Quit )

Routine Input Option: All Routines

If a selected routine has the same name as one already on file,shall it replace the one on file? No => YESRecompile? Yes => YesDisplay Syntax Errors? Yes => Yes

^ indicates routines which will replace those now on file.@ indicates routines which have been [re]compiled.- indicates routines which have not been filed.

SQL0BQ.INT@ SQL0CHK.INT@ SQL0DT.INT@ SQL0DATE.INT@.. <-- Other routine names will be displayed

Page 28: KBS Getting Started Guide€¦  · Web viewOutput reports to the screen, Windows printers, host devices, or Microsoft Word. For more information on QRE Professional, please refer

Getting Started Guide

Getting_Started_Guide.doc Page 24 of 91

.

71 routines processed. Cache>

Run the KB_SQL Load Procedure

This step loads the KB_SQL routines, globals, and system catalogs. To run the KB_SQL load procedure, log in to the M System and run the KB_SQL software install utility SQL0LOAD (see the following example).

If this is a new installation, the organization name, license number and license key (as provided by Knowledge Based Systems) must be entered. Please contact Knowledge Based Systems technical support if there any questions regarding the license.

A sample script using InterSystems Caché follows:

Cache>D ^SQL0LOAD

Software Installation Utility------------------------------

This utility loads software from data files in a directory into this UCI. Please enter the path of the directory that contains the install files followed by the [Enter] key.

You must include all characters needed to specify the directory name up to the point where the file name begins. Path examples:

DOS C:\TEMP\ VMS USER:[TMP]Unix /usr/temp/

Directory path: /usr/kbsql/load/cache/ <<-- Sample

Customer name: XYZ CompanySupplier name: Knowledge Based Systems, Inc. License number: 0000

License key: XXXX-XXXX-XXXX

===================== License Agreement===========Use of this product is governed by a software license agreement. By entering your name at the

Page 29: KBS Getting Started Guide€¦  · Web viewOutput reports to the screen, Windows printers, host devices, or Microsoft Word. For more information on QRE Professional, please refer

Installing and Upgrading KB_SQL Server

Getting_Started_Guide.doc Page 25 of 91

next prompt, you acknowledge that you have read the license agreement that is included with the product, and fully understand and agree to all of the terms and conditions contained in the agreement.==================================================

If you agree to the terms of the license, enter your name.Otherwise, press the [Enter] key to exit the installation.Enter your name to accept license terms Your name: YourNameHere

KB_SQL V4.4, (c) 2004 by Knowledge Based Systems, Inc.Install KB_SQL V4.4.xxxx [mm/dd/yyyy] <-new installsUpdate KB_SQL Vx.y ==>> KB_SQL V4.4.xxxx [mm/dd/yyyy] <-upgrades

-------------------------------------

License number = 0000

Company name = XYZ Company

Supplier name = Knowledge Based Systems, Inc. System type = FULLM type = CACHE Number of users = 8

OK to Install? <Yes>: Yes <--Shown for new installsDelete obsolete SQL* routines? <No>: Yes <-- For upgradesOK to Update? <Yes>: Yes <-- For upgrades

StepID StartTime Description------ --------- -----------1004 mm/dd/yyyy@hh:mm.ss Loading global file: SQLSITE.GBL

The above step occurs for new installs only.

1005 mm/dd/yyyy@hh:mm.ss Executing M code: D ZAPSQL^SQL0RI

Page 30: KBS Getting Started Guide€¦  · Web viewOutput reports to the screen, Windows printers, host devices, or Microsoft Word. For more information on QRE Professional, please refer

Getting Started Guide

Getting_Started_Guide.doc Page 26 of 91

=>Delete obsolete routines

The above step occurs for upgrades only.

1006 mm/dd/yyyy@hh:mm.ss Loading routine file:SQLRTN.1

1007 mm/dd/yyyy@hh:mm.ss Loading routine file:SQLRTN.2.. <-- Other step descriptions will be displayed.

Integrity Check startedSystem lock will remain set until completed Software installation complete!

Cache

The installation is now complete. Your installation script should look similar to the one above used as an example. Make sure no errors occurred.

Post-Installation

For upgrades the following steps are required:

Remove the System Lock to allow user connections to KB SQL. Log into KB_SQL.To restore new sessions are created, go to the DBA OPTIONSmenu and select the Utilities option.

The Select System-Wide Lock menu displays. Select theSYSTEM option.

The Lock Status window displays. Enter No in the Locked? field.

This following offers suggestions on steps to configure KB_SQL for your site.

Customizing the Site Definition

Use the ConfigurationSite Edit option to customize the site definition. Refer to the KB_SQL Database Administrator’s Guide for more information about the Site Edit options.

Page 31: KBS Getting Started Guide€¦  · Web viewOutput reports to the screen, Windows printers, host devices, or Microsoft Word. For more information on QRE Professional, please refer

Installing and Upgrading KB_SQL Server

Getting_Started_Guide.doc Page 27 of 91

Name and Address - You will want to ensure that the site definition includes your accurate site name and address.

Log into KB_SQLGo to the DBA OPTIONS menu and select the Configurationoption.Go to the Site Edit option.The Site Name window displays. Put your site name here if you have not already done so.

Hit the Enter key and select the ADDRESS INFO option from the Site Options menu. Enter your address in the Site Address Information window that displays. Hit Enter until the window closes and you return to the Site Options menu.

Press the F4 key until the commit? field appears. Enter Yes and hit the Enter key to save your changes.

Go through the Default Info, ANSI Info, and M Info options of the Site Options menu. Determine how to customize KB_SQL to meet the special requirements of your site. Specifically, you will want to tell the system about special M functions that you want to use and if you want to run queries as background jobs.

User Signon and Device Info options, of the CUSTOM LOGIC option from the SITE EDIT procedure, is where you can tell the system how to automatically set your user and device type information at sign on. Refer to the KB_SQL Database Administrator’s Guide for more information about security and device definitions.

Defining a Printer

Use the TERMINALS & PRINTERS/LOGICAL DEVICE EDIT procedure to define a printer. For starters, create a printer device with any printer accessible to M and our default device type, PRINTER. This will allow you and your users to print hard copies of reports. Refer to the section on the LOGICAL DEVICE EDIT option in the KB_SQL Database Administrator’s Guide.

Defining Base Routines and Schemas

Use the DBA options menu, CONFIGURATION option, BASE ROUTINE EDIT option to add one or more routine prefixes for use by your site. This is handy if you want your compiled queries to be in separate routine names for different schemas or user groups. Refer to the section on the BASE ROUTINE EDIT option in the KB_SQL Database Administrator’s Guide.

Page 32: KBS Getting Started Guide€¦  · Web viewOutput reports to the screen, Windows printers, host devices, or Microsoft Word. For more information on QRE Professional, please refer

Getting Started Guide

Getting_Started_Guide.doc Page 28 of 91

Use the DBA options menu, DATA DICTIONARY option SCHEMA EDIT option to define schemas for your applications. See the section on the SCHEMA EDIT option in the KB_SQL Data Dictionary Guide for more information.

Adding Security

Use the SECURITY option from the DBA options menu to create user groups and users.

As tempting as it might be to use the SHARK password, you should create your own user groups and user passwords.

Each user group can be linked to a schema, so that users will see only the information that is applicable to them.

You can configure your user accounts so that certain people can edit queries using SQL, others can edit queries using EZQ, and others can only run existing queries. You might even want to create a tutorial user group for people who want to try the KB_SQL tutorials.

Refer to the KB_SQL Database Administrator’s Guide for more information on Security.

Building Your Data Dictionary

Until you tell KB_SQL about your data dictionary, you can use it only to report on the demonstration tables. While this may be sufficient for evaluation of the user interface, the goal is to access your information. We have documented the fundamentals of the KB_SQL data dictionary, strategies for mapping globals, creating your data dictionary, and creating table filers in the KB_SQL Data Dictionary Guide.

Please read the appropriate sections before you begin mapping your globals. The success of your efforts will be greatly improved if you have a good understanding of schemas, domains, tables, primary keys, and indexes before you begin the mapping process.

The KB_SQL Data Dictionary Guide explains how to use the mapping procedures: the MAP EXISTING GLOBALS option, which has been the sole method for mapping your globals prior to KB_SQL Version 3, and the Data Dictionary Language (DDL) interface, which has become the preferred method because of its ease of use. The DDL interface processes a script file that contains SQL CREATE, ALTER, and DROP statements. The script file is easy to update and reusable.

Page 33: KBS Getting Started Guide€¦  · Web viewOutput reports to the screen, Windows printers, host devices, or Microsoft Word. For more information on QRE Professional, please refer

PATH The path to the load directory

AUTH The name of the person installing the software

ECHO A flag indicating if information should be echoed to the screen (“”=no, 1=yes)

SQLFILE A file name to store the messages that would normally be echoed to the screen

CUSTOMER The customer’s nameGetting_Started_Guide.doc Page 29 of 91

Installing and Upgrading KB_SQL Server

Allowing Client Connections

As soon as some parts of your data dictionary are defined to KB_SQL, you will want to see what the data looks like in the SQL Editor, EZQ Editor and from client applications. In order to access your M data through Windows applications, you will need the KB_SQL ODBC Driver. Please refer to the Installing the KB_SQL ODBC Driver section of this manual for more information on installing the KB_SQL ODBC Driver and the Configuring the KB_SQL ODBC Server section for more information on configuring the server to accept connections. For more information about the ODBC Driver, please see the KB_SQL ODBC Driver Help.

Upgrading the Server Software

Upgrading the Server Software from Previous Versions

Before upgrading KB_SQL, make sure that the Pre-Installation steps have been taken.

Upgrading from Versions Prior to 3.6

Starting with KB_SQL Version 3.6, Knowledge Based Systems implemented a single setup disk and license key technology to simplify the software distribution process. If upgrading from a version prior to V3.6, please contact KBS Technical Support for a license key.

In order to change the default license number, you will need to load the software using the AUTO^SQL0LOAD technique. The AUTO^SQL0LOAD tag allows you to install KB_SQL without interactive prompts. It is invoked using the syntax shown below:

>DO AUTO^SQL0LOAD(PATH,AUTH,ECHO,SQLFILE,CUSTOMER,LICENSE,KEY,SUPPLIER, NOIC)

This routine requires the following arguments:

Page 34: KBS Getting Started Guide€¦  · Web viewOutput reports to the screen, Windows printers, host devices, or Microsoft Word. For more information on QRE Professional, please refer

Getting Started Guide

Getting_Started_Guide.doc Page 30 of 91

LICENSE The license number

KEY The license key

SUPPLIER The supplier’s name

NOIC Flag indicating whether or not the integrity check should be run at the end of the installation. If true, it will suppress the running of the Integrity Check unless otherwise forced.

Note: The Integrity Check can only be suppressed for upgrades within the same major.minor version.

Upgrading from Version 3.6 or Higher

If you are upgrading from Version 3.6 or higher, and do not wish to change your existing license information, you may follow the installation steps documented in the Installing the Server Software section of this Guide.

If you have any questions, please contact KBS Technical Support.

Page 35: KBS Getting Started Guide€¦  · Web viewOutput reports to the screen, Windows printers, host devices, or Microsoft Word. For more information on QRE Professional, please refer

Getting_Started_Guide.doc Page 31 of 91

Installing and Upgrading KB_SQL Server

View and Updating Licence Information

Viewing License Information

The SHOWKEY^SQL0LOAD tag will displays the license key, license number, number of concurrent users, and system type.

Example:

>D SHOWKEY^SQL0LOADCurrent Software Key= XXXX-XXXX-XXXX

License number= 0000Number of users= 8

System type= FULL

Changing the License Key

The NEWKEY^SQL0LOAD tag is used to change the number of concurrent users or system type. In order to use this routine, contact Knowledge Based Systems for a new license key that reflects the appropriate changes. In order to use this routine, a valid KB_SQL DBA user account is needed. This routine displays the current license information and allows a new license key to be entered.

Example:

>D NEWKEY^SQL0LOAD

Change License Key setting

==========================Password: <-- Enter DBA password

Current Software Key= XXXX-XXXX-XXXX License number= 0000Number of users= 8

System type= FULL

New Software Key: YYYY-YYYY-YYYY <--Enter key from KBS

Current Software Key= YYYY-YYYY-YYYY

Page 36: KBS Getting Started Guide€¦  · Web viewOutput reports to the screen, Windows printers, host devices, or Microsoft Word. For more information on QRE Professional, please refer

Getting Started Guide

Getting_Started_Guide.doc Page 32 of 91

License number= 0000

Number of users= 16 System type= FULL

Software key changed

Changing the M Type

The MTYPE^SQL0LOAD tag is used to change the M implementation. To move a license from one M implementation to another, for example from DSM to MSM:

1. Copy all SQL routines and globals2. Load the appropriate .RTN file for the new M implementation3. Run MTYPE^SQL0LOAD

Starting KB_SQL

1. After the install process completes, execute the sign-on routine from the M prompt.

>DO ^SQL

2. When prompted for a device type, select a device type from the list. If the device type is not shown, select the ROLL_UP device type to use the system in a scrolling mode.

3. When prompted for a user password, enter the supplied DBA password, SHARK. This password gives provides access to all tables, queries, and the DBA procedures.

We strongly recommend that the supplied DBA password be changed using the SecurityUser Edit option.

After logging into KB_SQL, the KB SQL Server main menu is displayed.

Page 37: KBS Getting Started Guide€¦  · Web viewOutput reports to the screen, Windows printers, host devices, or Microsoft Word. For more information on QRE Professional, please refer

Installing and Upgrading KB_SQL Server

Getting_Started_Guide.doc Page 33 of 91

4. Enter YES into the Examine system status? field. The System Status Options menu displays.

5. Select the SERVER OPTIONS option. The Select option menu displays.

Page 38: KBS Getting Started Guide€¦  · Web viewOutput reports to the screen, Windows printers, host devices, or Microsoft Word. For more information on QRE Professional, please refer

Getting Started Guide

Getting_Started_Guide.doc Page 34 of 91

6. Select the ENABLE SERVER option. The Server Started message will appear.

For more information on starting and stopping the server, refer to the KB_SQL Database Administrator’s Guide.

There are several options available for starting the KB_SQL Server. The following options will start the server in the background.

Page 39: KBS Getting Started Guide€¦  · Web viewOutput reports to the screen, Windows printers, host devices, or Microsoft Word. For more information on QRE Professional, please refer

Installing and Upgrading KB_SQL Server

Getting_Started_Guide.doc Page 35 of 91

Auto Start by Logging into KB_SQL

If the following conditions are both true, the KB_SQL Server can be started by simply logging into KB_SQL as a DBA or System Manager:

The Allow Connection field under ConfigurationSite EditServer Info is set to Yes

The Disable auto start option under ConfigurationSite EditServer Info is set to No

Manually Start Using a Command

The KB_SQL Server can be started by running the following command at the M prompt:

>D START^SQL0SVR

This command line option allows you to start KB_SQL Server during the startup of your M system or other times without the requirement to log into KB_SQL. If, for some reason, the Server fails to start, the variable SQLERR may be trapped and used to determine the reason for failure.

Page 40: KBS Getting Started Guide€¦  · Web viewOutput reports to the screen, Windows printers, host devices, or Microsoft Word. For more information on QRE Professional, please refer

Getting Started Guide

Getting_Started_Guide.doc Page 36 of 91

Manually Start Using Menu Option

The KB_SQL Server can be started by a DBA or system administrator using theEnable Server option under System StatusServer Options.

Starting the Server in a VMS Cluster

In a VMS cluster, one or more nodes can access the M database.

Page 41: KBS Getting Started Guide€¦  · Web viewOutput reports to the screen, Windows printers, host devices, or Microsoft Word. For more information on QRE Professional, please refer

Installing and Upgrading KB_SQL Server

Getting_Started_Guide.doc Page 37 of 91

However, the KB_SQL Server is configured to a specific IP address. In this example, the KB_SQL server is configured with the IP address of Node 1.

Because of this, it is imperative that the KB_SQL Server is started from the node identified in the KB_SQL server configuration. Starting the server from a node other than the one identified in the server configuration will result in a variety of problems including unsuccessful client connections and inability to stop the KB_SQL server.

When the D ^SQL command is issued, the KB_SQL server will begin listening for connections using the IP address of the node from which the command was issued. When this happens on a node other than where KB_SQL is installed, no connections are allowed to the server although it appears to be running. Should you experience this problem, it will be necessary to kill the SQL0TCP processes at the M level and start the KB_SQL server from the correct node.

Typically, when the server is accidentally started on the wrong node it is because the Disable auto start? field is set to No. To prevent this from occurring, we strongly recommend that this feature be disabled by setting the Disable auto start? field to Yes (ConfigurationSite EditServer Info).

Note: By setting the “Disable auto start” option to “Yes”, it will be necessary to manually start the KB_SQL Server using one of the methods discussed above.

Page 42: KBS Getting Started Guide€¦  · Web viewOutput reports to the screen, Windows printers, host devices, or Microsoft Word. For more information on QRE Professional, please refer

Getting Started Guide

Getting_Started_Guide.doc Page 38 of 91

Stopping the Server

You may need to stop the KB_SQL Server for various reasons (shutting down M, system maintenance, etc.). You may stop the KB_SQL Server with the following command:

>D STOP^SQL0SVR

This command may be called from procedures such as Shutdown, etc.

The KB_SQL Server can also be stopped by a DBA or system administrator using the Disable Server option under System Status Server Options menu.

Stopping the server using the above methods does not affect current connections to the KB_SQL Server. It does, however, prevent any new connections from being established. As some applications require multiple database connections for operation, it is best to ensure that everyone is logged off before stopping the KB_SQL Server. You may check current connection status by choosing Connections from the Systems Status menu.

Page 43: KBS Getting Started Guide€¦  · Web viewOutput reports to the screen, Windows printers, host devices, or Microsoft Word. For more information on QRE Professional, please refer

Installing and Upgrading KB_SQL Server

Getting_Started_Guide.doc Page 39 of 91

Configuring the Server Information

The Server Information can be accessed through the ConfigurationSite EditServer Info menu option. The SITE EDIT window displays, with the Server Information section.

Definition of each fields on the SITE EDIT screen

Prefix for Stored Query Routines

KB_SQL allocates an M routine for each Server API query in the query cache. The value entered in this field will serve as the prefix for these routines. For example, if the prefix is SQLY, the routines are named in the format SQLY, followed by a number (for example, SQLY1).

Page 44: KBS Getting Started Guide€¦  · Web viewOutput reports to the screen, Windows printers, host devices, or Microsoft Word. For more information on QRE Professional, please refer

Getting Started Guide

Getting_Started_Guide.doc Page 40 of 91

Maximum Number of Stored Queries

The value entered in the Maximum Number of Stored Queries field determines the number of queries stored in the query cache.

As the Server API receives a SQL command, it checks the query cache for the command’s corresponding M routine. If it finds the M routine, the Server API runs the routine. If an M routine is not found, the Server API must use the SQL engine to translate the SQL command into one or more M routines. The M routine and corresponding SQL command are then stored and assigned a routine name using the base routine prefix.

If a large number is specified in the Maximum Number of Stored Queries field, such as 999, many commands can be processed before having to reuse a stored query for another command. When the maximum number has been reached, KB_SQL reuses the oldest stored query to store the next query’s M routine and corresponding SQL command. The value supplied is a matter of storage space versus processor resources.Assigning a large number requires more storage capacity but less processing time. Conversely, assigning a smaller number requires less space to store queries, but causes more processing by the SQL engine.

Allow Connections

Answer Yes to allow the KB_SQL ODBC server to accept connections. Answering Yes to this prompt does not automatically start the server.Please see the Starting the Server section of this document for information.

Answer No to disallow connections to the KB_SQL ODBC server. If the server is already running it must be modified to disallow connections, first invoke the STOP^SQL0SVR function before setting this prompt to No.

Answering No to this prompt does not stop the server. Please see the Stopping the Server section of this document for information on stopping the server.

Disable Auto Start

If the Disable Auto Start field is set to Yes, the KB_SQL ODBC Server will NOT be started upon a KB_SQL log in (D ^SQL). The server will need to be manually started using one of the options in the Starting the Server section of this document.

Page 45: KBS Getting Started Guide€¦  · Web viewOutput reports to the screen, Windows printers, host devices, or Microsoft Word. For more information on QRE Professional, please refer

Installing and Upgrading KB_SQL Server

Getting_Started_Guide.doc Page 41 of 91

If the site is using VMS clustering, Knowledge Based Systems strongly recommends that this field be set to Yes to ensure that the server is not started from the wrong node.

If the Disable Auto Start field is set to No, the KB_SQL ODBC Server will be automatically started the first time a user logs into KB_SQL.

Trace API Calls

Setting the Trace API Calls field to Yes will cause KB_SQL to track the dialog between the KB_SQL server and clients. The logged can be viewed either by:

Using the VIEW^SQL0SVR tag at the M prompt, or, Selecting the System Status Server Options Trace Options

View Trace option

Tracing is used mainly for troubleshooting purposes and is typically turned off due to the impact it can have on query performance.

Edit Network Configuration

Enter Yes to edit the TCP/IP defaults or host information. In general, the network information consists of the TCP/IP host and port information.Depending on the M implementation, alternate ports may need to be defined. The TCP/IP Defaults window appears.

Server Initial Execute

Enter the M code that will instantiate any variables that are required by your application during the runtime execution of queries.

Server User Initial Execute

Enter the M code that will validate and/or establish the username (SQLUNAME) and password (SQLUAUTH) variables referenced during the connection to the server

Page 46: KBS Getting Started Guide€¦  · Web viewOutput reports to the screen, Windows printers, host devices, or Microsoft Word. For more information on QRE Professional, please refer

Getting Started Guide

Getting_Started_Guide.doc Page 42 of 91

Network Site Edit Windows

TCP/IP Defaults Window FieldsField Description

Timeout for read commands

Enter the number of seconds after which a READ command should timeout and check error status (default = No timeout)

Maximum length of M string

Enter the maximum size of an M string value in this implementation (default = 511)

Output buffer size Enter the output buffer size in bytes (default = 2048

Input buffer size Enter the input buffer size in bytes (default = 2048)

The TCP/IP Host Information window displays.

Page 47: KBS Getting Started Guide€¦  · Web viewOutput reports to the screen, Windows printers, host devices, or Microsoft Word. For more information on QRE Professional, please refer

Installing and Upgrading KB_SQL Server

Values provided above are for illustrative purposes only.

TCP/IP Host Information FieldsField Description

Host name The TCP/IP hostname for the server

IP address The internet protocol address for the server. If the system uses dynamic IP address allocation, enter the host name in this field.

Description A brief description of the server

Local host Enter YES if the system is the local host. Enter NO if the system is a remote host.

The TCP/IP Ports Window appears.

Getting_Started_Guide.doc Page 43 of 91

Page 48: KBS Getting Started Guide€¦  · Web viewOutput reports to the screen, Windows printers, host devices, or Microsoft Word. For more information on QRE Professional, please refer

Getting Started Guide

Getting_Started_Guide.doc Page 44 of 91

Values provided are for illustrative purposes only.

TCP Ports FieldsField Description

Port number The port number is expected to be in the range of 5001- 65535

Port server Enter YES if this is the published port for connecting to this server. Enter NO if this is an alternate port to be used internally

Page 49: KBS Getting Started Guide€¦  · Web viewOutput reports to the screen, Windows printers, host devices, or Microsoft Word. For more information on QRE Professional, please refer

Customizing the KB_SQL Server Install ProcessThe Software Install Process is designed to prepare a designated M environment for SQL access using the KB_SQL product. The process can be customized to allow packaging of customer object definitions together with the base product.This section describes how to customize the install process using the user- defined script file SQLSCR.USR. This file is a part of the server installation files. To enable this feature, you must copy your revised file to the load directory as the file SQLSCR.2.

Installing and/or upgrading the product software is accomplished by the Software Install program (SQL0LOAD). That program is described in detail in the Getting Started Guide.

Customization is accomplished by adding script steps to the user-defined script file, SQLSCR.USR. Each line of this file can contain a coded command and associated arguments and message text. This file will be processed after all product installation steps are complete.

SQLSCR.USR

The following text is taken from the on-line copy of SQLSCR.USR.

; Knowledge Based Systems, Inc.; SQLSCR.USR.; User-defined Script;; This file can be modified by the customer in order to extend the; product installation process.;; Types; =====; OKVar~1~Filename~Import Routine source; OKVar~2~Filename~Import Global data; OKVar~3~RoutineToRun~Message; OKVar~4~PromptText~PromptVar~PromptDefault; OKVar~5~Filename~Import Table definitions

Getting Started Guide Page 45 of 91

Page 50: KBS Getting Started Guide€¦  · Web viewOutput reports to the screen, Windows printers, host devices, or Microsoft Word. For more information on QRE Professional, please refer

Getting Started Guide

OK Perform for both new installations and upgradesOKI Perform only for new installationsOKU Perform only for upgrades

Getting_Started_Guide.doc Page 46 of 91

; OKVar~6~Filename~Import Query definitions; OKVar~7~Filename~Import Device Type definitions; OKVar~8~ExecuteMCode~Message; OKVar~9~Filename~Import Function definitions; OKVar~10~Filename~Import Pseudo Column definitions; OKVar~11~Filename~Import Table Statistics; OKVar~12~Filename~Import Global data; OKVar~13~Filename~Import Routine data;; Variables; =========; Customers should use variables in the SQLA-, SQLB- namespaces.; Context variables (inherited from product install); OK Always true; OKI True for INSTALL only; OKU True for UPDATE only;; Example; =======; This script imports customer defined tables, queries and functions; for the fictitious LAB application.;; Note: Simply remove the leading semi-colon to enable a line of the; script.;; OKU~1~FIXUP.RTN~Load FIXUP routines; Note: This step is run only for updates (OKU).; OKU~8~d FIXUP^SQLAA~Cleanup; Note: This routine was loaded by the previous step.; OK~5~LAB Table Definitions; Note: This step is run for installs and updates (OK).; OK~6~LAB.Q~LAB query Definitions; OK~9~LAB.FN~LAB Function Definitions; OKI~2~SITEDEF.GBL~Load global defaults for Site Definition; Note: This step is run only for new installs (OKI).

Customization Types

For each of the customization types, it is necessary to specify the context in which the command should be run:

Page 51: KBS Getting Started Guide€¦  · Web viewOutput reports to the screen, Windows printers, host devices, or Microsoft Word. For more information on QRE Professional, please refer

Customizing the KB_SQL Server Install Process

1 – KBS Routine Import

Description Imports the routine(s) file into the area where KB_SQL is installed.

Please note this type should only be used with the assistance of Knowledge Based Systems. This type is intended for use only in situations when KBS must provide custom routines.

Format <Context>~1~<Filename>~<Comment>

Sample Script Entry

OK~1~FIXUP.RTN~Load FIXUP routines

Sample Output

1001 11/04/2002@02:00.58 PM Loading routine file: FIXUP.RTN

=>Load FIXUP routines

2 – KBS Global Import

Description Imports the global(s) contained in the specified file into the area where KB_SQL is installed.

Please note this type should only be used with the assistance of Knowledge Based Systems. This type is intended for use only in situations when KBS must provide custom globals.

Format <Context>~2~<Filename>~<Comment>

Sample Script Entry

OK~2~FIXUP.G~Load FIXUP globals

Sample Output

1001 11/04/2002@02:00.58 PM Loading routine file: FIXUP.G

=>Load FIXUP globals

3 – Routine Execute

Description Executes an M routine.

Getting_Started_Guide.doc Page 47 of 91

Page 52: KBS Getting Started Guide€¦  · Web viewOutput reports to the screen, Windows printers, host devices, or Microsoft Word. For more information on QRE Professional, please refer

Getting_Started_Guide.doc Page 48 of 91

Getting Started Guide

Format <Context>~3~<Routine to run>~<Comment>

Sample Script Entry

OK~3~MAKE^SQLAVIEW~Create views

Sample Output

1001 11/06/2002@11:12.58 AM Running routine SQLAVIEW

=>Create views

4 – Prompt

Description Prompts the user for a value which is stored in a variable.

Format <Context>~4~<Prompt text>~<Prompt variable>~<Prompt default>

Sample Script Entry

OK~4~Set TEST global?~SETGBL~Yes

; Following the above with the next line would set the global based; on the user’s input

SETGBL~8~S ^TEST($H)=1~Set ^TEST global

Sample Output Set TEST global? <Yes>:

5 – Import Table Definitions

Description Imports table definitions.

The file is expected to have been created using KB_SQL’s table export utility found under UtilitiesExportTable, or XFER for table.

Format <Context>~5~<Filename>~<Comment>

Sample Script Entry

OK~5~STUDENTS.T~Import STUDENT table

Sample Output

1001 11/06/2002@11:34.22 AM Loading table file: STUDENTS.T

=>Import STUDENTS table

Page 53: KBS Getting Started Guide€¦  · Web viewOutput reports to the screen, Windows printers, host devices, or Microsoft Word. For more information on QRE Professional, please refer

Description Executes the specified M code.

Format <Context>~8~<Execute M code>~<Comment>

Sample OK~8~D C^SQLAVIEW~Call tag to create views Script Entry

Getting_Started_Guide.doc Page 49 of 91

Customizing the KB_SQL Server Install Process

6 – Import Query Definitions

Description Imports query definitions.

The file is expected to have been created using KB_SQL’s query export utility found under UtilitiesExportQuery, or XFER for query.

Format <Context>~6~<Filename>~<Comment>

Sample Script Entry

OK~6~QUERY.Q~Import query definitions

Sample Output

1001 11/06/2002@11:34.22 AM Loading query file: QUERY.Q

=>Import query definitions

7 – Import Device Type Definitions

Description Imports device type definitions.

The file is expected to have been created using KB_SQL’s device type export utility found under UtilitiesExportDevice Type, or XFER for device type.

Format <Context>~7~<Filename>~<Comment>

Sample Script Entry

OK~7~PRINTERS.D~Import device definitions

Sample Output

1001 11/06/2002@11:34.22 AM Loading query file: PRINTERS.D

=>Import device definitions

8 – Execute M Code

Page 54: KBS Getting Started Guide€¦  · Web viewOutput reports to the screen, Windows printers, host devices, or Microsoft Word. For more information on QRE Professional, please refer

Getting Started Guide

Getting_Started_Guide.doc Page 50 of 91

Sample Output 1001 11/08/2002@01:49.13 PM Executing M code: D C^SQLAVIEW

=>Call tag to create views

9 – Import Function Definitions

Description Imports function definitions.

The file is expected to have been created using KB_SQL’s function export utility found underUtilitiesExportFunction, or XFER for function.

Format <Context>~9~<Filename>~<Comment>

Sample Script Entry

OK~9~FUNCTION.F~Import function definitions

Sample Output

1001 11/06/2002@11:34.22 AM Loading query file: FUNCTION.F

=>Import function definitions

10 – Import Pseudo Column Definitions

Description Imports pseudo column definitions.

The file is expected to have been created using KB_SQL’s device type export utility found underUtilitiesExportPseudo Column, or XFER for pseudo column.

Format <Context>~10~<Filename>~<Comment>

Sample Script Entry

OK~10~PSEUDO.P~Import pseudo columns

Sample Output

1001 11/06/2002@11:34.22 AM Loading query file: PSEUDO.P

=>Import pseudo columns

Page 55: KBS Getting Started Guide€¦  · Web viewOutput reports to the screen, Windows printers, host devices, or Microsoft Word. For more information on QRE Professional, please refer

Customizing the KB_SQL Server Install Process

11 – Import Table Statistics

Description Imports device type definitions.

The file is expected to have been created using XFER for statistics. For example,>; Export table statistics:>S SQLXTO="STATS">S SQLXTM="TO_FILE">S SQLFILE="C:\TEMP\STAT.T">; Replace K4 on the following line with the table id>S ^SQLEX($J,"STATS",K4)="">D XFER^SQL

Format <Context>~11~<Filename>~<Comment>

Sample Script Entry

OK~11~STAT.T~Import table statistics

Sample Output

1001 11/08/2002@02:33.34 PM Loading Statistics file: STAT.T

=>Import table statistics

12 – Global Import from XFER Export File

Description Imports global data using KB_SQL’s XFER transfer utility.

The file is expected to have been created using XFER for GLOBAL. For example,>; export three globals named NAME, CITY, and STATE>S SQLXTO=”GLOBAL”>S SQLXTM=”TO_FILE”>S SQLFILE=”C:\TEMP\DATA.G”>S SQLXNM(1)=”^NAME”

>S SQLXNM(2)=”^CITY”>S SQLXNM(3)=”^STATE”>D XFER^SQL

Note that when importing globals, the overwrite mode (SQLOW) value can be used to replace (SQLOW=1) an entire global tree, or merge (SQLOW=2) with an existing global tree. If the overwrite mode is create (SQLOW=0), the import will only be allowed if the global tree does not already exist.

Getting_Started_Guide.doc Page 51 of 91

Page 56: KBS Getting Started Guide€¦  · Web viewOutput reports to the screen, Windows printers, host devices, or Microsoft Word. For more information on QRE Professional, please refer

Getting Started Guide

Getting_Started_Guide.doc Page 52 of 91

Format <Context>~12~<Filename>~<Comment>

Sample Script Entry

OK~12~DATA.G~Data for name, city, state

Sample Output

1001 11/06/2002@12:06.20 PM Loading Global xfer file: DATA.G

=>Data for name, city, state

13 – Import Routine Data

Description Imports a routine using KB_SQL’s XFER transfer utility for routines.

An export file must have been created using XFER for ROUTINE. For example,>; export three routines named NAME, CITY, and STATE>S SQLXTO=”ROUTINE”>S SQLXTM=”TO_FILE”>S SQLFILE=”C:\TEMP\RTN.R”>S SQLXNM(1)=”NAME”>S SQLXNM(2)=”CITY”>S SQLXNM(3)=”STATE”>D XFER^SQL

Format <Context>~13~<Filename>~<Comment>

Sample Script Entry

OK~13~RTN.R~Routines for name, city, state

Sample Output

1001 11/06/2002@12:06.20 PM Loading Routine xfer file: RTN.R

=>Routines for name, city,state

Page 57: KBS Getting Started Guide€¦  · Web viewOutput reports to the screen, Windows printers, host devices, or Microsoft Word. For more information on QRE Professional, please refer

Installing and Configuring the KB_SQL ODBC DriverThis section contains information on installing the KB_SQL ODBC Driver. For more information regarding the ODBC Driver, please see the KB_SQL ODBC Driver Help.

Before You Begin

Before installing the KB_SQL ODBC Driver, there are a couple of items to note:

Is the KB_SQL Server installed and configured?

Do you know the Server configuration parameters for the Hostname (or IP address) and listening port?Hostname/IP Address: Listening Port:

Can you ping the Server using the Hostname (or IP address)?

If running Windows 2000 or Windows XP, do you have Administrator privileges?

Getting Started Guide Page 53 of 91

Page 58: KBS Getting Started Guide€¦  · Web viewOutput reports to the screen, Windows printers, host devices, or Microsoft Word. For more information on QRE Professional, please refer

Getting Started Guide

Getting_Started_Guide.doc Page 54 of 91

ODBC Driver Installation

1. Launch the KB_SQL ODBC Driver Installer by double-clickingKBSODBCDriver_<version>_Build_<Build#>.exe.

You may receive the following window if security is setup on the server to verify execution of the file. Click Run to continue to installation. To prevent this security warning, add Knowledge Based Systems to your trusted list.

2. The setup window will prompt, “This will install KBS KB_SQL ODBC Driver. Do you wish to continue?”. Click the Yes button to proceed with the installation. Otherwise, click No.

Page 59: KBS Getting Started Guide€¦  · Web viewOutput reports to the screen, Windows printers, host devices, or Microsoft Word. For more information on QRE Professional, please refer

Getting_Started_Guide.doc Page 55 of 91

Installing and Configuring the KB_SQL ODBC Driver

3. The “Welcome to the KBS KB_SQL ODBC Driver Setup Wizard” window displays. Click the Next button to continue the installation.

4. Accept the terms of the license agreement to continue the installation by clicking the I accept the agreement radio button.

Page 60: KBS Getting Started Guide€¦  · Web viewOutput reports to the screen, Windows printers, host devices, or Microsoft Word. For more information on QRE Professional, please refer

Getting Started Guide

Getting_Started_Guide.doc Page 56 of 91

5. Click the Next button to continue to installation.

6. The Select Destination Directory window displays. Select the destination directory and click Next button. By default the driver will be installed in the C:\Program Files\KBS\ODBC directory.

Note: If the directory does not exist, the installer will prompt you to create the directory. Click the Yes button to create the directory.

Page 61: KBS Getting Started Guide€¦  · Web viewOutput reports to the screen, Windows printers, host devices, or Microsoft Word. For more information on QRE Professional, please refer

Installing and Configuring the KB_SQL ODBC Driver

Getting_Started_Guide.doc Page 57 of 91

7. The ODBC Ready to Install window displays. Click the Install button to continue the installation.

8. Once the KB_SQL ODBC Driver is installed, the KB_SQL Data Source Setup window displays. A default Data Source Name and Description is populated for you. Change these as appropriate for your site, or use the defaults provided. Click the Next button to continue.

Page 62: KBS Getting Started Guide€¦  · Web viewOutput reports to the screen, Windows printers, host devices, or Microsoft Word. For more information on QRE Professional, please refer

Getting Started Guide

Getting_Started_Guide.doc Page 58 of 91

9. The KB_SQL Network Connection Setup window displays. If the default values provided are not correct, put the values in Host and TCP_PORT that are appropriate for your site in these fields. Click the Finish button to complete the installation.

10.The Completing the KBS KB_SQL ODBC Driver Setup Wizard window displays. The KB_SQL ODBC Driver has been installed and a Data Source has been created. Click the Finish button to exit the setup.

Page 63: KBS Getting Started Guide€¦  · Web viewOutput reports to the screen, Windows printers, host devices, or Microsoft Word. For more information on QRE Professional, please refer

Installing and Configuring the KB_SQL ODBC Driver

Getting_Started_Guide.doc Page 59 of 91

Once the installation is complete, the KBSODBCDriver.exe file is no longer necessary.

Creating KB_SQL ODBC Data Sources

To create an additional KB_SQL Data Source or change the one created at installation:

1. Open the ODBC Administrator.o In Windows 2000 and Windows XP, the ODBC Administrator is

available from the Administrative Tools Data Sources (ODBC) option.

o In Windows Me, the ODBC Administrator is available on the Windows Control Panel.

Page 64: KBS Getting Started Guide€¦  · Web viewOutput reports to the screen, Windows printers, host devices, or Microsoft Word. For more information on QRE Professional, please refer

Getting Started Guide

Getting_Started_Guide.doc Page 60 of 91

2. Click the Add button to create a new data source. The Create New Data Source window displays.

3. Select KB_SQL ODBC 32-bit Driver, and click the Finish button.

4. The KB_SQL Data Source Setup window displays. Provide a Data Source Name and Description for the new data source and click the Next button.

Page 65: KBS Getting Started Guide€¦  · Web viewOutput reports to the screen, Windows printers, host devices, or Microsoft Word. For more information on QRE Professional, please refer

Installing and Configuring the KB_SQL ODBC Driver

Getting_Started_Guide.doc Page 61 of 91

only.Note that the values provided are for illustrative purposes

5. The KB_SQL Network Connection Setup window displays. Provide the Host and TCP_PORT. Host is either the KB_SQL Server HOSTNAME or IP Adress. TCP_PORT is the listening port of the KB_SQL Server. Contact the KB_SQL Database Administrator if these values are unknown. Click the Finish button.

only.Note that the values provided are for illustrative purposes

Page 66: KBS Getting Started Guide€¦  · Web viewOutput reports to the screen, Windows printers, host devices, or Microsoft Word. For more information on QRE Professional, please refer

Getting Started Guide

Getting_Started_Guide.doc Page 62 of 91

6. The DSN will now appear in the list and is ready for use.

In the illustration above, a User DSN was created, which is available to the currently logged in user (Windows 2000 and Windows XP only). System DSNs are available to all users and system services. File DSNs can be saved on network drives for shared use.

Page 67: KBS Getting Started Guide€¦  · Web viewOutput reports to the screen, Windows printers, host devices, or Microsoft Word. For more information on QRE Professional, please refer

Installing and Configuring the KB_SQL ODBC Driver

Test ODBC Data Source

To test that the ODBC Data Source is valid, from a terminal session, use the TEST^SQL0TCP utility:

> d TEST^SQL0TCP

Answer the prompts or take the defaults, that correspond to the DSN.

If your data source connects properly your DSN will be ready to go.

If your data source cannot connect, you will receive an error message. Contact your DBA or System Administrator for assistance if you entered the correct information for each prompt.

The expected result from the TEST^SQL0TCP is as follows:

V44Q1>D TEST^SQL0TCPKB_SQL Server Connect Test Server Name or Address: KBSVS6// Port Number : 7001//UserName : DBA PassWord :Connection limit : 4// Connecting to KBSVS6 (7001) Connected to #1:|TCP|292~KBSVS6~7001~~~~|TRM|:|2600~~~2048~2048~32767 Connecting to KBSVS6 (7001)Connected to #2:|TCP|293~KBSVS6~7001~~~~|TRM|:|2600~~~2048~2048~32767 Connecting to KBSVS6 (7001)Connected to #3:|TCP|294~KBSVS6~7001~~~~|TRM|:|2600~~~2048~2048~32767 Connecting to KBSVS6 (7001)Connected to #4:|TCP|295~KBSVS6~7001~~~~|TRM|:|2600~~~2048~2048~32767 Disconnecting #4:|TCP|295~KBSVS6~7001~~~~|TRM|:|2600~~~2048~2048~32767 Disconnecting #3:|TCP|294~KBSVS6~7001~~~~|TRM|:|2600~~~2048~2048~32767 Disconnecting #2:|TCP|293~KBSVS6~7001~~~~|TRM|:|2600~~~2048~2048~32767 Disconnecting #1:|TCP|292~KBSVS6~7001~~~~|TRM|:|2600~~~2048~2048~32767 V44Q1>

Getting_Started_Guide.doc Page 63 of 91

Page 68: KBS Getting Started Guide€¦  · Web viewOutput reports to the screen, Windows printers, host devices, or Microsoft Word. For more information on QRE Professional, please refer
Page 69: KBS Getting Started Guide€¦  · Web viewOutput reports to the screen, Windows printers, host devices, or Microsoft Word. For more information on QRE Professional, please refer

Getting Started Guide Page 65 of 91

Installing QRE ProfessionalQRE Professional Requirements

The following are the minimum requirements for QRE Professional: Pentium-class Processor, Pentium II 266 or higher recommended 64 MB RAM (or more) recommended 100 MB free disk space (or more) recommended One of the following operating systems (* indicates the preferred OS)

Microsoft Windows 2000 SP3* (or the latest released service pack) Microsoft Windows XP SP1* (or the latest released service pack) Microsoft Windows Me

Microsoft Internet Explorer 5.x, IE 5.5 or 6.0+ recommended KB_SQL Server and Reporting Tools Version 4.3 KB_SQL ODBC Driver Version 4.3 Microsoft Word 97 and up (Word XP Preferred) if report output to

Microsoft Word is desired Installing QRE Professional

For more information on installation and configuration, refer to the Getting Started section of the KBS QRE Professional Usage Guide.

The QRE Professional Guide documentation on QRE Professional Installation follows:

QRE Professional Installation

Page 70: KBS Getting Started Guide€¦  · Web viewOutput reports to the screen, Windows printers, host devices, or Microsoft Word. For more information on QRE Professional, please refer
Page 71: KBS Getting Started Guide€¦  · Web viewOutput reports to the screen, Windows printers, host devices, or Microsoft Word. For more information on QRE Professional, please refer

Getting Started Guide Page 67 of 91

File SummaryThis section lists the files that are installed during the installation process for each facility.

KB_SQL Server Installer File Summary

By default, all KB_SQL Server setup files are extracted to the \Program Files\KBS\Server directory.

File Name DescriptionCACHE.DEV Caché device definitionsCACHE.RTN Caché installation routinesDEMO.DAT Sample data for the SQL_TEST demo tablesDEMO.DB Table definitions for the SQL_TEST demo tablesDSM.DEV DSM device definitionsDSM.RTN DSM installation routinesGTM.DEV GT.M device definitionsGTM.RTN GT.M installation routinesHBOM.DEV HBOM device definitionsHBOM.RTN HBOM installation routinesISM.DEV ISM device definitionsISM.RTN ISM installation routinesLICENSE.KEY Optional file that can contain a license key for an

automatic installationLICENSE.TXT KB_SQL license agreementM21.DEV M21 device definitionsM21.RTN M21 installation routinesMSM.DEV MSM device definitionsMSM.RTN MSM installation routinesSQL.FN SQL_FN_* product functionsSQL.PC SQL_* product pseudocolumnsSQL.Q1 SQL* queries not included in the other SQL.Q filesSQL.Q2 SQL_SP_* queriesSQL.Q3 SQL_SUMMARY_* queriesSQL.Q4 SQL_CHECKUP_* queriesSQL.Q5 SQL_DD_CHECK_* queriesSQLDD.DB KB_SQL table exportsSQLGBL.1 KB_SQL global exports

Page 72: KBS Getting Started Guide€¦  · Web viewOutput reports to the screen, Windows printers, host devices, or Microsoft Word. For more information on QRE Professional, please refer

Getting Started Guide

Getting_Started_Guide.doc Page 68 of 91

File Name DescriptionSQLGBL.2 KB_SQL global exportsSQLGBL.3 KB_SQL global exportsSQLRTN.1 KB_SQL routine exportsSQLRTN.2 KB_SQL routine exportsSQLRTN.3 KB_SQL routine exportsSQLRTN.4 KB_SQL routine exportsSQLRTN.5 KB_SQL routine exportsSQLSCR.1 KB_SQL installation scriptSQLSCR.USR User-defined installation script templateSQLSITE.GBL Global export of SITE global for new installationsSTATS.DD Table statistics for the KB_SQL data dictionaryTOUPPER Unix shell script to convert lowercase filenames to

uppercaseVERSION.1 Information regarding the KB_SQL product version

Page 73: KBS Getting Started Guide€¦  · Web viewOutput reports to the screen, Windows printers, host devices, or Microsoft Word. For more information on QRE Professional, please refer

Getting Started Guide Page 69 of 91

Getting Technical SupportAt Knowledge Based Systems, we are working hard to provide you with intuitive technical products. Additionally, we try to provide superior documentation to enable you to work independently. The introduction of our new on-line knowledge base allows you to access technical information (including viewing the status of your own issues) 24 hours a day, 7 days a week.

The Online Knowledge Base

You can access the online knowledge base in the following ways:

o through the Knowledge Based Systems web site (http://www.knowledgebasedsys.com) under the Tech Support option

o directly at the support web site at http://www.knowledgebasedsys.com/support/

The available tab options in the Knowledge Base include:

Answers Frequently asked questions, how to’s, downloads, problem resolutions, and known problems are all stored in our online knowledge base. You can search by product, category, keywords, or phrases.

Ask a Question Submit a question to KBS Technical Support who will reply via email.

My Knowledge Base

Login to check the status of your questions, modify your answer update notifications, update your personal profile, or access client-only information and features.

Page 74: KBS Getting Started Guide€¦  · Web viewOutput reports to the screen, Windows printers, host devices, or Microsoft Word. For more information on QRE Professional, please refer

Getting Started Guide

Getting_Started_Guide.doc Page 70 of 91

Logging Into the Online Knowledge Base

To access the privileged area of the online knowledge base, it will be necessary to log in using an account provided by Knowledge Based Systems.

If you do not have an account for the online knowledge base, please send e-mail to KBS at [email protected] to request an account.

To log into the online knowledge base:

1. Go to the KBS Knowledge Base My Knowledge Base from the support home page (http://www.knowledgebasedsys.com/support). The login window displays.

Page 75: KBS Getting Started Guide€¦  · Web viewOutput reports to the screen, Windows printers, host devices, or Microsoft Word. For more information on QRE Professional, please refer

Getting Technical Support

Getting_Started_Guide.doc Page 71 of 91

2. Enter your User ID and Password and click the Login button to gain access to the KBS Knowledge Base and Support area. The initial support tab, Answers displays.

Page 76: KBS Getting Started Guide€¦  · Web viewOutput reports to the screen, Windows printers, host devices, or Microsoft Word. For more information on QRE Professional, please refer

Getting Started Guide

Getting_Started_Guide.doc Page 72 of 91

Searching the Online Knowledge Base

The online knowledge base is a resource for accessing answers to frequently asked questions, software and documentation downloads, known problems, and a variety of other technical information about KBS products.

Because technical information about the product is accessible only by privileged Knowledge Based Systems clients, it will be necessary to log into the online knowledge base.

To search the online knowledge base:

1. Log into the online knowledge base.

2. Depending on the screen that is displayed select the Answers tab.

Page 77: KBS Getting Started Guide€¦  · Web viewOutput reports to the screen, Windows printers, host devices, or Microsoft Word. For more information on QRE Professional, please refer

Getting Technical Support

Getting_Started_Guide.doc Page 73 of 91

3. Enter your search criteria by using one or more of the search options available.

4. Click the Search button. The results of the search will be displayed in the lower portion of the Answers page.

Page 78: KBS Getting Started Guide€¦  · Web viewOutput reports to the screen, Windows printers, host devices, or Microsoft Word. For more information on QRE Professional, please refer

Getting Started Guide

Getting_Started_Guide.doc Page 74 of 91

Submitting Questions to KBS Support

In the event that the information needed is not in the online knowledge base, questions can be submitted to the KBS Support team by doing the following:

1. Log into the online knowledge base.

2. Click the Ask A Question tab.

Page 79: KBS Getting Started Guide€¦  · Web viewOutput reports to the screen, Windows printers, host devices, or Microsoft Word. For more information on QRE Professional, please refer

Getting Technical Support

Getting_Started_Guide.doc Page 75 of 91

3. Provide the information requested in the form and click the Submit Question button at the bottom of the form.

Page 80: KBS Getting Started Guide€¦  · Web viewOutput reports to the screen, Windows printers, host devices, or Microsoft Word. For more information on QRE Professional, please refer

Getting Started Guide

Getting_Started_Guide.doc Page 76 of 91

4. The reference number for the incident will be displayed.

A confirmation email will also be sent to the email address associated with the user that is logged into the knowledge base when the question was submitted. The confirmation email will include the information provided in the form as well as the reference number.

Page 81: KBS Getting Started Guide€¦  · Web viewOutput reports to the screen, Windows printers, host devices, or Microsoft Word. For more information on QRE Professional, please refer

Getting Technical Support

Getting_Started_Guide.doc Page 77 of 91

Reviewing and Updating Incidents Submitted to KBS Support

The online knowledge base provides you with access to all incident that have been submitted to KBS Support by your organization. These incidents can be viewed, updated, closed, or reopened at any time. In order to view, update, close, or reopen incidents submitted by your organization, you must be logged into the online knowledge base.

To Displaying an Incident:

1. Log into the online knowledge base.

2. Select the My Stuff tab.

3. Click on My Questions area.

Page 82: KBS Getting Started Guide€¦  · Web viewOutput reports to the screen, Windows printers, host devices, or Microsoft Word. For more information on QRE Professional, please refer

Getting Started Guide

Getting_Started_Guide.doc Page 78 of 91

4. The incidents that the current user has submitted are listed. To view all incidents submitted by the current user’s organization, check the Display all questions for my company checkbox.

Page 83: KBS Getting Started Guide€¦  · Web viewOutput reports to the screen, Windows printers, host devices, or Microsoft Word. For more information on QRE Professional, please refer

Getting Technical Support

Getting_Started_Guide.doc Page 79 of 91

5. To view the details for an incident, click on the incident’s summary. This will display all interactions regarding the incident.

6. If you would like to provide additional information or would like to close the incident, click the Update Question button.

7. Additional information can be provided in the Results and/or Additional Information field. If you do not need additional information and would like to close the incident, click the I no longer need an answer to this question checkbox.

Page 84: KBS Getting Started Guide€¦  · Web viewOutput reports to the screen, Windows printers, host devices, or Microsoft Word. For more information on QRE Professional, please refer

Getting Started Guide

Getting_Started_Guide.doc Page 80 of 91

8. Click the Submit Update to Question button to send the update to KBS Support.

Page 85: KBS Getting Started Guide€¦  · Web viewOutput reports to the screen, Windows printers, host devices, or Microsoft Word. For more information on QRE Professional, please refer

Getting Technical Support

Getting_Started_Guide.doc Page 81 of 91

Download the KBS SQL Server

The KBS SQL Server self-extracting installation file can be downloaded by logging into the KBS Online Knowledge Base. To download the file:

1. From the My Stuff tab of the online Knowledge Base, click on the Downloads link.

Page 86: KBS Getting Started Guide€¦  · Web viewOutput reports to the screen, Windows printers, host devices, or Microsoft Word. For more information on QRE Professional, please refer

Getting Started Guide

Getting_Started_Guide.doc Page 82 of 91

Education/Training

Knowledge Based Systems offers education and training designed to help you get the most benefit from KB_SQL and to help you attain a high level of confidence with the product. The program is composed of several modular, instructor-led classes that focus on the needs and requirements of specific users ranging from the novice to the experienced Database Administrator.

Classes are available for delivery at your site or at Knowledge Based Systems’ office. Please contact KBS Technical Support if you interested in more information regarding education/training.

Page 87: KBS Getting Started Guide€¦  · Web viewOutput reports to the screen, Windows printers, host devices, or Microsoft Word. For more information on QRE Professional, please refer

Getting Started Guide Page 83 of 91

Ordering SoftwareKnowledge Based Systems is working to develop an online ordering system. Until this system is available, we ask that you continue to fax order forms (included in this section) to (703) 832-0479.

If you have any questions, please contact KBS Technical Support.

Page 88: KBS Getting Started Guide€¦  · Web viewOutput reports to the screen, Windows printers, host devices, or Microsoft Word. For more information on QRE Professional, please refer

Getting Started Guide

PRODUCT ORDER FORMEffective 01/01/2001

Product Name Number of Users ANSI Mumps Type

System Type Unit Cost *

KB_SQL v4.x 1-User Caché Run time (available for VARs only) Full development

4-Users DSM

8-Users GTM

16-Users HBOM

24-Users ISM

32-Users M21

48-Users MSM

64-Users Other

* All prices are obtained from the current KBS price list (end users) or your current VAR contract, based on the number of concurrent users and your current discount level. All payments must be in U.S. currency. By default, you will receive a copy of the license number and key by email.

Please complete delivery information on the following page!

Getting_Started_Guide.doc Page 84 of 91

Page 89: KBS Getting Started Guide€¦  · Web viewOutput reports to the screen, Windows printers, host devices, or Microsoft Word. For more information on QRE Professional, please refer

Getting_Started_Guide.doc Page 85 of 91

Ordering Software

To complete your order, please supply the following information and fax to 703- 832-0479.

If you have any questions or need assistance, please contact technical support toll free at(800) 613-5967 x208.

Company Name:

Name of Technical Contact:

Name of End-User Customer:

Shipping Address with Name of Contact:

Billing Address with Name of Contact:

(if different from above)

E-mail notification (specify address):

Your Tax Exempt Number:

Any Special Instructions:

Your Purchase Order #: /

Purchase Order Date: /

Page 90: KBS Getting Started Guide€¦  · Web viewOutput reports to the screen, Windows printers, host devices, or Microsoft Word. For more information on QRE Professional, please refer

IndexArchitecture......................................7Auto Start ................................ 32, 35Building

Your Data Dictionary..................26Building..........................................22Building..........................................26Change License Key......................31Client Connections.........................26COM/ActiveX DLL..........................14COM-based.....................................8Configuring

KB_SQL ODBC Server ......... 3, 26Server Information......................39

Configuring......................................3Configuring....................................26Configuring....................................39Configuring QRE....................... 3, 65Connections...................................38Create New Data Source window . 59 Data Dictionary Guide................8Data Sources .......................... 54, 59DATA.G.........................................46Disable Auto Start..........................39Disable Line Editing.......................16Disable Server...............................38Disk Space....................................15Display Syntax Errors....................22Documentation Download

Instructions ............................ 8, 11

Edit Network Configuration............39Education/Training .................. 69, 82Enable Server ......................... 32, 36EZQ ........................................ 14, 26Globals.. 8, 12, 15, 20, 22, 26, 31, 46Hostname/IP Address....................53Importing........................................46

Installation Procedures ........... 20, 22Integrity Check .................. 20, 22, 29InterSystems ........................... 16, 22Introduction......................................1IP Adress.......................................59JOB WATCH.................................20

Page 91: KBS Getting Started Guide€¦  · Web viewOutput reports to the screen, Windows printers, host devices, or Microsoft Word. For more information on QRE Professional, please refer

Getting_Started_Guide.doc Page 87 of 91

KB SQL Server..............................32KBS Global Import.........................46KBS Knowledge Base .............22, 70 KBS Routine Import..................46KBS SQL Server .....................22, 81KBS Support ..................... 69, 74, 77KBSODBCDriver_<version>_Build_

< Build#>.exe.............................54KBSQL_ANSI_V<Version>_Build_<

Build#>.zip...................................................22

License Agreement........................22License Key...................................31Listening........................................53Logging into KB_SQL....................35Managing ODBC Data Sources.......8Mapping.........................................26My Knowledge Base.......... 11, 69, 77 My Questions...........................77My Stuff.........................................81Namespace...................................22

Network Configuration.....................8Network Site Edit Windows .....39, 42 ODBC Driver .. 1, 3, 8, 12, 26, 53, 54,

65, 67Order Form..............................83, 84Ping...............................................63PKUnzip.........................................22Port................................................53Post-Installation.......................15, 26Pre-Installation .................. 20, 22, 29 Program Files/KBS/ODBC.......54Program Files/KBS/Server............67Programming Considerations..........8QRE Professional

QRE Professional Install File Summary................................67

QRE Professional........ 1, 7, 8, 13, 65QRE Professional..........................67QRE Services............................7, 14QRE Services Programmer’s

Reference ..............................8, 14Routine Execute............................46

Getting Started Guide Page 86 of 91

Page 92: KBS Getting Started Guide€¦  · Web viewOutput reports to the screen, Windows printers, host devices, or Microsoft Word. For more information on QRE Professional, please refer

Getting_Started_Guide.doc Page 87 of 91

Index

Routine Input Option......................22Schemas........................................26Security..........................................26Server ......................... 22, 32, 38, 39Server API .............................. 16, 39Server Initial Execute.....................39ServerAPI......................................16Shutdown.......................................38SITE EDIT............................... 26, 39Site Name window.........................26Software.............................. 3, 69, 83Solutions Provider Guide.................1SQL globals...................................20SQL Reference Guide.....................8

TCP/IP.....................................16, 39Test ODBC Data Source .........53, 63 Trace Options...........................39Unix ................................... 16, 22, 67Updating Licence Information..15, 31 User DSN......................................59User-defined Script........................45VMS Clusters .................... 16, 32, 36Website

Knowledge Based Systems.........8Website............................................8Windows..................................13, 26WinZip...........................................22