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

Mockup & CodeGen, iPhone & iPad
($9.99)

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

Manu
($0.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 09-11-2009, 08:28 AM   #1 (permalink)
Registered Member
 
Join Date: Sep 2009
Posts: 15
Default DataBase Connection

Hi
I am new to Iphone Development. I have to built Iphone Business application. I need to know how to connect SQL server database in my application. assist me.. you can send sample code to my mail id udham1985@gmail.com


Thanks
Udham
udham is offline   Reply With Quote
Old 09-11-2009, 10:47 AM   #2 (permalink)
Registered Member
 
magalhaes's Avatar
 
Join Date: Jun 2009
Location: Juiz de Fora,MG,Brazil
Posts: 60
Default

if you want to use sql server, you have to make an app to run in server and transfer data tables of iPhone for it, you have to use Sockets to send and receive data between SQLite and sqlServer, and so on....
read about sockets and try find SocketWrappers to know how to do it
magalhaes is offline   Reply With Quote
Old 01-28-2010, 02:03 AM   #3 (permalink)
Registered Member
 
Join Date: Jan 2010
Posts: 3
Smile Got the solution ?

Hi Udham,

Did you got the solution for this one and can you share the same with me ?

Thanks,
Ashish
caveatashish is offline   Reply With Quote
Old 03-16-2010, 06:38 AM   #4 (permalink)
Registered Member
 
Join Date: Sep 2009
Posts: 15
Default

Hi.. I created php file in my server and send the request from iphone. The php file execute the query and generate xml file . after that i used XMLParser to parse the XML file.


Quote:
Originally Posted by caveatashish View Post
Hi Udham,

Did you got the solution for this one and can you share the same with me ?

Thanks,
Ashish
udham is offline   Reply With Quote
Old 03-24-2010, 04:32 AM   #5 (permalink)
gems
 
Join Date: Jan 2010
Location: kolhapur
Posts: 23
Red face

Quote:
Originally Posted by udham View Post
Hi.. I created php file in my server and send the request from iphone. The php file execute the query and generate xml file . after that i used XMLParser to parse the XML file.
Sir,
I am dealing with what you have done. i want to send the data to PHP file present at server side. i am accepting the data in my App. Can you share the code for this or any help. thanks in advance
Mahesh Paymal
gems is offline   Reply With Quote
Old 03-31-2010, 12:01 AM   #6 (permalink)
Registered Member
 
Join Date: Sep 2009
Posts: 15
Default

I used the below steps to send the data to php file

NSString *urlstr = [[NSString alloc] initWithFormat:@"http://myserver.com/test.php?Username=%@&Password=%@&clientcode=%i", strUserName,strPassword,intCCode];
NSURL *url = [[NSURL alloc] initWithString:urlstr];
NSString *ans =[NSString stringWithContentsOfURL:url];

Want more details you can mail me , my id is udham1985@gmail.com



thanks
udham is offline   Reply With Quote
Reply

Bookmarks

Tags
database, iphone

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: 248
18 members and 230 guests
ADY, Alsahir, beleg_1998, Dani77, diyora, iDifferent, iph_s, JamesCahall, JasonR, mer10, Monstertaco, prchn4christ, Robiwan, Rudy, smithdale87, Speed, spiderguy84, timle8n1
Most users ever online was 1,187, 10-11-2011 at 08:09 AM.
» Stats
Members: 158,880
Threads: 89,228
Posts: 380,755
Top Poster: BrianSlick (7,129)
Welcome to our newest member, @sandris
Powered by vBadvanced CMPS v3.1.0

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