Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Using MS SQL / SQLLite for iPhone  App

Posted on 2016-11-07
7
Medium Priority
?
110 Views
Last Modified: 2016-11-07
I have a relational 10-15 Table which is about Business, Activities, Recreation  in the Town. This is very small database designed in SQL.

I have to design an iPhone App to retrieve the data and Read only mode.

Do i need to have SQLLite database on the App ? If so, does the data from SQL is communicated to SQLLite through API ?

By the way, iPhone is expected to be coded using XAMARIN Environment - C#.
0
Comment
Question by:chokka
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 3
7 Comments
 
LVL 40

Expert Comment

by:lcohan
ID: 41877791
"Do i need to have SQLLite database on the App" - you need to access it via your "App" (and eventually to trigger sync before read) as it is already on IOS and Android devices. For sync-ing to IOS looks like someone did that already in xamarin:

https://forums.xamarin.com/discussion/5719/sync-sqlite-with-sql-server-merge-replication

SyncStudio https://apkpure.com/syncstudio-sync-client/com.syncstudioB4A.client looks like will have some IOS nugget in the future as per comments here: https://www.dbsyncstudio.com/challenges-of-mobile-db-sync/
0
 

Author Comment

by:chokka
ID: 41877810
@ICohan, I am in the Designing Phase. My question is, whether iPhone App requires to have both server as well as client based database ? Or, iPhone App can be developed only with Sqllite database.
0
 
LVL 40

Accepted Solution

by:
lcohan earned 2000 total points
ID: 41877836
Sorry if I misunderstood the essence of your question -  yes, SQLlite on your device should be enough in my opinion to host the data for your local app.
 
https://www.sqlite.org/whentouse.html

Now...if you need to deploy the app on multiple devices (which is more like it in my opinion) you'll have the local SQL lite client database sync-ed to a MS SQL for instance (if is small DB - up to max 2GB) you could even use free SQL Express if I'm not mistaken as your "server" repository where data from all clients is centralized/merged and sync-ed to all the devices as needed. Or use MySQL for your "server" (which I believe it is still free) if you think you'll have more than 2GB of data in your "Server" database.
0
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 

Author Comment

by:chokka
ID: 41877878
Thank you so much @Icohan.  I firmly believe size of my database would be less than 0.5 GB or little less than 1 GB. Yes, App will be deployed at least minimum of 50 - 100 users.

As per my understanding on your comment, I will have to have a Server based Database - SQL Express and SQLLite for App based database.
0
 
LVL 40

Expert Comment

by:lcohan
ID: 41877885
Right that should do it for sure and keep in mind to sync only what/when necessary from "server" SQL to "client" SQLLite database.
0
 

Author Comment

by:chokka
ID: 41877895
Thank you so much. That works...!!
0
 

Author Closing Comment

by:chokka
ID: 41877896
Thanks
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Windocks is an independent port of Docker's open source to Windows.   This article introduces the use of SQL Server in containers, with integrated support of SQL Server database cloning.
An alternative to the "For XML" way of pivoting and concatenating result sets into strings, and an easy introduction to "common table expressions" (CTEs). Being someone who is always looking for alternatives to "work your data", I came across this …
This video shows, step by step, how to configure Oracle Heterogeneous Services via the Generic Gateway Agent in order to make a connection from an Oracle session and access a remote SQL Server database table.
Using examples as well as descriptions, and references to Books Online, show the documentation available for date manipulation functions and by using a select few of these functions, show how date based data can be manipulated with these functions.

618 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question