is there a sample of database app for windows mobile?

Posted on 2010-09-11
Last Modified: 2013-11-17

Can any body give me ,or link me to an example of database windows mobile .

Thank you
Question by:Ahmadal_najjar2003
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
  • 3

Accepted Solution

FactorB earned 250 total points
ID: 33652397
As per my opinion it is best to use SQLite

Download the driver and install it

Make a database file and tables with SQLite studio

Then simply access your data from .Net

        Dim ds1 As System.Data.DataSet = New System.Data.DataSet
        '''''' get the full application name with the path
        Dim fullPath As String=System.Reflection.Assembly.GetExecutingAssembly().GetName().CodeBase
        '''''' get the path to the folder
        Dim pathOnly As String = fullPath.Substring(0, fullPath.LastIndexOf("\")) & "\"
        Dim MyConnection1 As New System.Data.SQLite.SQLiteConnection()
        '''''' assuming that database name is database.db3 and is located in the same folder as application
        MyConnection1 = New System.Data.SQLite.SQLiteConnection("Data Source=" & pathOnly & "database.db3;")
        '''''' You have a table named "table_name" and want to select everything from it        
        Dim da1 As New System.Data.SQLite.SQLiteDataAdapter("Select * From table_name", MyConnection1)
        ''''''' fill the data adapter with records        
        da1.Fill(ds1, "table_name")

That's it for class one :)


Expert Comment

ID: 33652414
I've just simplify what it took me a lot of time to find (I've tested all kinds of windows mobile i.e. pocket pc databases and SQLite just caught me :) The same database and application was working on desktop (.Net 3.5), off course with a x86 driver from the upper post.

Assisted Solution

efatihan earned 250 total points
ID: 33654711
i can tell you to use sql compact. i'am using it for long time and didn't see any problem nor compare it with other db systems. upon a time i tried to use the oracle version and couldn't even make it to work :)

just try it, here is a sample:

microsoft has a good support for it.

Expert Comment

ID: 33655154
The only thing I don't like with SQL Server Compact is when you deploy your application you need to install the server, too. With SQLite you just deploy the driver (SQLite.dll) and the Application in the same folder. Plus there is such a handy option, IN MEMORY TABLES that enables you to read the tables into ram and use them from there. Tremendous for speed. Speed is the main enemy to other embedded databases.


Author Closing Comment

ID: 33765997

Featured Post

Instantly Create Instructional Tutorials

Contextual Guidance at the moment of need helps your employees adopt to new software or processes instantly. Boost knowledge retention and employee engagement step-by-step with one easy solution.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
PowerShell:  Column widths won't expand 3 58 figure out error 3 41
How do I "share" on social sites? 2 33
Replace statements HTML with HTML IF 8 51
More often than not, we developers are confronted with a need: a need to make some kind of magic happen via code. Whether it is for a client, for the boss, or for our own personal projects, the need must be satisfied. Most of the time, the Framework…
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
Are you ready to implement Active Directory best practices without reading 300+ pages? You're in luck. In this webinar hosted by Skyport Systems, you gain insight into Microsoft's latest comprehensive guide, with tips on the best and easiest way…

738 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