The SQL Anywhere ODBC driver must be added before you create the ODBC data source.
Storing user IDs, encrypted or unencrypted passwords, and database keys in a data source is not recommended.
If necessary, go to http://mac.softpedia.com/progDownload/ODBC-Administrator-Tool-Download-61963.html to download the ODBC Administrator tool.
Launch the ODBC Data Source Administrator from /Applications/Utilities.
Select the Drivers tab.
Click Add.
In the Description field, type SQL Anywhere 12.
Click Choose and select the SQL Anywhere ODBC driver in both the Driver File Name and Setup File Name fields. By default, it is located in /Applications/SQLAnywhere12/System/lib32/dbodbc12_r.bundle.
The _r in the bundle name indicates that it is the threaded version of the driver. There is also an unthreaded version (dbodbc12.bundle) for use with unthreaded applications.
Click OK.
You can add the information with a text editor. The ODBC configuration files are located in /Library/ODBC within your home directory. There is an odbcinst.ini file for driver information and an odbc.ini file for data source information.
You can also use the Data Source utility (dbdsn) to create ODBC data sources on Mac OS X. See Data Source utility (dbdsn).
Launch the ODBC Data Source Administrator from /Applications/Utilities.
In the ODBC Data Source Administrator, click the User DSN tab, and then click Add.
In the Name list, click SQL Anywhere 12.
Click OK.
In the Data Source Name field, type Demo12.
Add the following connection parameters. The connection parameters and values are case insensitive.
Keyword | Value |
---|---|
UserID | DBA |
Password | sql |
StartLine | dbeng12 |
DatabaseFile | /Applications/SQLAnywhere12/System/demo.db |
ThreadManager | ON |
Driver | SQL Anywhere 12 |
For more information about connection parameters, see Connection parameters.
Click OK.
Click Apply.
Press Command+Q to exit the ODBC Data Source Administrator.
Discuss this page in DocCommentXchange.
|
Copyright © 2010, iAnywhere Solutions, Inc. - SQL Anywhere 12.0.0 |