如何从Cocoa(Mac OS X)访问SQL Server?

时间:2023-01-24 09:04:18

As the question says:
How to access Microsoft SQL Server 2005 from Cocoa on Mac OS X 10.5?
The database driver should be free if possible, paid solutions can be OK as well.

问题是:如何在Mac OS X 10.5上从Cocoa访问Microsoft SQL Server 2005?如果可能,数据库驱动程序应该是免费的,付费解决方案也可以。

3 个解决方案

#1


Some Googling suggests this question:

一些谷歌搜索提出了这个问题:

http://lists.apple.com/archives/Cocoa-dev/2004/Jul/msg00077.html

Which points to these two apps:

哪些指向这两个应用程序:

Do those meet your needs? If not, can you elaborate on the question? Thanks!

那些满足你的需求吗?如果没有,你能详细说明这个问题吗?谢谢!

#2


If you use ODBC, Actual Technologies makes a Microsoft SQL Server driver for OS X:

如果使用ODBC,Actual Technologies会为OS X创建Microsoft SQL Server驱动程序:

http://www.actualtechnologies.com/product_sqlserver.php

#3


FreeTDS is pretty good and fairly easy to use from Objective-C as it has a C API. However an even easier way is to use the jTDS JDBC driver via the Java bridge. I know that Apple no longer recommends using the Java bridge but it is probably the easiest way to talk to SQL Server and if you structure you code nicely pretty much any other database on the planet.

FreeTDS相当不错,而且从Objective-C开始也很容易使用,因为它有一个C API。但更简单的方法是通过Java桥使用jTDS JDBC驱动程序。我知道Apple不再推荐使用Java桥接器,但它可能是与SQL Server通信的最简单方法,如果你构建的代码很好,几乎可以说是地球上任何其他数据库。

#1


Some Googling suggests this question:

一些谷歌搜索提出了这个问题:

http://lists.apple.com/archives/Cocoa-dev/2004/Jul/msg00077.html

Which points to these two apps:

哪些指向这两个应用程序:

Do those meet your needs? If not, can you elaborate on the question? Thanks!

那些满足你的需求吗?如果没有,你能详细说明这个问题吗?谢谢!

#2


If you use ODBC, Actual Technologies makes a Microsoft SQL Server driver for OS X:

如果使用ODBC,Actual Technologies会为OS X创建Microsoft SQL Server驱动程序:

http://www.actualtechnologies.com/product_sqlserver.php

#3


FreeTDS is pretty good and fairly easy to use from Objective-C as it has a C API. However an even easier way is to use the jTDS JDBC driver via the Java bridge. I know that Apple no longer recommends using the Java bridge but it is probably the easiest way to talk to SQL Server and if you structure you code nicely pretty much any other database on the planet.

FreeTDS相当不错,而且从Objective-C开始也很容易使用,因为它有一个C API。但更简单的方法是通过Java桥使用jTDS JDBC驱动程序。我知道Apple不再推荐使用Java桥接器,但它可能是与SQL Server通信的最简单方法,如果你构建的代码很好,几乎可以说是地球上任何其他数据库。