PDA

View Full Version : Access data in iphone...




bytezone
May 8, 2009, 08:53 AM
Can anyone clarify me about these queries..

1. How can I access SQL Server data from iphone..??

2. Is using web service the only option...??


Thanks in advance for your help...



BlackWolf
May 8, 2009, 09:13 AM
google search for "ipone sql", first result. I know, google is pretty new, but now you know :-)

http://www.iphonesdkarticles.com/2008/07/iphone-sdk-tutorial-using-sql-lite-part.html

bytezone
May 8, 2009, 09:58 AM
Thanks...!!! But I am basicaly looking to access data from sql server ..!!!

google search for "ipone sql", first result. I know, google is pretty new, but now you know :-)

http://www.iphonesdkarticles.com/2008/07/iphone-sdk-tutorial-using-sql-lite-part.html

BlackWolf
May 8, 2009, 10:10 AM
Thanks...!!! But I am basicaly looking to access data from sql server ..!!!

... that's what the code I posted does?

dejo
May 8, 2009, 10:13 AM
... that's what the code I posted does?
I believe they're asking about accessing an MS SQL Server database that is running on a remote server.

bytezone
May 8, 2009, 10:22 AM
Exactly.... I want to access data from MS SQL Server database that is running on a remote server

I believe they're asking about accessing an MS SQL Server database that is running on a remote server.

jnic
May 8, 2009, 10:25 AM
2. Is using web service the only option...??

It's not the only option but it's definitely the best supported.

Take a look at the NSURLConnection guide: http://developer.apple.com/iphone/library/documentation/Cocoa/Conceptual/URLLoadingSystem/Tasks/UsingNSURLConnection.html