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, 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.
If you are upgrading to EFT v8 and using an ODBC database, please contact Globalscape Support. The ODBC schema has changed and you will need to consult with Support so we can assist with the manual process necessary to get it up and running.
To create a Site with a DSN-less connection
-
Follow the procedure in Changing ODBC Authentication Options.
-
In the Authentication Provider Options dialog box, type the connection string per the guidelines below.
To create the string for a DSN-less connection
-
On a remote SQL Server, create an ODBC database, login, etc.
-
Create a (system) DSN for the server, and verify that it works.
-
In EFT configure the ODBC pre-populated string with the correct information.
Be sure to use the correct driver for 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:
-
Provider [Provider=]
-
Driver [DRIVER=]
-
Database path and name, including the file extension [Dbq=]
-
Username [Uid] and Password [Pwd] are required only if the database is password protected
For remote databases, your connection string must include:
-
Driver [DRIVER=]
-
Server [SERVER]
-
Database [DATABASE]
-
Username [UID]
-
Password [PWD]
Examples:
DRIVER={SQL Server};Provider=MSDASQL;SERVER=192.168.100.242;DATABASE=dsh_odbc;UID=sa;PWD=canada DRIVER={SQL Server};Provider=MSDASQL;server=eft1;database=eftdb;trusted_connection=yes
If you have a remote MYSQL database named Example your connection string is:
Provider=MSDASQL;DRIVER={MySQL ODBC 3.51 Driver};SERVER=10.10.10.1;DATABASE=Example;UID=myusername;PWD=mypassword
Of course, use the database Server IP, database name, user ID, and password needed to connect to the database.
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.