Defining an OLEDB Library in SAS Management Console Using Windows Authentication



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

Define ODBC Database Library using Management Console

Accessing a Microsoft SQL Server Database from SAS on Microsoft Windows

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

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

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

Installing SQL Express. For CribMaster 9.2 and Later

STATISTICA VERSION 10 STATISTICA ENTERPRISE SERVER INSTALLATION INSTRUCTIONS

Video Administration Backup and Restore Procedures

Moving the TRITON Reporting Databases

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

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

NetSupport DNA Configuration of Microsoft SQL Server Express

Active Directory Management. Agent Deployment Guide

Preparing to Install SQL Server 2005

Installing Cobra 4.7

Cloud Services ADM. Agent Deployment Guide

SQL Server Setup for Assistant/Pro applications Compliance Information Systems

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

Crystal Reports Installation Guide

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

Nexio Connectus Cluster Set Up with SQL Server Backend

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

Outlook Profile Setup Guide Exchange 2010 Quick Start and Detailed Instructions

SAS Activity-Based Management Server Software Release 6.0 for Windows

Migrating MSDE to Microsoft SQL 2008 R2 Express

Technical Bulletin. SQL Express Backup Utility

Creating IBM Cognos Controller Databases using Microsoft SQL Server

NETWRIX CHANGE NOTIFIER

Immotec Systems, Inc. SQL Server 2005 Installation Document

NetSupport DNA Configuration of Microsoft SQL Server Express

Sitecore Ecommerce Enterprise Edition Installation Guide Installation guide for administrators and developers

Sage 200 Web Time & Expenses Guide

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

LANDESK Service Desk. Desktop Manager

PRODUCT WHITE PAPER LABEL ARCHIVE. Adding and Configuring Active Directory Users in LABEL ARCHIVE

1. CONFIGURING REMOTE ACCESS TO SQL SERVER EXPRESS

EventTracker: Support to Non English Systems

Jolly Server Getting Started Guide

Reconfiguring VMware vsphere Update Manager

Dell Statistica Document Management System (SDMS) Installation Instructions

INTRODUCTION: SQL SERVER ACCESS / LOGIN ACCOUNT INFO:

Wavecrest Certificate

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

LepideAuditor Suite for File Server. Installation and Configuration Guide

Print Audit 6 - SQL Server 2005 Express Edition

Reconfiguring VMware vsphere Update Manager

Customer Tips. Configuring Color Access on the WorkCentre 7328/7335/7345 using Windows Active Directory. for the user. Overview

Using DBMoto 7 in a Microsoft Windows Cluster

Microsoft Business Intelligence 2012 Single Server Install Guide

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

Installation Instruction STATISTICA Enterprise Server

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

ADFS Integration Guidelines

Installing and Configuring SQL Express 2008 R2 for Supply Chain Guru

Active Directory integration with CloudByte ElastiStor

SAS 9.3 Foundation for Microsoft Windows

Connecting to SQL server

Configuring Network Load Balancing with Cerberus FTP Server

BusinessObjects Enterprise XI Release 2

4cast Client Specification and Installation

StarWind SMI-S Agent: Storage Provider for SCVMM April 2012

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

SAS 9.4 PC Files Server

WhatsUp Gold v16.2 Database Migration and Management Guide

Setting up a database for multi-user access

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

ACT! by Sage. Premium for Workgroups 2007 (9.0) Administrator s Guide to the ACT! Reader Utility

Creating and Issuing the Workstation Authentication Certificate Template on the Certification Authority

Specops Command. Installation Guide

0651 Installing PointCentral 8.0 For the First Time

Configuring Color Access on the WorkCentre 7120 Using Microsoft Active Directory Customer Tip

BSDI Advanced Fitness & Wellness Software

Technical Paper. Provisioning Systems and Other Ways to Share the Wealth of SAS

Defender Token Deployment System Quick Start Guide

Sage HRMS 2014 Sage Employee Self Service Tech Installation Guide for Windows 2003, 2008, and October 2013

Working with SQL Server Integration Services

Tech Note 128 Configuring InBatch For Standalone PCs With SQL Server and IndustrialSQL Server

Automated backup. of the LumaSoft Gas database

StarWind iscsi SAN & NAS: Configuring HA Shared Storage for Scale- Out File Servers in Windows Server 2012 January 2013

