![]() On the Users tab, select CData SQL Server Source.Īccessing SQL Server Data from Microsoft Excel.Sudo /Applications/iODBC/iODBC\ Administrator64.app/Contents/MacOS/iODBC\ Administrator64 Open a terminal and enter the following command to start the iODBC Administrator with the necessary permissions:.You can test your connection using the iODBC administrator. The ODBC Drivers section must also contain a property with the driver name, set to "Installed".ĬData ODBC Driver for SQL Server = Installed Testing the Connection dylib file located in the lib subfolder of the installation directory, by default in /Applications/CData ODBC Driver for SQL Server.ĭriver = /Applications/CData ODBC Driver for SQL Server/lib/ In this section, the Driver property specifies the path to the driver library. The section name specifies the name of the driver. You can find the correct odbcinst.ini in the following paths:ĭrivers are defined in sections in the odbcinst.ini file. With iODBC, drivers can be available to only one user account or drivers can be available system wide. To register an ODBC driver, modify the odbcinst.ini file. You may need to modify the installed driver definition if you change the path to the driver library. For example, below is the entry for the DSN created during the driver install:ĬData SQL Server Source = CData ODBC Driver for SQL Server Registering a DSN for iODBC with odbcinst.ini Sudo cp /Applications/CData ODBC Driver for SQL Server/lib/ /Users//Library/Containers//Data/.cdata/Īdditionally, in the ODBC Data Sources section, the DSN must be set to a driver defined in the odbcinst.ini file. After you have configured odbc.ini, run the following command. Mac OS validates our drivers separately so you need to copy the license file to the appropriate path as well. If you wish to authenticate using OAuth, you will need to add an additional connection property to ensure that the OAuth flow can execute properly: Other = CheckPromptMode=False Place your connection properties at the beginning of odbc.ini:ĭriver = CData ODBC Driver for SQL Server In addition to the connection properties required to connect to SQL Server, the Driver property specifies either a driver definition in the odbcinst.ini file or the path to the driver library. This will limit the number of rows returned, which is especially helpful for improving performance when designing reports and visualizations. When you configure the DSN, you may also want to set the Max Rows connection property. ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |