Using a DSN-Less Connection with ODBC Authentication

You can use a DSN-less connection to create an ODBC connection between EFT Server and the database, using a connection string. Connections made in this way are called DSN-less, because they do not require the system administrator to create an ODBC DSN. Rather than relying on information stored in a file or in the system registry, DSN-less connections specify the driver name, and all driver-specific information in the connection string. The connection strings described below combine all the information EFT Server needs to connect to the database. If you have several simultaneous database connections, a DSN-less connection may be slightly faster than a DSN connection; however, a DSN-less connection is hard-coded to use a certain driver, user identity, and network location, and needs to be updated when the database parameters change. It is recommended that you use a DSN whenever possible.

icon_info.gif

MDAC version 2.7 or higher must be installed to use a DSN-less connection.

To create a Site with a DSN-less connection

  1. Follow the procedure in Configuring ODBC Authentication Options.

  2. In the Authentication Provider Options dialog box, type the connection string per the guidelines below.

    db_authenticationprovideroptions_odbc.gif

To create the string for a DSN-less connection

  1. On a remote SQL Server, create an ODBC database, login, etc.

  2. Create a (system) DSN for the server, and verify that it works.

  3. In EFT Server configure the ODBC pre-populated string with the correct information.

You must know the correct driver to use with your database. Create a connection string as described below and type it into the Authentication Provider Options dialog box. The connection string includes the name of the driver you need for your database, the location of your database, the name of your database, and, if necessary, a user name and password to access the database. Connection strings are lists of keywords and associated values; each keyword identifies a particular connection attribute.

For local databases, the connection string must include:

For remote databases, your connection string must include:

For example: DRIVER={SQL Server};Provider=MSDASQL;SERVER=192.168.100.242;DATABASE=dsh_odbc;UID=sa;PWD=canada;

icon_info.gif

If you are connecting to a database server through ODBC, the server's configuration determines whether it is case-sensitive. Check with your database server administrator to determine whether or not your server is configured as case-sensitive. If your database is case-sensitive, you will have to edit the tables accordingly.

Examples