Advertise Books Events Forum News Social Networking Support Us

sdkIQ for iPhone
($4.99)

Shape Up
($0.99)

Your First iPhone App
($1.99)

iVidCam Free
(free)

Kid Art
($0.99)

iPUBQUIZ
(£1.19)

ArtStudio
($3.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum

View Single Post
Old 11-07-2008, 01:41 PM   #2 (permalink)
dicklacara
New Member
 
Join Date: Nov 2008
Posts: 123
Default

Quote:
Originally Posted by idima View Post
Hi everyone!

I would like to know, if it is possible to sync a database of an iphone app (sqlite) with any database on the server.
The goal is to develope an iphone-application that runs on several iphones as clients and syncs its database with the central database on the server.

Thank you very much!!!
Sure!

1) You have to copy the iPhone SQLite DB to the iPhone's Documents folder so you can update it. (google for an example on how to do this)

2) You need a way to access the DB server-- typically through a web app or a web service.

3) You need to write the iPhone synch app to access the Server DB and update the local SQLite DB.

You prolly want to add some sort of timestamp indication at both ends to avoid unnecessary synchs
dicklacara is offline   Reply With Quote
 
Enter the iPhone App Challenge!  Win $500!
» Advertisements
» Online Users: 273
22 members and 251 guests
Adam3001, ashish1405, bensj, Falcon80, fordprefect77, fourtyfour, Hololon, iSdkDev, JJJohan, lmprods, Meoz, Momeks, neil_l, phonedood, refreshe, shibq, simpsonaty, sourman, steipete, tester, ToM, ZunePod
Most users ever online was 779, 05-11-2009 at 09:55 AM.
» Stats
Members: 24,240
Threads: 39,016
Posts: 171,117
Top Poster: smasher (2,570)
Welcome to our newest member, SecuritySupportAVZZ
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 06:57 AM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.