Querying Databases Using the DB Query and JDBC Query Nodes



Similar documents
Voyager Reporting System (VRS) Installation Guide. Revised 5/09/06

How-to configure Auditing for IDENTIKEY Authentication Server 3.2 to a remote Oracle Database on a standalone Microsoft machine.

Migrating helpdesk to a new server

Installing SQL Express. For CribMaster 9.2 and Later

These notes are for upgrading the Linko Version 9.3 MS Access database to a SQL Express 2008 R2, 64 bit installations:

Installation Instruction STATISTICA Enterprise Small Business

QUANTIFY INSTALLATION GUIDE

PowerSchool Student Information System

STATISTICA VERSION 12 STATISTICA ENTERPRISE SMALL BUSINESS INSTALLATION INSTRUCTIONS

Immotec Systems, Inc. SQL Server 2005 Installation Document

How To Create An Easybelle History Database On A Microsoft Powerbook (Windows)

Converting InfoPlus.21 Data to a Microsoft SQL Server 2000 Database

Millennium Drive. Installation Guide

Setting up an MS SQL Server for IGSS

CIMHT_006 How to Configure the Database Logger Proficy HMI/SCADA CIMPLICITY

Aradial Installation Guide

STATISTICA VERSION 9 STATISTICA ENTERPRISE INSTALLATION INSTRUCTIONS FOR USE WITH TERMINAL SERVER

SQL EXPRESS INSTALLATION...

Connect to MySQL or Microsoft SQL Server using R

Kaseya Server Instal ation User Guide June 6, 2008

General Tips: Page 1 of 20. By Khaled Elshaer.

Virtual Office Remote Installation Guide

OpenScape Business V2

Creating a New Database and a Table Owner in SQL Server 2005 for exchange@pam

Video Administration Backup and Restore Procedures

Using Microsoft Windows Authentication for Microsoft SQL Server Connections in Data Archive

Palomar College Dial-up Remote Access

TecLocal 4.0 MultiUser Database

WhatsUp Gold v16.3 Installation and Configuration Guide

EventSentry Overview. Part I Introduction 1 Part II Setting up SQL 2008 R2 Express 2. Part III Setting up IIS 9. Part IV Installing EventSentry 11

Migrating MSDE to Microsoft SQL 2008 R2 Express

Installing Cobra 4.7

Installation Instruction STATISTICA Enterprise Server

Application Notes for Calabrio Workforce Management Release 9.2(1) SR3 with Avaya Aura Contact Center Release 6.4 Issue 1.0

Crystal Reports Installation Guide

ReportBy ODBC Connection setup

Print Audit 6 - SQL Server 2005 Express Edition

How to Connect to CDL SQL Server Database via Internet

2. Unzip the file using a program that supports long filenames, such as WinZip. Do not use DOS.

Linking Access to SQL Server

Setting up Sharp MX-Color Imagers for Inbound Fax Routing to or Network Folder

FTP, IIS, and Firewall Reference and Troubleshooting

Connecting to SQL server

ilaw Installation Procedure

Oracle Enterprise Manager. Description. Versions Supported

SQL Server 2008 R2 Express Installation for Windows 7 Professional, Vista Business Edition and XP Professional.

WhatsUp Gold v16.1 Installation and Configuration Guide

Install MS SQL Server 2012 Express Edition

Purple Sturgeon Standard VPN Installation Manual for Windows XP

Setting Up ALERE with Client/Server Data

Configuring the WT-4 for ftp (Ad-hoc Mode)

To install the SMTP service:

Oracle Enterprise Manager. Description. Versions Supported

Installation of MSSQL Server 2005 Express Edition and Q-Monitor 3.x.x

Installation Guide for Websphere ND

HP Client Automation Standard Fast Track guide

TSM for Windows Installation Instructions: Download the latest TSM Client Using the following link:

Install SQL Server 2014 Express Edition

Dell Statistica Statistica Enterprise Installation Instructions

Enterprise Manager. Version 6.2. Installation Guide

