Technical Paper. Defining an OLEDB Using Windows Authentication in SAS Management Console

Similar documents
Technical Paper. Accessing a Microsoft SQL Server Database from SAS under Microsoft Windows

Technical Paper. Implementing a SAS 9.3 Enterprise BI Server Deployment in Microsoft Windows Operating Environments

Technical Paper. Defining a Teradata Library with the TERADATA Engine in SAS Management Console

SAS Model Manager 2.3

Administering SAS Enterprise Guide 4.2

SAS. Information Map Studio 3.1: Creating Your First Information Map

Configuring SAS Web Report Studio Releases 4.2 and 4.3 and the SAS Scalable Performance Data Server

SAS Enterprise Guide 4.3

SAS Model Manager 2.2. Tutorials

SAS Data Integration Studio 3.3. User s Guide

SAS Profitability Management 1.3. Installation Instructions

SAS Contextual Analysis 13.2: Administrator s Guide

SAS Clinical Data Integration 2.4

SAS Intelligence Platform

Installation and Configuration Instructions. SAS Model Manager API. Overview

Installation Instructions for SAS Activity-Based Management 6.2

SAS Enterprise Case Management 2.1. Administrator s Guide

Using the SQL Editor. Overview CHAPTER 11

SAS Energy Forecasting 3.1 Installation Guide

SAS Contextual Analysis 14.3: Administrator s Guide

SAS Enterprise Case Management 2.2. Administrator s Guide

Extending the Scope of Custom Transformations

SAS 9.4 Management Console: Guide to Users and Permissions

SAS Federation Server 4.2: Migration Guide

SAS Forecast Server 3.1. Administrator s Guide to Installation and Configuration

Installation Instructions for SAS/ACCESS Interface to SAP BW

Improving Your Relationship with SAS Enterprise Guide Jennifer Bjurstrom, SAS Institute Inc.

Time Series Studio 12.3

SAS Studio 3.4: Administrator s Guide, Second Edition

Windows Server 2008 R2 64-bit (x64) SP1. The SAS Workspace Servers can run on any platform that is supported by SAS 9.4 (TS1M3 or TS1M4).

Troubleshooting an Installation of Platform Product Suite for SAS

DataFlux Web Studio 2.5. Installation and Configuration Guide

The SAS Workspace Servers can run on any platform that is supported by SAS 9.3.

Administrator for Enterprise Clients: User s Guide. Second Edition

Technical Paper. Using SAS Studio to Open SAS Enterprise Guide Project Files. (Experimental in SAS Studio 3.6)

A Practical Introduction to SAS Data Integration Studio

Paper HOW-06. Tricia Aanderud, And Data Inc, Raleigh, NC

DBLOAD Procedure Reference

SAS Energy Forecasting 3.2 Installation Guide, Second Edition

SAS AppDev Studio TM 3.4 Eclipse Plug-ins. Migration Guide

SAS Information Map Studio 2.1: Tips and Techniques

SAS Decision Services 6.3

Grid Computing in SAS 9.4

APPENDIX 2 Customizing SAS/ASSIST Software

APPENDIX 4 Migrating from QMF to SAS/ ASSIST Software. Each of these steps can be executed independently.

SAS 9.2 Intelligence Platform. Security Administration Guide

SAS. Social Network Analysis Server 6.2: Installation and Configuration Guide, Third Edition. SAS Documentation

SAS Clinical Data Integration 2.6

Scheduling in SAS 9.2

Installation Instructions for Release 5.2 of the SAS Performance Management Solutions

SAS/ACCESS Interface to R/3

Using Cross-Environment Data Access (CEDA)

SAS ENTERPRISE GUIDE USER INTERFACE

SAS Clinical Data Integration Server 2.1

SAS Information Map Studio 3.1: Tips and Techniques

SAS IT Resource Management 3.3

SAS Web Infrastructure Kit 1.0. Administrator s Guide

