Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Interface 2, Advanced iOS
Mockup & Code Gen
($9.99)

Make your own iPhone apps
and run them live!
(free)

Pic Frame Dynamo: Photo Editing
($0.99)

Abiliator
($1.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum > iPhone SDK Development Forums > iPhone SDK Development

Reply
 
LinkBack Thread Tools Display Modes
Old 06-21-2010, 11:01 AM   #1 (permalink)
Registered Member
 
Join Date: Jun 2010
Posts: 4
reydan is on a distinguished road
Default Connect iphone to MS SQL Server 2000

Hi,

First of all, I'm not very good with web technologies and databases (I have some general knowledge) so you should explain stuff in a "... for dummies" style . Here's what I have and what I need:

I'm making an iphone application that needs to connect to the client's database and display some info/images from the server.

The database is MS SQL 2000 and I also have ASP.NET available on the server.

How should I approach the problem? I found 2 solutions:
1. Use a SQL library inside the iphone app and connect directly to the database
2. Use a server-side component written in ASP.NET that would act as a proxy between my application and the SQL database. I've read around and saw I could use JSON as a protocol to exchange data between my app and the server-side proxy. Also, connecting and using the SQL database would be much easier in ASP (or at least I think so).

If you have any other solutions please feel free to share.
Personally I like the solution with the server-side proxy.

There is another thing to mention. The users will have to enter a username/password to connect to the database so the solution would have to be somewhat secure.

Thanks for any help
reydan is offline   Reply With Quote
Old 06-21-2010, 11:46 AM   #2 (permalink)
Senior Member
iPhone Dev SDK Supporter
 
Join Date: Aug 2008
Location: Memphis, TN, USA
Age: 24
Posts: 3,983
smithdale87 is on a distinguished road
Send a message via AIM to smithdale87
Default

the best way would be to use a webservice to do all your database comm, then just have the iphone interact with the webservice

Edit: IMO of course.
smithdale87 is offline   Reply With Quote
Old 06-21-2010, 12:06 PM   #3 (permalink)
Registered Member
 
Join Date: Jun 2010
Posts: 4
reydan is on a distinguished road
Default

Thanks,

Any hints on how I would implement the authentication through the web service?
reydan is offline   Reply With Quote
Old 06-21-2010, 04:40 PM   #4 (permalink)
Senior Member
iPhone Dev SDK Supporter
 
Join Date: Aug 2008
Location: Memphis, TN, USA
Age: 24
Posts: 3,983
smithdale87 is on a distinguished road
Send a message via AIM to smithdale87
Default

what kind of authentication
smithdale87 is offline   Reply With Quote
Old 06-22-2010, 02:34 AM   #5 (permalink)
Registered Member
 
Join Date: Jun 2010
Posts: 4
reydan is on a distinguished road
Default

The users must enter a username/password in the iphone application in order to have access to the database.
reydan is offline   Reply With Quote
Old 06-22-2010, 10:28 AM   #6 (permalink)
Senior Member
iPhone Dev SDK Supporter
 
Join Date: Aug 2008
Location: Memphis, TN, USA
Age: 24
Posts: 3,983
smithdale87 is on a distinguished road
Send a message via AIM to smithdale87
Default

You can just send the username/pw to the webservice, authenticate on the serverside, and send back a response to the iphone.
smithdale87 is offline   Reply With Quote
Old 02-03-2012, 01:46 AM   #7 (permalink)
Registered Member
 
Join Date: Feb 2012
Posts: 1
rajugaddam is on a distinguished road
Default how to connect xcode to sqlserver 2008 in windows xp

Hi,

I am install the xcode in my windows xp via VMware workstation(snow.IOS) how to connect xcode to sqlserver 2008 in xp.can you just provide the detalis for connection


thanks,
raj
rajugaddam is offline   Reply With Quote
Reply

Bookmarks

Tags
iphone, json, sql server

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



» Advertisements
» Online Users: 332
8 members and 324 guests
anothermine, Chickenrig, Domele, givensur, heshiming, michaelhansen, PixelInteractive, Sloshmonster
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,657
Threads: 94,118
Posts: 402,892
Top Poster: BrianSlick (7,990)
Welcome to our newest member, jenniead38
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 12:18 AM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0