Using a DSN-Less Connection with ODBC Authentication

You can use a DSN-less connection to create an ODBC connection between EFT 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 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.

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.

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 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:


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

DRIVER={SQL Server};Provider=MSDASQL;server=eft1;database=eftdb;trusted_connection=yes

Provider=MSDASQL;Driver={Microsoft Access Driver (*.mdb)};Dbq=c:/xyz/Example.mdb;Uid=;Pwd=

Provider=MSDASQL;DRIVER={MySQL ODBC 3.51 Driver};SERVER=;DATABASE=Example;UID=myusername;PWD=mypassword

  • 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.

  • Do not put any line breaks in your connection strings.

  • With some installations, you may need to add a pointer to a Microsoft Access workgroup file as well as the username and password. A default installation of Access does not require this.