Visual Analytics 7.1

SAS Activity-Based Management Server Software 6.1 for Windows

A Methodology for Truly Dynamic Prompting in SAS Stored Processes

SAS Publishing Intelligence Platform SAS. Data Administration Guide

SAS Decision Manager 2.2

SAS 9.4 Management Console: Guide to Users and Permissions

SAS Studio 3.6: Administrator s Guide

SAS I/O Engines. Definition. Specifying a Different Engine. How Engines Work with SAS Files CHAPTER 36

AccessVia Publishing Platform

Creating Classic Planning Applications in Oracle Hyperion Planning, Fusion Edition

SAS/ASSIST Software Setup

SAS Enterprise Miner TM 6.1. Migration Guide

SAS Model Manager 15.1: Quick Start Tutorial

SAS. Installation Guide Fifth Edition Intelligence Platform

SAS. IT Resource Management Adapter 3.5 for SAP: User's Guide. SAS Documentation

Time Series Studio 13.1

Transitioning from Batch and Interactive SAS to SAS Enterprise Guide Brian Varney, Experis Business Analytics, Portage, MI

DataFlux Migration Guide 2.7

SAS Profitability Management 2.3 Installation, Migration and Configuration Guide

A SAS Data Integration Development

Introduction. Understanding SAS/ACCESS Descriptor Files. CHAPTER 3 Defining SAS/ACCESS Descriptor Files

SAS 9.4 Intelligence Platform: Data Administration Guide, Sixth Edition

JUST PASSING THROUGH OR ARE YOU? DETERMINE WHEN SQL PASS THROUGH OCCURS TO OPTIMIZE YOUR QUERIES Misty Johnson Wisconsin Department of Health

9.4 Intelligence Platform

SAS/Warehouse Administrator Usage and Enhancements Terry Lewis, SAS Institute Inc., Cary, NC

Protect Your Investment In Asure ID. Thank You For Purchasing Asure ID Let s Get Started! Section 1 Installing Asure ID

SAS Forecast Server 3.1. Administrator s Guide to Report Administration Tasks

SAS Model Manager 13.1

External Databases: Tools for the SAS Administrator

SAS File Management. Improving Performance CHAPTER 37

Introduction. LOCK Statement. CHAPTER 11 The LOCK Statement and the LOCK Command

Grid Computing in SAS 9.2. Second Edition

Enterprise Client Software for the Windows Platform

SAS Federation Server 4.2: Shared Login Configuration

SAS Integration Technologies Server Administrator s Guide

PREREQUISITES FOR EXAMPLES

SAS Activity-Based Management 7.11 Installation, Migration, and Configuration Guide

WHAT IS THE CONFIGURATION TROUBLESHOOTER?

Microsoft Windows Server 2003 or Microsoft Windows Server 2008 Windows SharePoint Services 3.0 or Microsoft Office SharePoint Server 2007

SAS Viya 3.2 Administration: Promotion (Import and Export)

SAS Cost and Profitability Management 8.3. Installation, Migration, and Configuration Guide

SAS 9.2 Enterprise Business Intelligence Audit and Performance Measurement for Windows Environments. Last Updated: May 23, 2012

SAS Solutions Services 5.1. System Administration Guide Second Edition

Transcription:

Technical Paper Defining an OLEDB Using Windows Authentication in SAS Management Console

Release Information Content Version: 1.0 March 2018. Trademarks and Patents SAS Institute Inc., SAS Campus Drive, Cary, North Carolina 27513. 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 registered trademarks or trademarks of their respective companies.

Contents Adding a User with the SAS Management Console User Manager... 2 Defining the OLEDB Server... 6 Defining the OLEDB Library... 11 Verifying the Library Definition and Registering SQL Server Tables 18 Verify the SQL Server Tables, Which Are Listed in SAS Explorer... 18 Import the SQL Server Tables... 19 Resources... 21 i