SQL Server 2008 R2 Express Edition Installation Guide

SEER Enterprise Shared Database Administrator s Guide

Intellicus Enterprise Reporting and BI Platform

Interact for Microsoft Office

etoken Enterprise For: SSL SSL with etoken

Windows Clients and GoPrint Print Queues

TECHNICAL NOTE. The following information is provided as a service to our users, customers, and distributors.

MICROSTRATEGY 9.3 Supplement Files Setup Transaction Services for Dashboard and App Developers

Installing The SysAidTM Server Locally

Step-by-Step Setup Guide Wireless File Transmitter FTP Mode

4D v1x ODBC Driver INSTALLATION GUIDE

Setting up a database for multi-user access

Reconfiguring VMware vsphere Update Manager

IIS, FTP Server and Windows

Installing the BlackBerry Enterprise Server Management Software on an administrator or remote computer

Important Notes for WinConnect Server VS Software Installation:

CONTACTS SYNCHRONIZER FOR IPAD USER GUIDE

Installation of MSSQL Server 2008 Express Edition and Q-Monitor 3.x.x

Outlook Profile Setup Guide Exchange 2010 Quick Start and Detailed Instructions

NetBeat NAC Version 9.2 Build 4 Release Notes

How to install and use the File Sharing Outlook Plugin

Bitrix Site Manager ASP.NET. Installation Guide

Installation manual SAP Business Objects Data Services XI 3.2 on a Microsoft Windows 7-64-bit machine

Getting Started using the SQuirreL SQL Client

ODBC Driver Version 4 Manual

SSL VPN Setup for Windows

Point of Sale 2015 Enterprise. Installation Guide

Elluminate Live! Access Guide. Page 1 of 7

How to gain direct access to SQL Server at Garching via SSH

Important Notes for WinConnect Server ES Software Installation:

FileMaker 13. ODBC and JDBC Guide

NovaBACKUP xsp Version 15.0 Upgrade Guide

Reference and Troubleshooting: FTP, IIS, and Firewall Information

Installation Troubleshooting Guide

Exchange Outlook Profile/POP/IMAP/SMTP Setup Guide

Active Directory Integration for Greentree

Step-by-Step Setup Guide Wireless File Transmitter FTP Mode

Server Installation, Administration and Integration Guide

Guide to Installing BBL Crystal MIND on Windows 7

Transcription:

Querying Databases Using the DB Query and JDBC Query Nodes Lavastorm Desktop Professional supports acquiring data from a variety of databases including SQL Server, Oracle, Teradata, MS Access and MySQL. The DB Query and JDBC Query nodes in the Acquisition library allow for querying data from a database. This Tech Note details how to configure the DB Query node to connect to SQL Server, MS Access and Oracle databases and how to connect to a database using JDBC with the JDBC Query node. SQL Server and MS Access The DB Query node supports a 32-bit ODBC connection to a SQL Server and MS Access database. To setup the ODBC link, you must first configure an ODBC DSN. If you are running on a 32-bit OS, the OBDC Data Source Administrator can be accessed through Administrative Tools in the Control Panel. Double-click on Data Sources (ODBC) to open the application. If you are running a 64-bit OS, you can access the 32-bit OBDC Data Source Administrator by running C:\Windows\SysWOW64\odbcad32.exe. Once the ODBC Data Source Administrator is launched, you can select either the User DSN or the System DSN tab. A User DSN is only accessible by the user who created it, whereas a System DSN is available to all users. In this case, we will create a System DSN. Click on the Add Button: 1 Lavastorm Desktop Professional Tech Note Lavastorm Analytics 2012 www.lavastorm.com Page 1

MS Access From the list of drivers, select Microsoft Access Driver. Enter Data Source Name and browse to your MS Access Database by clicking the Select button. 2 Lavastorm Desktop Professional Tech Note Lavastorm Analytics 2012 www.lavastorm.com Page 2

SQL Server Select SQL Server from the list of drivers. 3 Lavastorm Desktop Professional Tech Note Lavastorm Analytics 2012 www.lavastorm.com Page 3