SELF SERVICE RESET PASSWORD MANAGEMENT DATABASE REPLICATION GUIDE

Deploying Physical Solutions to InfoSphere Master Data Management Server Advanced Edition v11

Authorware Install Directions for IE in Windows Vista, Windows 7, and Windows 8

Secure Agent Quick Start for Windows

Setting Up ALERE with Client/Server Data

BillQuick Installation Guide for Microsoft SQL Server 2005 Express Edition

Reconfiguration of VMware vcenter Update Manager

Embarcadero Performance Center 2.7 Installation Guide

QUANTIFY INSTALLATION GUIDE

TAMUS Terminal Server Setup BPP SQL/Alva

Installation Instruction STATISTICA Enterprise Small Business

Installing the ASP.NET VETtrak APIs onto IIS 5 or 6

StarWind iscsi SAN & NAS: Configuring HA Storage for Hyper-V October 2012

Registering and Unregistering Laserfiche Repositories

StarWind iscsi SAN & NAS: Configuring HA File Server on Windows Server 2012 for SMB NAS January 2013

WhatsUp Gold v16.1 Installation and Configuration Guide

Xcalibur Global Version 1.2 Installation Guide Document Version 3.0

StarWind iscsi SAN Software: Using StarWind with MS Cluster on Windows Server 2008

Using Entrust certificates with Microsoft Office and Windows

Transcription:

Defining an OLEDB Library in SAS Management Console Using Windows Authentication Adding a User with the SAS Management Console User Manager Defining the OLEDB Server Defining the OLEDB Library Verifying the Library Definition and Importing SQL Server Tables See Also This document explains how to define an OLEDB library in SAS Management Console in order to access the Microsoft SQL Server using Windows authentication. The following prerequisites are necessary before you begin defining an OLEDB library. Make sure that your user ID (entered in the form domain\userid) has Login as batch rights assigned. For details on assigning user rights, refer to your Windows operating system documentation. SAS/ACCESS Interface to OLE DB and the OLE DB provider for the Microsoft SQL Server must be installed on the same machine on which SAS runs. Before you configure the library in SAS Management Console, make sure that you can submit a LIBNAME statement successfully in base SAS software. Example of a LIBNAME Statement libname sqlole oledb init_string="provider=sqloledb.1; Integrated Security=SSPI; Persist Security Info=True; Initial Catalog=Northwind; Data Source=bluefin.na.sas.com" schema=dbo; Note: If you cannot see SQL Server tables in the SAS Explorer window, then you need to submit the following SQL procedure (PROC SQL) to find the table names and the corresponding schema for each table. proc sql; connect to oledb; select table_name, table_schema from connection to oledb(oledb::tables); quit; Copyright 2007, SAS Institute Inc. All rights reserved. 1

Adding a User with the SAS Management Console User Manager The first step in defining an OLEDB library is to add your user definition to SAS Management Console by using the User Manager plug-in. The following steps show how to add your user definition. 1. Start SAS Management Console using your administrator account. Display 1. SAS Management Console 2. From the SAS Management Console navigation tree, right-click the User Manager icon; then select New User, as shown in the next display. Copyright 2007, SAS Institute Inc. All rights reserved. 2

Display 2. Selecting New User from the User Manager Icon 3. Selecting New User displays the New User Properties dialog box, shown in Display 3. Display 3. New User Properties Dialog Box Copyright 2007, SAS Institute Inc. All rights reserved. 3

4. On the General tab, enter your name in the Name field. Note that you can enter any user name you want to use (for example, a single name, your full name, and so on). 5. Select the Logins tab and click New to display the New Login Properties dialog box. Display 4. New Login Properties Dialog Box 6. Enter your Windows domain and user ID (domain\userid) and the password. 7. Select DefaultAuth as the authentication domain. 8. Click OK to add the login to the user. The application will display the following verification message. Display 5. New User Properties Verification Message 9. Click OK and the New User Properties Screen will display again. Copyright 2007, SAS Institute Inc. All rights reserved. 4

10. Click the Logins tab to see the new login properties. Display 6. New User Properties Dialog Box 11. Click OK to close the New User Properties dialog box. 12. Click User Manager to verify that your name appears in the user name list, as shown in the next display. Copyright 2007, SAS Institute Inc. All rights reserved. 5