This document explains how to define an OLEDB library in SAS Management Console in order to access the Microsoft SQL Server using Window s authentication. The follow ing prerequisites are necessary before you begin defining an OLEDB library. Make sure that your Window s user ID (entered in the form domain\userid) has Log on as a batch job rights assigned. For details on assigning user rights, refer to your Window s operating system documentation. SAS Foundation install must include SAS/ACCESS Interface to OLE DB. Have Microsoft SQL Server 2012 Native Client installed on Window s, w here SAS Workspace Server is running on. Before you configure the library in SAS Management Console, make sure that you can submit a LIBNAME statement successfully in Base SAS softw are. Example of a LIBNAME Statement libname sqlole oledb init_string="provider=sqlncli11; Integrated Security=SSPI; Persist Security Info=True; Initial Catalog=Users; Data Source=sqlhost.sas.com" schema=dbo; Note: If you cannot see SQL Server tables in the SAS Explorer w indow, then you need to submit the follow ing SQL procedure (PROC SQL) to find the table names and the corresponding schema for each table. proc sql; connect using sqlole as oledb select table_name, table_schema from connection to oledb (OLEDB::Tables); quit; 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 follow ing steps show how to add your user definition. 1. Start SAS Management Console login w ith your administrator account. For example, sasadm@saspw. 2. From the SAS Management Console navigation tree, right-click the User Manager icon; then select New User. SMC displays the New User Properties dialog box, as show n in Display 1. 2

Display 1. SAS Management Console 3. On the General tab, enter your name in the Nam e field. Note that you can enter any user name you w ant to use (for example, a single name, your full name, and so on). 3

Display 2. New User Properties dialog box 4. Select the Accounts tab and click New to display the New Login Properties dialog box. 4

Display 3. New Login Properties dialog box 5. Enter your Window s domain and user ID (domain\userid) and the passw ord. 6. Select DefaultAuth as the authentication domain. 7. Click OK to add the login to the user. 8. Click OK to close the New User Properties dialog box. 9. Click User Manager to verify that your name appears in the user name list, as show n in the next display. Display 4. New user listing in the User Manager panel 5

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 w izard, expand the Database Servers folder and select OLE DB Server. Display 5. New Server Wizard with OLE DB Server selected 3. Click Next, w hich displays data entry fields w here you can enter the name and description for the new OLE DB Server. 4. In the Nam e field, type the server name (for example, ledb_sqlncli_iw a). 6

Display 6. OLE DB Name and Description fields in the New Server Wizard 5. Click Next to display the server properties. 6. Change Data Source Type to OLE DB Microsoft SQL Server(PC Client). 7

Display 7. Server Properties dialog box in the New Server Wizard WARNING: The follow ing server properties displayed in the data entry box are default values and should NOT be changed: Major version number Minor version number Softw are version Vendor Note: The Associated Machine property refers to the SAS Application Server NOT the SQL Server machine. Click Next to display the OLE DB connection information. 7. Type the SQL Server name w ith Instance name, for example, "sqlhost\mssql2016" w ith quotation marks for the SQL Server in the Datasource field. 8. Type SQLNCLI11 in the Provider field. And change Authentication type to (None). Leave Authentication domain as (None). 8

Display 8. OLE DB Connection Information dialog box 9. Click the OLE DB Connection Information Options button to display the OLE DB Connection Information Options dialog box. Display 9. OLE DB Connection Information Options dialog box 9

10. Enter the follow ing text in the Init String field. Note: Type the entire string, w ithin quotation marks (" "), all in one line. "Provider=SQLNCLI11; Integrated Security=SSPI; Persist Security Info=True; Initial Catalog=Users; Data Source=sqlhost.sas.com" 11. Click OK. 12. Click Next. A confirmation screen w ill display w ith a message stating that the definition of a new server has been completed. 13. Then click Finish. 14. In SAS Management Console, click the Server Manager icon. The new OLEDB server name, oledb_sqlncli_iw a, should appear in the Nam e list in the right panel. Display 10. Server Manager icon 10

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 11. Selecting New Library from the SAS Libraries menu 3. Select New Library to start the New Library Wizard. 11

