martinrybak / SQLClient

Native Microsoft SQL Server client for iOS
http://objcsharp.wordpress.com/2013/10/15/an-open-source-sql-server-library-for-ios/
MIT License
125 stars 51 forks source link

Is there any way to connect to azure database the same way? #48

Closed whencesoever closed 7 years ago

whencesoever commented 7 years ago

I managed to connect to typical SQL-Server on both local and not local server. But what i want to try to do now is to connect to azure database. Every time i try to do this i get this error:

Server name not found in configuration files
Unknown host machine name 

Should i specify port differently?

whencesoever commented 7 years ago

when i add port to database name with :1433 instead of ,1433 i got this error:

Adaptive Server connection failed

martinrybak commented 7 years ago

Looks like you may need to recompile the FreeTDS binary with some additional options: https://martinrichards.tumblr.com/post/28488121620/connecting-to-sql-azure-using-freetds

If you figure it out let me know.