MS SQL Server
  Home arrow MS SQL Server arrow Page 2 - Developing SQL Server CE based Pocket PC A...
ASP Free Forums 
.NET  
ASP  
ASP Code  
ASP.NET  
ASP.NET Code  
BrainDump  
C#  
Code Examples  
Database  
Database Code  
IIS  
Microsoft Access  
MS SQL Server  
Silverlight  
Visual Basic.NET  
Windows Scripting  
Windows Security  
XML  
Mobile Linux 
App Generation ROI 
IBM® developerWorks 
ASP Web Hosting  
ASP.NET Web Hosting 
Windows Web Hosting
 
Weekly Newsletter
 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid 
Request Media Kit
Contact Us 
Site Map 
Privacy Policy 
Support 
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
MS SQL SERVER

Developing SQL Server CE based Pocket PC Applications using Visual Studio.NET
By: Jagadish Chaterjee
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 5 stars5 stars5 stars5 stars5 stars / 22
    2006-05-17

    Table of Contents:
  • Developing SQL Server CE based Pocket PC Applications using Visual Studio.NET
  • Installing SQL Server CE onto a Pocket PC emulator: developing the application
  • Installing SQL Server CE onto a Pocket PC emulator: deploying the application
  • Where did the installation actually take place in the Pocket PC?
  • Creating an SQL Server CE database programmatically

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article
     
     
    ADVERTISEMENT


    Developing SQL Server CE based Pocket PC Applications using Visual Studio.NET - Installing SQL Server CE onto a Pocket PC emulator: developing the application


    (Page 2 of 5 )

    Before proceeding with the following steps, make sure that you have "Smart Device Extensions" installed (which need to be selected during the Visual Studio.NET setup). 

    Let us begin now:

    • Open Microsoft Visual Studio.NET 2003.
    • Go to File -> New -> Project.
    • Within the "New Project" Dialog, select "Visual Basic Projects" from the "Project Types" and "Smart Device Application" from the "templates" (as shown in Fig1).

    •  Currently, I left the name of the application "SmartDeviceApplication1." You can change it according to your requirements.
    • Once you click "OK," you will be presented with the "Smart Device Application Wizard."  Select "Pocket PC" as the platform of target and "Windows application" as "project type" (as shown in Fig2).

    • Click "OK" to accept your settings.  You will be presented with a form (very similar to a Visual Basic 6 form), where you can design with the controls available in the toolbox.
    • Right click on your project and go to "Add References."  Select "System.data.common" and "System.data.SqlServerCE" and click "select," then finally click on "OK" (as shown in Fig3).

    • Drag a "Button" control from your toolbox onto the form and write the following code:
    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e
    As System.EventArgs) Handles Button1.Click
            MessageBox.Show("This app mainly used for deploying SQL
    Server CE on to this mobile device")
    End Sub

    The above is not necessary.  You can consider it a dummy.  Our main intention is to have SQL Server CE deployed on the Pocket PC emulator.  For that purpose, I need to have those two assemblies added to the project.

    More MS SQL Server Articles
    More By Jagadish Chaterjee


       · Hello guys, contributed another on developing Pocket PC applications. Enjoy and give...
     

    MS SQL SERVER ARTICLES

    - Windows Server 2008 as a Workstation OS
    - An Overview of Windows Server 2008 R2
    - LINQ to MySQL, Oracle and PostgreSQL Provide...
    - Completing the Introduction to Transact-SQL
    - A Brief Introduction to Transact-SQL
    - Lookups and Blocking Bad Data
    - Field Validation Rules for Blocking Bad Data
    - Using Masks to Block Bad Data
    - Blocking Bad Data
    - Using @@ROWCOUNT and TABLE Variables for Dat...
    - How to Use Variables, IF and CASE in Databas...
    - Creating Important Aspects of Notification S...
    - Working wth Variables in Database Interactio...
    - Delving Deeper into Notification Services
    - Notification Services





    © 2003-2009 by Developer Shed. All rights reserved. DS Cluster 4 Hosted by Hostway
    Stay green...Green IT