iosswiftdatabase-server

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


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.


Solution

  • 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.