473,574 Members | 11,734 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

store data in .net mobile app

4 New Member
Hello everyone,
I want to develop app in .net mobile that would store data, and retrieve it. For example, a user would choose a food item from a list, and the app would display calorie info for the item from database table. Would anyone have any idea how I could go about doing this? I've been playing with DataTable but I'm not sure if it the right way to do it. I'm a beginner in mobile deb :(

Thank you.
Dec 14 '09 #1
7 2294
markmcgookin
648 Recognized Expert Contributor
Your best bet is to look into using SQL Server CE (Compact Edition) which is a free resource with Visual Studio.

You can create a .sdf file as your database on the device and store information in it, and retrieve it with simple SQL queries based on your user's input.

A quick google/search on bytes.com should land you some useful links on how to do this. Something like "SQL Server CE Windows Mobile" should return a bunch of results. If you have any issues, post back here and we will see if we can help you out.
Dec 14 '09 #2
mag66
4 New Member
Thank you for your reply. I came across SQL Server CE in my reserach; however I'm wondering about one thing: I wouldn't have any problem with installing it on my laptop, but I have to present this application on a computer that doesn't have SQL Server CE installed. I'm guessing the app wouldn't run then, am I right?
Dec 14 '09 #3
markmcgookin
648 Recognized Expert Contributor
Are you running this on a PDA or on a laptop?
Dec 14 '09 #4
mag66
4 New Member
I'm running the app on my laptop in visual studio using emulator.
Dec 14 '09 #5
markmcgookin
648 Recognized Expert Contributor
Ah right, so the "PDA" in the emulator is where the SQL Server CE needs to be installed. There are DLLs included with VS that you can include with your Smart Device project to allow it to run SQL Server CE on the Emulator, as it would run on the PDA.

Try reading through this MSDN tutorial on how to connect to SQL Server CE using windows mobile and c#


EDIT - Infact... that's too complex. Forget that tutorial. Its a lot simpler than that. You can create an sdf file and populate it with SQL on the device if you want. Or connect to it through SQL server management studio. SQL Server CE runs on the DEVICE/EMULATOR allowing apps to work when they are not connected to anything.
Dec 14 '09 #6
markmcgookin
648 Recognized Expert Contributor
Aha.. this one is a bit more of a useful tutorial....

Read through this carefully and follow it, use the source code only if you get stuck (its always best to learn rather than copy!)

Tutorial
Dec 14 '09 #7
mag66
4 New Member
ok. Thank you very much!! I'll give it a try.
Dec 15 '09 #8

Sign in to post your reply or Sign up for a free account.

Similar topics

35
3630
by: Troll | last post by:
Hi, I need to write a script which reads some data and reports the findings. Just to give you an idea the structure is similar to the following. Data input example: HEADING 1 ********** ColumnA ColumnB ColumnC ColumnD ColumnE
9
1058
by: Mark Goldin | last post by:
Is there any control that will hold an xml data on the server and be able to deliver that xml to the client?
5
2217
by: Gene | last post by:
What can I do if I want to get the result using the sql command? for example, the select command is "select Name from Employee where StaffID=10" How to get the "Name"??? dim Name as string and then..... what should I do?
8
1896
by: rriness | last post by:
I'm getting an inconsistent failure when trying to save data in ADO.Net. I'm using an Access database with a simple query - SELECT StudentID, FirstName, LastName FROM Students - and have no other users in the database. I keep getting the message 'Operation must use an updateable query.' Process seems to work on some PC's, not others. Is...
4
2141
by: Matt | last post by:
I have the following in a page and I am trying to update a record on the next page but for some reason the form data is not carrying over. Any ideas why? <form name=nxtlupdate method=post action=supers_NxtlUpdate.asp> <% Do While Not objRecordset.EOF
2
1715
by: Mukesh | last post by:
Hi all I m Using SQL SERVER 2005 I have a requirement to store some data in xmldatatype using stored procedure , Here is example
4
1761
uranuskid
by: uranuskid | last post by:
Hey guys, I need help with following issue: I have a db where userinfos are stored. The script connects to this db in order to check whether the user is logged in. Then I have a from where people enter s.th to be stored in another db. The form transports the username as a hidden field. That's all fine, but once I want to store more info in...
3
2099
by: ninjamonkey | last post by:
Hi all, I've developed a mobile application for windows mobile 5.0 that has been in use for a while (1 year and a couple of months). It was developed in visual studios 2005 with a back-end sql server mobile ce database. Until recently I was synching everything thru a com port serial cable. The devices would connect to the computer thru...
8
2169
by: ahilar12 | last post by:
Hi experts, I have a form with many textboxes,listboxes in php.I have a edit button to edit the values in the form.once i click the edit button the existing values should be displayed so that the user can edit those particular values and also that should be updated in the mysql database.kindly reply me as early as possible. Thanks
0
7817
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7738
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
8081
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
8119
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
6482
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
0
5322
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3759
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3771
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2254
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.