Enter a name for the Data Source and either type in the server name and SQL Server instance name in the form of servername\instancename or select it from the drop down box. Click Next. Select the authentication mode to log into the SQL Server. Enter the Login ID and Password if you selected SQL Server authentication. Click Next. To select the correct database, check Change the default database to and select the database from the drop down list. If you do not see the database that you want to connect to in the list, make sure that the user you entered in the previous step has rights to the database. Click Next. 4 Lavastorm Desktop Professional Tech Note Lavastorm Analytics 2012 www.lavastorm.com Page 4

Click Finish. When the summary screen appears, click Test Data Source to make sure the DSN is configured correctly. Oracle You will need client software in order to connect to an Oracle database. Here we use Oracle s Instant Client. Download the Instant Client from Oracle s website. Extract the files and place them in a directory on your hard drive. Create a txt file in the directory where you extracted the Instant Client files. Name the file tnsnames.ora. Fill in the connection information for your database (Identifier, host and SID). 5 Lavastorm Desktop Professional Tech Note Lavastorm Analytics 2012 www.lavastorm.com Page 5

You will need to set the path variable to include the location of the tnsnames.ora file. Open System in the Control Panel. Select Advanced system settings and Click the Advanced tab in the System Properties window. Click on Environment Variables. To change the path for all users, highlight Path under System variables and select Edit. If you want to change the path variable for the current user only, highlight Path under User variables and Click Edit. Under Variable value, add the path to the Instant Client files. Click OK. You must also create a new System Variable called TNS_ADMIN which points to the Oracle directory. To do so, click New. Set the Variable name to TNS_ADMIN and the Variable value to the Instant Client directory. Click OK. 6 Lavastorm Desktop Professional Tech Note Lavastorm Analytics 2012 www.lavastorm.com Page 6

Configuring the DB Query node Once the database connections are setup, you can configure the DB Query node to query data from the database. SqlQuery: Enter the query to extract the data. DbUser: Enter the username to connect to the database. DbPassword: Enter the password to connect to the database. DbServer: Enter the name of the Data Source Connection. DbInterface: Enter the type of interface. 1. odbc MS Access and SQL Server 2. oci Oracle 3. cli Teradata 7 Lavastorm Desktop Professional Tech Note Lavastorm Analytics 2012 www.lavastorm.com Page 7

JDBC Query node The JDBC Query node allows for the use of third-party JDBC drivers to connect to and query a database using JDBC. The JDBC driver (jar file) must be copied into the Lavastorm\LAE X.X\lib\java\ext folder prior to running the node. Create the ext folder if it does not exist. The JDBC Query node parameters are as follows: SqlQuery: Enter the query to extract the data. SqlQueryFieldBindings(optional): Enter a comma separated list of the node s input fields which bind to SQL query parameters. The number of input field must match the number of parameters. DbUser: Enter the username to connect to the database. DbPassword: Enter the password to connect to the database. DbUrl: Enter the driver s database URL in the form jdbc:subprotocol:subname. For example, jdbc:sqlserver://localhost:1433;databasename=customerdata;. Provided by the driver s vendor. DbDriver: Enter the class name of the JDBC driver. Provided by the driver s vendor. SQL Server When connecting to a SQL Server database using JDBC, if you receive an error stating that the TCP/IP connection was refused, you may need to enable the TCP/IP protocol for SQL Server. To do so, open the SQL server Configuration Manager under Programs->Microsoft SQL Server - >Configuration Tools. Click on Protocols for SQL Server under SQL Server Network Configuration. Right-click on TCP/IP and select Properties. Under the Protocol tab set Enabled to Yes. Under the IP Addresses tab, scroll down to IP All and set the TCP Port to 1433. 8 Lavastorm Desktop Professional Tech Note Lavastorm Analytics 2012 www.lavastorm.com Page 8

9 Lavastorm Desktop Professional Tech Note Lavastorm Analytics 2012 www.lavastorm.com Page 9