IBM InfoSphere Information Server DataStage 11.5 ODBC Connection Configuration for Microsoft SQL
[ad#ad-post]
First, make sure to the latest ODBC drivers are installed from IBM Fix Central
Note: The .odbc.ini file template defaults to an old driver. Make sure to use the latest driver. As of the time I updated this document, the latest was VMsqls00.so
Also, expand ODBC Conenction Configuration on the left to see the working connection configuration in use.
Edit the .odbc.ini file and add the connection needed
sudo - dsadm cd /IBM/InformationServer/Server/DSEngine vi .odbc.ini [MSSQLDB] Driver=/IBM/InformationServer/Server/branded_odbc/lib/VMsqls00.so Description=DataDirect SQL Server Wire Protocol driver to STARREZDB Database=snMSSQLDB LogonID=MSSQL_AD_user Password=<PASSWORD> Address=mssqldb.mytechdocs.test,1433 QuotedId=No AnsiNPW=No AuthenticationMethod=9 Domain=AD
Edit the odbc.config file for each project needing the connection
cd /IBM/InformationServer/Server/Projects/MSSQLDSProj vi uvodbc.config <MSSQLDB> DBMSTYPE = ODBC
Test the connection with DataStage Shell
cd /IBM/InformationServer/Server/DSEngine . ./dsenv ./bin/uvsh LOGTO MSSQLDSProj DS_CONNECT MSSQLDB Enter username for connecting to 'MSSQLDB' DBMS [dsadm]: MSSQL_AD_user Enter password for MSSQL_AD_user: SQLConnect info-only: Status = 1 SQLState = 00000 Natcode = 32648 MSSQLDB>
The prompt should change to the following after successfully logging in:
MSSQLDB>
MSSQL and SSL
If you have a connection that requires SSL, add the following lines to the end of the connection section in the .odbc.ini file
EncryptionMethod=1 ValidateServerCertificate=0
[ad#ad-post]
Useful Sites I found to document this
http://www-01.ibm.com/support/docview.wss?uid=swg21419753
Download the lastest SQL drivers from IBM Fix Central for our infosphere version
Thanks alot, man.
A doubt.. Is mandatory to restart the application after it? Or next DataStage query the change will work?
Regards.