Define ODBC Database Library using Management Console



Similar documents
Technical Paper. Defining an ODBC Library in SAS 9.2 Management Console Using Microsoft Windows NT Authentication

Define an Oracle Library in SAS Management Console

Defining an OLEDB Library in SAS Management Console Using Windows Authentication

Accessing a Microsoft SQL Server Database from SAS on Microsoft Windows

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

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

Installing Cobra 4.7

Setting Up ALERE with Client/Server Data

Implementing a SAS Metadata Server Configuration for Use with SAS Enterprise Guide

Instructions for Configuring a SAS Metadata Server for Use with JMP Clinical

TAMUS Terminal Server Setup BPP SQL/Alva

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

CONTACTS SYNCHRONIZER FOR IPAD USER GUIDE

Outlook Profile Setup Guide Exchange 2010 Quick Start and Detailed Instructions

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

Setting up a database for multi-user access

Jolly Server Getting Started Guide

1. Open the preferences screen by opening the Mail menu and selecting Preferences...

Moving the TRITON Reporting Databases

Installing SQL Express. For CribMaster 9.2 and Later

INTRODUCTION: SQL SERVER ACCESS / LOGIN ACCOUNT INFO:

SQL Server Setup for Assistant/Pro applications Compliance Information Systems

1 of 10 1/31/2014 4:08 PM

Immotec Systems, Inc. SQL Server 2005 Installation Document

ADFS Integration Guidelines

STATISTICA VERSION 10 STATISTICA ENTERPRISE SERVER INSTALLATION INSTRUCTIONS

Linking Access to SQL Server

Migrating helpdesk to a new server

Sage Intelligence Financial Reporting for Sage ERP X3 Version 6.5 Installation Guide

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

How to Move an SAP BusinessObjects BI Platform System Database and Audit Database

Installation Instruction STATISTICA Enterprise Server

Cloud Services. Lync. IM/ Web Conferencing Admin Quick Start Guide

Cloud Services ADM. Agent Deployment Guide

The purpose of this document is to describe how to connect Crystal Reports with BMC Remedy AR System using ODBC.

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

SQL Tuning and Maintenance for the Altiris Deployment Server express database.

Installing LearningBay Enterprise Part 2

MobiLink Synchronization with Microsoft SQL Server and Adaptive Server Anywhere in 30 Minutes

Crystal Reports Installation Guide

eduroam Network guide configuration for Microsoft Windows 7

PrivateWire Gateway Load Balancing and High Availability using Microsoft SQL Server Replication

Installation Instruction STATISTICA Enterprise Small Business

Preparing to Install SQL Server 2005

Tool Tip. SyAM Management Utilities and Non-Admin Domain Users

Creating a System DSN for Crystal Reports to Access a Sentinel Server Database. Configuration Guide Version 1.0

WhatsUp Gold v16.2 Database Migration and Management Guide

Microsoft SQL Server 2005 How to Create and Restore Database (GRANTH3) Manually

MAPPING THE WEBDRIVE REFERENCE GUIDE

How To Use Exhange On Outlook On A Pc Or Macintosh Outlook 2007 On Your Pc Or Ipad (For Windows Xp) On Your Ipad Or Ipa (For Your Windows Xp). (For A Macintosh) On A

STEP BY STEP IIS, DotNET and SQL-Server Installation for an ARAS Innovator9x Test System

Upgrading from MSDE to SQL Server 2005 Express Edition with Advanced Services SP2

To successfully initialize Microsoft Outlook (Outlook) the first time, settings need to be verified.

WorldShip Export Shipment Data

STATISTICA VERSION 12 STATISTICA ENTERPRISE SMALL BUSINESS INSTALLATION INSTRUCTIONS

Appendix L: Running Hazus-MH with SQL Server 2005

CruzNet Secure Set-Up Instructions for Windows Vista

WhatsUp Gold v16.1 Database Migration and Management Guide Learn how to migrate a WhatsUp Gold database from Microsoft SQL Server 2008 R2 Express

National Fire Incident Reporting System (NFIRS 5.0) Configuration Tool User's Guide

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

CHARTER BUSINESS custom hosting faqs 2010 INTERNET. Q. How do I access my ? Q. How do I change or reset a password for an account?

Microsoft Office 365 Exchange Online Cloud

Active Directory Management. Agent Deployment Guide

Video Administration Backup and Restore Procedures

Fax and SMS Quickguide

Migrating a Database from Legi for Windows 2.X to MS Access

Dashboard Client Installation Guide

TSM Studio Server User Guide

Exchange Outlook Profile/POP/IMAP/SMTP Setup Guide

Application Note 116: Gauntlet System High Availability Using Replication