Display 7. New User Listing in the User Manager Panel Defining the OLEDB Server 1. From the navigation tree, right-click Server Manager; then select New Server to display the New Server Wizard. 2. In the wizard, expand the Database Servers folder and select OLE DB Server. Display 8. New Server Wizard with OLE DB Server Selected Copyright 2007, SAS Institute Inc. All rights reserved. 6

3. Click Next, which displays data entry fields where you can enter the name and description for the new OLE DB Server. Display 9. OLE DB Server Name and Description Fields in the New Server Wizard 4. In the Name field, type the server name (for example, sqlserver_oledb_ntauth). 5. Click Next to display the server properties. Display 10. Server Properties Dialog Box in the New Server Wizard Copyright 2007, SAS Institute Inc. All rights reserved. 7

WARNING: The following server properties displayed in the data entry box are default values and should NOT be changed: Major Version Number Minor Version Number Software Version Vendor Note: The Associated Machine property refers to the SAS Application Server - NOT the SQL Server machine. 6. Click Next to display the OLE DB connection information. Display 11. OLE DB Connection Information Dialog Box 7. Type the server name "bluefin.na.sas.com" (in quotation marks) for the SQL Server in the Datasource field. 8. Type SQLOLEDB.1 in the Provider field. 9. Click the OLE DB Connection Information Options button to display the OLE DB Connection Information Options dialog box. Display 12. OLE DB Connection Information Options Dialog Box Copyright 2007, SAS Institute Inc. All rights reserved. 8

11. Enter the following text In the Init String field: "Provider=SQLOLEDB.1; Integrated Security=SSPI; Persist Security Info=True; Initial Catalog=Northwind; Data Source=bluefin.na.sas.com" Note: Type the entire string, within quotation marks (" "), all on one line. 12. Click OK. 13. Click Next. A confirmation screen will display with a message stating that the definition of a new server has been completed. 14. Then click Finish. 15. In SAS Management Console, click the Server Manager icon. Display 13. Server Manager Icon The new OLEDB server name, sqlserver_oledb_ntauth, should appear in the Name list in the right panel. Copyright 2007, SAS Institute Inc. All rights reserved. 9

Defining the OLEDB Library 1. From the navigation tree in SAS Management Console, expand Data Library Manager. 2. Under Data Library Manager, right-click SAS Libraries and select New Library. Display 14. Selecting New Library from the SAS Libraries Menu 3. Select New Library to start the New Library Wizard. Copyright 2007, SAS Institute Inc. All rights reserved. 10

Display 15. Expanded Database Libraries Folder with OLE DB Library Selected 4. In the wizard, expand the Database Libraries folder and select OLE DB Library, as shown in Display 15. Then click Next. Display 16. Entering the OLE DB Library Name and Description Copyright 2007, SAS Institute Inc. All rights reserved. 11

5. Type the library name (for example, sqlserver_oledb_ntauth_lib) in the Name field, as shown previously in Display 16. Then click Next. Display 17. Entering Library Properties 6. Type the libref name (for example, sqloledb) in the Libref field (Display 17) and click Next. Display 18. Selecting the External Database Server Copyright 2007, SAS Institute Inc. All rights reserved. 12

7. In the Database Server field, select the OLE DB server (sqlserver_oledb_ntauth) that you created previously in "Defining the OLEDB Server." 8. Click the New button that is to the right of the Database Schema field to display the New OLEDB Database Schema wizard. Display 19. The New OLEDB Database Schema Wizard 9. In the Name field, type a name (for example, sqlserver_oledb_ntauth_schema) for the new OLE DB schema, as shown in Display 19. Note: The OLE DB Schema name entered in this window is NOT synonymous with the database schema name that is shown in Step 12. You can use any name for the OLE DB schema. 10. In the Description field, type a suitable schema description. Note: Use of the Description field is optional. Click Next to display the schema properties' page. Copyright 2007, SAS Institute Inc. All rights reserved. 13

Display 20. Entering Schema Properties 11. In the Database Schema Name field (Display 20), type a name for the database schema. Note: This is the same database schema name specified in the LIBNAME statement shown previously: libname sqlole oledb init_string="provider=sqloledb.1; Integrated Security=SSPI; Persist Security Info=True; Initial Catalog=Northwind; Data Source=bluefin.na.sas.com" schema=dbo; Note that the database schema name must be uppercase in the LIBNAME statement. 12. Click Next and review the database schema information, as shown in Display 21. Copyright 2007, SAS Institute Inc. All rights reserved. 14

