Download Creating an ODBC Connection to Microsoft SQL Server with

Survey
yes no Was this document useful for you?
   Thank you for your participation!

* Your assessment is very important for improving the workof artificial intelligence, which forms the content of this project

Document related concepts

Oracle Database wikipedia , lookup

Concurrency control wikipedia , lookup

Extensible Storage Engine wikipedia , lookup

Database wikipedia , lookup

Microsoft Access wikipedia , lookup

Btrieve wikipedia , lookup

Team Foundation Server wikipedia , lookup

Clusterpoint wikipedia , lookup

Database model wikipedia , lookup

Microsoft Jet Database Engine wikipedia , lookup

Relational model wikipedia , lookup

SQL wikipedia , lookup

PL/SQL wikipedia , lookup

Microsoft SQL Server wikipedia , lookup

Open Database Connectivity wikipedia , lookup

Transcript
Creating an ODBC Connection to
Microsoft SQL Server with Windows
Authentication
© 2013 Informatica Corporation. No part of this document may be reproduced or transmitted in any form, by any means
(electronic, photocopying, recording or otherwise) without prior consent of Informatica Corporation. All other company and
product names may be trade names or trademarks of their respective owners and/or copyrighted materials of such
owners.
Abstract
The DataDirect 7.0 New SQL Server Wire Protocol Driver allows PowerCenter to connect to
Microsoft SQL Server using Windows NT authentication. This article describes how PowerCenter
connects to Microsoft SQL Server using Windows NT authentication with an ODBC connection.
Supported Versions


PowerCenter 9.5.1
DataDirect 7.x
Table of Contents
Overview .......................................................................................................................................... 2
Configuring an ODBC Connection on Windows .............................................................................. 2
Configuring an ODBC Connection on UNIX .................................................................................... 3
Sample Entries in the odbc.ini File............................................................................................... 3
Create an ODBC Connection in the Workflow Manager ................................................................. 3
Overview
You can connect to Microsoft SQL Server using the DataDirect 7.0 New SQL Server Wire
Protocol Driver. DataDirect drivers provide security mechanisms, such as operating system
authentication through Kerberos and NTLM. Operating system authentication allows you to get
database access in a single sign-on environment.
The DataDirect Wire Protocol driver for Microsoft SQL Server removes the need to connect to the
database through connectivity components on the database server. The driver can connect to
any Microsoft SQL Server instance. The DataDirect Wire Protocol driver for Microsoft SQL Server
also removes the dependencies on database client libraries.
You can configure the DataDirect 7.0 New SQL Server Wire Protocol Driver with Windows NT
authentication. The DataDirect 7.0 New SQL Server Wire Protocol Driver is part of the Informatica
installer.
You can access the driver on the system where the Informatica Service runs in the following
location:
<InformaticaInstallationDir>\ODBC<version>
You can use the ODBC connection when you run a PowerCenter session.
Configuring an ODBC Connection on Windows
1. Log in to the system where the PowerCenter Integration Service runs.
2. In the ODBC data source administrator, select the System DSN tab.
3. On the System DSN tab, Click Add.
The Create New Data Source window appears.
4. Select the DataDirect 7.0 New SQL Server Wire Protocol driver.
5. Click Finish.
6. Enter the data source name, host name, the port number, and the database.
7. On the Security tab, select 4 - Kerberos as the authentication method.
8. Test the connection with the Test Connection button.
2
9. Click Apply.
10. Click OK.
Configuring an ODBC Connection on UNIX
1. Log in to the system where the PowerCenter Integration Service runs.
2. Create an entry in the odbc.ini file to add a data source name for the Microsoft SQL Server
ODBC driver.
3. Ensure that you set the Authentication Method as 9, so that the driver uses the NTLM
authentication.
Sample Entries in the odbc.ini File
[My_ODBC_DSN]
Driver=<dwsqlsxx.so driver location>
Description=SQL Server DSN
Address=<hostname>,<port>
Database=<database name>
LogonID=
Password=
QuotedId=No
AnsiNPW=Yes
AuthenticationMethod=9
Domain=<Windows domain name>
Create an ODBC Connection in the Workflow Manager
On Windows, ensure that the PowerCenter Integration Service uses the same Windows NT login
as the Microsoft SQL Server connection. On LINUX, ensure that the PowerCenter Integration
Service uses the user details in the connection object for authentication.
1. Log in to the Workflow Manager.
2. Go to Connections > Relational.
3. Click the New button.
4. Select ODBC as the subtype.
5. Click OK.
The Connection Object Definition dialog box appears.
6. The following table describes the properties that you configure for an ODBC relational
database connection:
Property
Description
Name
Name you want to use for this connection. The connection name cannot
contain spaces or other special characters, except for the underscore.
Type
ODBC.
User Name
Enter your Windows NT login without domain prefix.
To define the user name in the parameter file, enter session parameter
$ParamName as the user name, and define the value in the session or
workflow parameter file. The PowerCenter Integration Service interprets user
names that start with $Param as session parameters.
3
Use Parameter in Password
Indicates the password for the database user name is a session parameter,
$ParamName. Define the password in the workflow or session parameter file,
and encrypt it using the pmpasswd CRYPT_DATA option. Default is disabled.
Password
Enter your windows NT password.
Connect String
Enter the ODBC data source name previously configured.
Code Page
Code page the PowerCenter Integration Service uses to read from a source
Property
Description
database or write to a target database.
Connection Environment SQL
Runs an SQL command with each database connection. Default is disabled.
Transaction Environment SQL
Runs an SQL command before the initiation of each transaction. Default is
disabled.
Connection Retry Period
Number of seconds the PowerCenter Integration Service attempts to
reconnect to the database if the connection fails.
If the PowerCenter Integration Service cannot connect to the database in the
retry period, the session fails. Default value is 0.
7. Click OK to save the connection to the repository.
8. In the Workflow Designer, open the workflow.
9. Double-click the session where you want to use the ODBC connection to open the session
properties.
10. On the Mapping tab, select Sources in the Transformations pane on the left.
11. In the Connections settings on the right, click the Open button in the Value column for the
relational connection.
The Relational Connection Browser dialog box appears.
12. Select the type as ODBC.
13. Choose the connection that you previously created.
14. Click OK.
15. Repeat process for all source and targets in the Transformations pane.
16. Click Apply.
17. Click OK to save and close the session properties.
18. Click Repository > Save to save the session and workflow to the repository.
Author
Anju Andrews
Lead QA Engineer
4