Creating and configuring a data source

To create a new Microsoft SQL Server data source or configure an existing data source, use the ODBC Administrator, which contains several setup boxes.

StepsTo access the Driver Setup dialog boxes

  1. From your control panel, click on the ODBC Administrator icon to start it.

  2. Select the System DSN (recommended) or the User DSN and do one of the following:

    • If you are configuring a new data source, click Add. (New DSNs are required for releases that contain driver updates.)

    • If you are configuring an existing data source, select the data source name and click Configure.

  3. Select the ECDA SQL Server wire protocol driver.

  4. Click Finish.

    The ECDA SQL Server wire protocol driver provides several dialog boxes where connectivity and other options take place.

StepsTo configure a data source to the SQL Server

  1. Click the General parameters tab and enter values for the required parameters, indicated by an asterisk (*).

    Table D-4: General parameter required values

    Parameter

    Comments

    *Data Source Name

    A string that identifies this SQL Server Wire Protocol data source configuration in the system information. Examples include "Accounting" or

    "SQL Server-Serv1."

    Description

    An optional long description of a data source name. For example, "My Accounting Database" or "SQL Server on Server number 1."

    *Server Name

    Name of the server that contains the database you want to access.

    Database Name

    Name of the database to which you want to connect by default. If you do not specify a value, the default database defined by the SQL Server is used.

  2. Click the Advanced parameter tab and enter values for the required parameters indicated by an asterisk (*).

    Table D-5: Advanced parameter required values

    Parameter

    Comments

    Language

    National language to be used by the client. The default is English.

    Application Name

    Name the SQL Server uses to identify your application.

    Workstation ID

    Workstation ID used by the client.

    Default Logon ID

    Default logon ID used to connect to your SQL Server database. This ID is case sensitive. A logon ID is required only if security is enabled on your database. Your ODBC application may override this value, or you may override this value in the Logon dialog box or connection string.

    Use Windows Authentication

    Enables Windows security. When enabled, the Default Logon ID field is inactive because Windows security passes the logon ID and password. Selecting this check box also activates the corresponding check box on the Logon Dialog. Sybase recommends that you do not use this Windows security parameter.

    *Enable Quoted Identifiers

    Allows quoted identifiers; that is, identifiers in SQL Server that you can quote using a quoting character. By default, the check box is not selected.

    NoteSelect only if using ASE/CIS client version 12.5.0.3 and later. These later versions of ASE/CIS send quoted identifiers to Microsoft SQL Server.

    Translate

    Allows you to display the Select Translator dialog box, which lists the translators specified in the ODBC Translators section of the system information. DataDirect provides a translator named “OEM to ANSI” that translates your data from the IBM PC character set to the ANSI character set. Select a translator; then click OK to close this dialog box and perform the translation.

  3. After you enter this information, click Test Connect. If the connection fails, check for accurate information.

  4. If the test connection is successful, click Apply and then click OK.