What framework to use to connect to a SQL Server instance from an iPhone? [duplicate]

我只是一个虾纸丫 提交于 2019-12-12 13:39:50

问题


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.


回答1:


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.



来源:https://stackoverflow.com/questions/3899447/what-framework-to-use-to-connect-to-a-sql-server-instance-from-an-iphone

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!