使用什么框架从 iPhone 连接到 SQL Server 实例?

发布于 2024-09-27 03:57:14 字数 199 浏览 2 评论 0原文

我需要编写一个 iPhone 应用程序来连接 SQL Server 实例,但我不知道可以使用哪个框架来执行此操作。有我可以使用的 ODBC 框架吗?任何链接将不胜感激。

请不要告诉我使用网络服务,因为这不适合这种情况。

编辑:我正在为 iPhone 构建一个 SQL 查询工具。如果我的用户只想查询数据库中的几个表,我不希望他们必须设置 Web 服务。

I need to write an iPhone application to connect an instance of SQL Server but I can't figure out which framework I could use to do this. Is there an ODBC framework I could use? Any links would be appreciated.

Please do not tell me to use a web service as that won't fit for this situation.

EDIT: I'm building a SQL querying tool for the iPhone. I don't want my users to have to setup a web service if they just want to query a couple tables in their database.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

献世佛 2024-10-04 03:57:14

毫无疑问,由于您不在,在 Objective-C 中连接到 SQL Server 的选择非常有限。以下是一些选项:

  • MacSQL(699 美元)
    • 商业产品
    • 专为 OS X 设计 - 没有提及 iOS 兼容性
  • ODBC 路由器(799 美元)
    • 另一种商业产品
    • 似乎通过运行特殊软件的服务器来传送请求
  • ( 25 美元)
    • 商业
    • 依赖于 .Net Web 服务,该服务可以与 SQL Server 数据库一起托管,充当中介

另外,由于 Objective-C 是 C 的超集,vanilla C 工作得很好,尽管你不会得到使用面向对象库的固有“好处”。 Microsoft 有一个关于ODBC 程序员参考 让您开始。

As you're undoubtably away, choices for connecting to SQL Server in Objective-C are quite limited. Here are a few options:

  • MacSQL ($699)
    • Commercial product
    • Designed for OS X - no word on iOS compatability
  • ODBC Router ($799)
    • Another commercial product
    • Appears to funnel requests through a server running special software
  • iSql ($25)
    • Commercial
    • Relaies on .Net web service, which can be hosted along side SQL Server database, to act as intermediary

Alternatively, since Objective-C is a superset of C, vanilla C works just fine, though you won't get the inherent "niceness" of working with an OO library. Microsoft has a page on ODBC Programmer's Reference to get you started.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文