ing from The E2 Shop System address Server Name Server Port, Encryption Protocol, Encryption Type, SMTP User ID SMTP Password

SQL Express to SQL Server Database Migration MonitorIT v10.5

Implementing a SAS 9.3 Enterprise BI Server Deployment TS-811. in Microsoft Windows Operating Environments

Installation Guide v3.0

Tech Note 663 HMI Reports: Creating Alarm Database (WWALMDB) Reports

INSTALLATION INSTRUCTIONS FOR UKSSOGATEWAY

Microsoft Lync TM Order & Provisioning. Admin Guide

4cast Client Specification and Installation

WhatsUp Gold v16.1 Installation and Configuration Guide

DESKTOP CLIENT CONFIGURATION GUIDE BUSINESS

Shellfire L2TP-IPSec Setup Windows XP

Reconfiguring VMware vsphere Update Manager

Microsoft SQL Server Staging

PowerSchool Student Information System

Desktop Configurations For General Ledger and Financial Reports. User Guide

How to Connect to CDL SQL Server Database via Internet

Update Instructions

QUANTIFY INSTALLATION GUIDE

ODBC Client Driver Help Kepware, Inc.

How to set up Outlook Anywhere on your home system

TAMUS Remote Desktop Setup For BPP SQL & Alva

Client configuration and migration Guide Setting up Thunderbird 3.1

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

Lab: Data Backup and Recovery in Windows XP

How to share media files through Windows Media Player 11

SolarWinds Migrating SolarWinds NPM Technical Reference

Configuring Network Load Balancing with Cerberus FTP Server

Installation Manual for Setting up SAP Business Objects BI 4.0 Edge System

SEER Enterprise Shared Database Administrator s Guide

Transcription:

Define ODBC Database Library using Management Console Introduction: Open database connectivity (ODBC) standards provide a common interface to a variety of databases, including AS/400, dbase, Microsoft Access, ORACLE, Paradox, and SQL Server databases. This paper describes how to define an ODBC library, using Sql Server ODBC driver, in the SAS Management Console. By following these six steps, you can access your ODBC library from Business Intelligence (BI) clients. 1. Configure the ODBC Data Source 2. Define libname statement with the ODBC Engine 3. Setup the ODBC user in the SAS Management Console 4. Configure the ODBC Database Server 5. Configure the ODBC Database Library 6. Verify the libname statement 7. Import DBMS tables Before you begin: The SAS/ACCESS Interface to ODBC software provides an interface between the SAS System and any ODBC-compliant data. The ODBC driver for the database to which you want to gain access must be installed and configured before you can exchange data from SAS. Examples in this paper use the Microsoft SQL Server ODBC driver. 1. Configure the ODBC Data Source (DSN) The data source is configured using the ODBC Administrator window. 1. Start > Settings > Control Panel > Administrative Tools > Data Source (ODBC) 2. The Data Source Administrator window opens and the USER DSN is displayed in the active window 3. Select System DSN Tab and Click ADD 4. Choose SQL Server and click Finish 5. Create New Data Source window opens. Fill in the fields as follows: Data Source Name: enter a name (SQLSERVER) 6. Description: Leave blank and click OK 7. Server: Enter the server name that you use to login to sql server database: SQLSERVER 8. Click Next 9. SQL Options: Select * with SQL Server authentication using a login ID and password entered by the user for the SQL Server LoginID use SQL SERVER USERID and password use SQL SERVER PASSWORD 10. Select Next 11. Select Change the default database to database of choice 1

12. Select Use ANSI quoted identifiers 13. Select Use ANSI nulls, padding and warnings 14. Click Next 15. Click Next and Finish 16. Click Test Data Source 2

2. Libname Statement with the ODBC Engine Before configuring the libname in the SAS Management Console, you must make sure the SAS/ACCESS is able to communicate with the data source that you specified in Step 1. 1. Start -> Programs -> SAS -> 9.1 -> Start SAS 2. Submit following libname statement from the editor window, libname odbclib odbc dsn=sqlserver uid=sqldbpwd pwd=sqldbpwd; The Log window is displayed: NOTE: Libref ODBCLIB was successfully assigned as follows: Engine: ODBC Physical Name: sqlserver 3. Setup the ODBC user in the Management Console Defining a user involves identifying information about the users, defining an ODBC users login IDs, and authenticating domains. 1. Start the SAS Metadata Server. Start -> Programs -> SAS -> BIArchitecture -> Start SAS Metadata Server 3

2. Start the SAS Management Console as a SAS Administrator. Start > Program > SAS > BIArchitecture -> Start Management Console. 3. Select the User Manager plug-in in the navigation tree, Right Click -> New Group. 4. Define a new group and give it a name. Select the Members tab 4