Display 21. The Database Schema Information 13. Click Next, which takes you to the next screen where you will select the server to which you want to assign the library. 14. Select SASMain as the server to which the library will be assigned. Warning: Server selection is NOT optional as indicated in the wizard. You MUST select a server (SASMain in this example). Display 22. Assigning the Library to the SASMain Server Copyright 2007, SAS Institute Inc. All rights reserved. 15

15. Click Next to display the definition of the new library. Display 23. New Library Definition 16. Verify the library information displayed on the screen. Then click Finish. The new library (sqlserver_oledb_ntauth_lib) should now appear in the list of libraries. Verifying the Library Definition and Importing SQL Server Tables To check the accuracy of the LIBNAME statement that was generated in the previous section, perform the following steps: Verify that the SQL Server Tables Are Listed in the SAS Explorer 1. Close SAS Management Console and restart it using the same Windows ID (domain\userid) that you used in Step 6 in the section "Adding a User with the SAS Management Console User Manager." 2. From the navigation tree in SAS Management Console, right-click Data Library Manager. 3. Under Data Library Manager, right-click the library that you just created (sqlserver_oledb_ntauth_lib) and select Display Libname, as shown in the next display. Copyright 2007, SAS Institute Inc. All rights reserved. 16

Display 24. Selecting Display Libname from the sqlserver_oledb_ntauth_lib Menu The Display Libname message window appears (Display 25) with the LIBNAME statement that is generated for you server. Display 25. The LIBNAME Statement Generated for sqlserver_oledb_ntauth_lib.. 4. Copy the LIBNAME statement from the Display Libname window and paste it into your SAS Program Editor. 5. Submit the LIBNAME statement and verify that the appropriate tables are listed in the SAS Explorer window. Import the SQL Server Tables 1. From the navigation tree in SAS Management Console, expand Data Library Manager. 2. Under Data Library Manager, right-click sqlserver_oledb_ntauth_lib and select Import Tables. Copyright 2007, SAS Institute Inc. All rights reserved. 17

Display 26. Selecting Import Tables from the sqlserver_oledb_ntauth_lib Menu 3. In the SAS Library field, click the down arrow at the right of the field. From the resulting drop-down list, select your application server (SASMain, in this example), and click Next. Display 27. Selecting an Application Server Copyright 2007, SAS Institute Inc. All rights reserved. 18

4. Click Next again, and the Define Tables dialog box displays with a list of SQL server tables. Display 28. Selection List of SQL Server Tables 5. In the list, click the table name for which you want to import metadata. 6. Click Next and the application will display the table you selected. 7. Click Finish and you will now be able to use the specified table in any SAS BI client. See Also "Relational Database Sources" in the SAS OnlineDoc for the SAS 9.1.3 Intelligence Platform: Data Administration Guide. To get to "Relational Database Sources,", follow these steps: 1. Go to the SAS 9.1.3 Intelligence Platform: Administration Documentation Web site: support.sas.com/documentation/configuration/913admin.html 2. In the Administration section (near the bottom of this page), click the SAS OnlineDoc link under SAS 9.1.3 Intelligence Platform: Data Administration Guide to open SAS Online Doc. 3. Then click "Relational Database Sources" in the right panel. SAS/ACCESS for OLE DB in SAS/ACCESS 9.1.3 for Relational Databases: Reference, Second Edition (in the SAS 9.1.3 OnlineDoc: support.sas.com/onlinedoc/913/docmainpage.jsp Copyright 2007, SAS Institute Inc. All rights reserved. 19

You can find "SAS/ACCESS for OLE DB" by selecting SAS/ACCESS Software SAS/ACCESS for Relational Databases: Reference DBMS-Specific Reference SAS/ACCESS for OLE DB. Comparing OLE DB and ODBC: ftp.sas.com/techsup/download/v8papers/odbcdb.pdf Note: This document applies to SAS 9.1.3 and higher. SAS and all other SAS Institute Inc. product or service names are registered trademarks or trademarks of SAS Institute Inc. in the USA and other countries. indicates USA registration. Other brand and product names are trademarks of their respective companies. Copyright 2007, SAS Institute Inc. All rights reserved. 20