Application Service Guide > Connecting to Databases from UNIX > Connecting to Microsoft SQL Server from UNIX
  

Connecting to Microsoft SQL Server from UNIX

Use the Microsoft SQL Server connection to connect to a Microsoft SQL Server database from a UNIX machine.

Configuring Native Connectivity

You must choose ODBC as the provider type while configuring a Microsoft SQL Server connection. The OLEDB provider type is deprecated. Support for the OLEDB provider type will be dropped in a future release.
The server name and database name are retrieved from the connect string if you enable the Use DSN option. The connect string is the DSN configured in the odbc.ini file. If you do not enable the Use DSN option, you must specify the server name and database name in the connection properties. If you cannot to connect to the database, verify that you correctly entered all of the connectivity information.
After you upgrade, the Microsoft SQL Server connection is set to the OLEDB provider type by default. It is recommended that you upgrade all your Microsoft SQL Server connections to use the ODBC provider type. You can upgrade all your Microsoft SQL Server connections to the ODBC provider type by using the following commands:
After you run the upgrade command, you must set the environment variable on each machine that hosts the Developer tool and on the machine that hosts Informatica services in the following format:
ODBCINST=<INFA_HOME>/ODBC7.1/odbcinst.ini
After you set the environment variable, you must restart the node that hosts the Informatica services.
For specific connectivity instructions, see the database documentation.

Rules and Guidelines for Microsoft SQL Server

Consider the following rules and guidelines when you configure ODBC connectivity to a Microsoft SQL Server database:

Configuring SSL Authentication through ODBC

You can configure SSL authentication for Microsoft SQL Server through ODBC using the DataDirect New SQL Server Wire Protocol driver.
    1. Open the odbc.ini file and add an entry for the ODBC data source and DataDirect New SQL Server Wire Protocol driver under the section [ODBC Data Sources].
    2. Add the attributes in the odbc.ini file for configuring SSL.
    The following table lists the attributes that you must add to the odbc.ini file when you configure SSL authentication:
    Attribute
    Description
    EncryptionMethod
    The method that the driver uses to encrypt the data sent between the driver and the database server. Set the value to 1 to encrypt data using SSL.
    ValidateServerCertificate
    Determines whether the driver validates the certificate sent by the database server when SSL encryption is enabled. Set the value to 1 for the driver to validate the server certificate.
    TrustStore
    The location and name of the trust store file. The trust store file contains a list of Certificate Authorities (CAs) that the driver uses for SSL server authentication.
    TrustStorePassword
    The password to access the contents of the trust store file.
    HostNameInCertificate
    Optional. The host name that is established by the SSL administrator for the driver to validate the host name contained in the certificate.

Configuring Custom Properties for Microsoft SQL Server

You can configure custom properties for Microsoft SQL Server to improve bulk load performance.
    1. Launch the PowerCenter client and connect to Workflow Manager.
    2. Open a workflow and select a session that you want to configure.
    3. Click the Config Object tab.
    4. Change the value of the Default Buffer Block size to 5 MB. You can also use the following command: $INFA_HOME/server/bin/./pmrep massupdate -t session_config_property -n "Default buffer block size" -v "5MB" -f $<folderName>
    To get optimum throughput for a row size of 1 KB, you must set the Buffer Block size to 5 MB.
    5. Click the Properties tab.
    6. Change the Commit Interval to 100000 if the session contains a relational target.
    7. Set the DTM Buffer Size. The optimum DTM Buffer Size is ((10 x Block Buffer size) x number of partitions).