5. Add the appropriate users/groups 6. Click the Logins tab and click the New button. New Login Properties window is displayed. 5

7. Supply the login information for the SQL Server. Click New to create a new Authentication Domain 8. Provide a domain name Sql Server Login Domain and a description when connecting with ODBC. Select OK. Description is optional. 6

9. Choose the new Domain. Click OK. 10. Select OK. A new group is defined and now SQL Server Login Domain is listed in the User Manager. Select OK to exit this window. Close SAS Management Console. 4. Configure the ODBC Database Server A database server contains third party data. You can use the SAS Management Console to create definitions for the database servers containing data from many different data sources, enabling SAS applications to access the data. To define an ODBC database server use the following steps: Start Management Console with SASDEMO id. Management console displays the id being used at the bottom. Make sure it is not SASADM. If you use SASADM (unrestricted) userid, when defining the library, the metadata server returns password as "{sas001}kioqkioqkio=" which is an encryption of all asterisks rather than the correct password. From the navigation tree, select the Server Manager plug-in 1) Select New Server from the pop-up menu, toolbar, or actions menu. 7

2) The New Server Wizard starts. Select ODBC Server from the Database Servers folder and click Next to continue. 8

3) In the Name and Description window, specify a name sqlserver_odbc_server. A description is optional. Click Next to continue. 9

4) Select ODBC-Microsoft SQL Server (PC Client) for the Data Source Type using the down arrow key. Click Next to continue. 10

5) Select Datasrc and enter the data source name SQLSERVER. (the data source that created in Step 1 6) Select Sql Server Login Domain for the Authentication Domain. Click Next. 7) Click Finish to define the database server after you verify the information. 5. Configure the DBC Database Library The Data Library Manager plug-in allows you to define SAS libraries that point to data from other databases or data analysis applications. The library definitions that you create perform similar function as a SAS/ACCESS LIBNAME statement in SAS. To create an ODBC database library use the following steps: 1. Select the Data Library Manager plug-in and then select the SAS Libraries folder. 11

2. 3. Select New Library from the pop-up menu 12

4. 5. Select ODBC from the New Library Wizard and click Next. 13

6. 7. sqlserver_odbc_library for the New ODBC Library. A description is optional. 14

8. 9. Select Next. Enter the libref sqlodbc and make sure that the engine is ODBC and click Next. 15

10. Select the Database Server, sqlserever_odbc_server, that you have defined in step 4. 11. Select SQL Server Login Domain for the Default Login. (click on down arrow to select) 12. 13. Select New for the Database Schema. 14. Enter the name SQL Server schema for the schema. A description is optional. 16

15. 17

16. 17. Enter appropriate Schema, dbo, for the ODBC Database Schema name and make sure that sqlserver_odbc_server is listed for the ODBC server. 18. Select Next and then Finish. 19. Verify the information in the New Library Wizard and click Next. 20. Select SASMAIN for the server name. 21. Click Next verify the information and click Finish. Sqlserver_odbc_library is listed in the Data Library folder. 6. Verify the Libname Statement You can use the Management Console to verify the library before using from other client. 1) Expand Data Library 2) Select Sqlserver_odbc_library Right Click and Select Display Libname 3) Libname name should display similar to the following. LIBNAME sqlodbc ODBC DATASRC=sqlserver USER=dbitest PASSWORD="{sas001}ZQJqZ3JwMQ==" ; 4) Above libname can be submitted from the SAS Editor Window. 18

7. Import the Table Entering metadata for a library does not itself provide access to tables in the library. You must also specify metadata for all tables that you want to access in the library. With SAS 9.1(TS1M3), you can use SAS Management console to import the tables. 1) Right click on the library Sqlserver_odbc_library 2) Select Import Tables, 3) Select Next (SASMAIN), verify the SAS library connection information, 4) Select Next, list of SQL Server tables is displayed. 5) Select one table Note: Once the metadata is added for the table, right click on the table, select properties, Select Authorization tab and appropriate permission can be added for the table. Documentation For further information, the following documentation is also available: * SAS 9.1.3 Intelligence Platform: Data Administration Guide at http://support.sas.com/documentation/configuration/bidsag.pdf * SAS 9.1.3 ETL Studio User s Guide at http://support.sas.com/documentation/onlinedoc/etls/91usage.pdf * SAS Enterprise Guide at http://support.sas.com/documentation/onlinedoc/guide/ * SAS Open Metadata Architecture at http://support.sas.com/rnd/eai/openmeta/index.html * SAS/ACCESS(R) 9.1.3 for Relational Databases: Reference, Chapter SAS/Access for ODBC http://support.sas.com/onlinedoc/913/docmainpage.jsp 19