开发者

Accessing Microsoft SQL Server from iPhone app

开发者 https://www.devze.com 2022-12-30 21:54 出处:网络
How do I go about doing开发者_如何学Go this?You shouldn\'t. Instead, you should make a web service that securely exposes the data you need.

How do I go about doing开发者_如何学Go this?


You shouldn't.

Instead, you should make a web service that securely exposes the data you need.
(Do not write an ExecuteSQL method!)

If you really want to connect directly to SQL Server from an iPhone, you'll need to write a TDS client; it will involve a lot of work.

By exposing the data through a web service, you add a layer of abstraction between the database and the client app, allowing you to change the database without breaking the app.

Also, exposing SQL Server directly to the internet is never a good idea.

Finally, remember that port 1433 might be blocked at a firewall.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号