Display 12. Expanded Database Libraries folder with OLE DB Library selected 4. In the w izard, expand the Database Libraries folder and select OLE DB Library. Click Next. 5. Type the library name (for example, oledb_sqlncli_iwa_lib) in the Nam e field, as show n in the next display. 12

Display 13. Entering the OLE DB library name and description 6. Click Brow se to select the location of the folder. Then click Next. Note: Make sure you have ReadMetadata, WriteMember Metadata, and other appropriate permissions as show n in the next display. 13

Display 14. Permissions to access the target folder 7. Select SASApp and click Next. 14

Display 15. Selected Servers 8. Type the libref name (for example, sqliwa) in the Libref field and click Next. 15

Display 16. Entering library libref properties 9. In the Database Server field, select the OLE DB server (oledb_sqlncli_iw a) that you created previously in "Defining the OLEDB Server." Click Next. Then Finish to create the new library. 16

Display 17. Select database server 17

Verifying the Library Definition and Registering SQL Server Tables To check the accuracy of the LIBNAME statement that w as generated in the previous section, perform the follow ing steps: Verify the SQL Server Tables, Which Are Listed in SAS Explorer 1. From the navigation tree in SAS Management Console, right-click Data Library Manager. 2. Under Data Library Manager, locate and right-click the library that you just created (oledb_sqlncli_iw a_lib) and select Display LIBNAME statement. 3. The Display LIBNAME Statement message w indow appears, as show n in the next display w ith the LIBNAME statement that is generated for your server. Display 18. The LIBNAME statement generated for oledb_sqlncli_iwa_lib 4. Copy the LIBNAME statement from the Display LIBNAME Statement w indow 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 w indow. 6. Right-click the library (oledb_sqlncli_iw a_lib) again and select Properties. Click the Authorization tab. Make sure that authorized SAS users have permission to read and w rite the library data. Or you assign the appropriate permissions as you need here. 18

Display 19. SAS user permissions to access the library and table data under the library Import the SQL Server Tables 1. From the navigation tree in SAS Management Console, expand Data Library Manager. 2. Under Data Library Manager, locate and right-click oledb_sqlncli_iw a_lib and select Register Tables. 3. Check the box for Enable case-sensitive DBMS object names. 4. Check the box for Enable special characters within table or column object names. 19

Display 20. Register Tables 5. Click Next again, and the Define Tables dialog box displays w ith a list of SQL server tables. 20

Display 21. Selection list of SQL server tables 6. In the list, click the table name for w hich you w ant to import metadata. 7. Click Next and the application w ill display the table you selected. 8. Click Finish and you w ill now be able to use the specified table in any SAS BI client. 9. Your SAS Enterprise Guide users w ill see the defined library and registered tables. Resources SAS Institute Inc. SAS 9.4 Intelligence Platform: Administration SAS Management Console: Guide. Available at http://go.documentation.sas.com/?docsetid=bidsag&docsettarget=titlepage.htm&docsetversion=9.4&locale=en. SAS Institute Inc. SAS/ACCESS Interface to OLE DB. Available at http://go.documentation.sas.com/?docsetid=acreldb&docsettarget=p17k7gdjrqtqthn1fpe4grgudkyu.htm&docsetversi on=9.4&locale=en. SAS Institute Inc. Working w ith SAS Folders. Available at http://go.documentation.sas.com/?docsetid=bisag&docsettarget=p1az7w j1xkvyqyn16526p7exxhyx.htm&docsetvers ion=9.4&locale=en. 21

To contact your local SAS office, please visit: sas.com/offices 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 2014, SAS Institute Inc. All rights reserved.