How to connect an iOS app to SQL server without webservices?

malhobayyeb picture malhobayyeb · Feb 8, 2016 · Viewed 7.3k times · Source

I am given a task to retrieve data from a database server.

I have the following details:

HOST
PORT
DATABASE
USERNAME
PASSWORD

But how can I fire a connection from iOS to the database server directly?

No SOAP/RESTful APIs available.

Answer

franck picture franck · Feb 8, 2016

For SQL server, you can use this library: SQLClient by martinrybak

SQLClient: Native Microsoft SQL Server client for iOS. An Objective-C wrapper around the open-source FreeTDS library.