macos 从 Mac 连接到 SQL Server 2008
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/7884070/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Connecting to SQL Server 2008 from a Mac
提问by mikebmassey
Office for Mac 2011 has better support for Pivot Tables in Excel, including external data.
Office for Mac 2011 更好地支持 Excel 中的数据透视表,包括外部数据。
I need an ODBC connection on a Mac to SQL Server 2008. Microsoft recommends using a JDBC driver, but the documentation for it is very, very, very weak.
我需要在 Mac 上通过 ODBC 连接到 SQL Server 2008。Microsoft 建议使用 JDBC 驱动程序,但它的文档非常非常薄弱。
Here is the link to the JDBC driver: http://msdn.microsoft.com/en-us/sqlserver/aa937724
这是 JDBC 驱动程序的链接:http: //msdn.microsoft.com/en-us/sqlserver/aa937724
Now, once that is downloaded and extracted, you can add the JDBC driver via the Apple ODBC Administrator.
现在,一旦下载并解压缩,您就可以通过Apple ODBC Administrator添加 JDBC 驱动程序。
.
.
Finally, you can add the ODBC connection, but it won't let me edit the keyword or values.
最后,您可以添加 ODBC 连接,但它不会让我编辑关键字或值。
:
:
A few questions:
Am I using the right driver/do I have it installed correctly?
Is there a way to change the keyword values in the ODBC Administrator?
几个问题:我是否使用了正确的驱动程序/我是否正确安装了它?
有没有办法在 ODBC 管理器中更改关键字值?
Thanks
谢谢
回答by Anon
Just to help those who stumble across this problem:
只是为了帮助那些偶然发现这个问题的人:
Control+ Clickto edit both Keyword and Value fields in Mac OS X ODBC Administrator.
Control+Click在 Mac OS X ODBC 管理器中编辑关键字和值字段。
Alternatively, Command+ Return
或者,Command+Return
Tab-bing through the fields work as well.
Tab-bing 通过这些领域也能工作。
回答by TallTed
I'm not sure where you found the recommendation to use a JDBC driver with MS Office 2011. I am sure it won't work out.
我不确定您在哪里找到了在 MS Office 2011 中使用 JDBC 驱动程序的建议。我确定它不会成功。
However -- ODBC drivers for Mac do exist, for MS SQL Server and other DBMS, and these are fully compatible with MS Office 2011. My employer makes a number of these drivers.
但是 - 确实存在适用于 Mac、MS SQL Server 和其他 DBMS 的 ODBC 驱动程序,并且这些驱动程序与 MS Office 2011 完全兼容。我的雇主制作了许多此类驱动程序。
For your specific need, I'd start here.
对于您的特定需求,我会从这里开始。
Good luck!
祝你好运!
Edited to clarify:All versions of Microsoft Office are built with ODBC client capabilities. None have JDBC client capabilities. If you're to use Microsoft Office against an JDBC driver, you'll also need an ODBC Driver for JDBC Data Sources ... such as this one from my employer.
编辑澄清:所有版本的 Microsoft Office 都是使用 ODBC 客户端功能构建的。没有 JDBC 客户端功能。如果您要针对 JDBC 驱动程序使用 Microsoft Office,您还需要一个用于 JDBC 数据源的 ODBC 驱动程序……例如我雇主提供的这个驱动程序。