Appearance
ODBC Setup
This guide covers ODBC setup for Windows, Linux, and macOS, with a focus on Microsoft SQL Server and Microsoft Access connections.
INFO
Microsoft provides an excellent guide on ODBC.
For all platforms, ensure you have the necessary permissions and network access to connect to your database server.
Windows
ODBC Driver Installation
Download the latest ODBC driver:
- For SQL Server: Microsoft ODBC Driver for SQL Server
- For Access: Microsoft Access Database Engine
- For MySQL: MySQL ODBC Driver
- For PostgreSQL: PostgreSQL ODBC Driver
- For ADS: Advantage Database Server ODBC Driver
Run the installer and follow the prompts to complete the installation.
ODBC Data Source Setup
Open the ODBC Data Source Administrator:
- For 64-bit: Search for "ODBC Data Sources (64-bit)" in the Start menu
- For 32-bit: Search for "ODBC Data Sources (32-bit)" in the Start menu
In the ODBC Data Source Administrator, click the "Add" button under "System DSN".
Select the appropriate driver (e.g. SQL Server) and click "Finish".
Configure the data source:
- Name: Enter "FreeTicketing".
- Description: Optional, enter a description for the data source.
- For SQL Server
- Server: Enter the server name or IP address.
- Database: Select or enter the database name.
- Authentication: Choose the appropriate authentication method.
- Click "Test Connection" to verify the setup, then click "OK" to save.
- For Access
- Click on 'Select' to select the Access database file ending with .accdb or .mdb.
- For ADS
- Check the 'Data Dictionary' box
- Browse to and select the 'WM2000DATA.ADD' file.
- Available Server Types: Make sure 'Remote Server' is checked.
- Click "OK" to save
- Check the 'Data Dictionary' box
Linux
Linux ODBC setup varies by distribution and database. Here's a general outline:
Install unixODBC:
sudo apt-get install unixodbc unixodbc-dev (for Debian/Ubuntu) sudo yum install unixODBC unixODBC-devel (for CentOS/RHEL)
Install the appropriate ODBC driver for your database.
Configure the ODBC driver in
/etc/odbcinst.ini
.Set up the DSN in
/etc/odbc.ini
:[FreeTicketing] Driver = YourODBCDriver Server = YourServerAddress Database = YourDatabaseName
Test the connection using
isql FreeTicketing
.
macOS
macOS ODBC setup is similar to Linux:
Install unixODBC using Homebrew:
brew install unixodbc
Install the appropriate ODBC driver for your database.
Configure the ODBC driver in
/usr/local/etc/odbcinst.ini
.Set up the DSN in
/usr/local/etc/odbc.ini
:[FreeTicketing] Driver = YourODBCDriver Server = YourServerAddress Database = YourDatabaseName
Test the connection using
iodbctest "DSN=FreeTicketing"
.