MS SQL Server
  Home arrow MS SQL Server arrow SQL Server CE Programming with 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  
Visual Basic.NET  
Windows Scripting  
Windows Security  
XML  
ASP Web Hosting  
ASP.NET Web Hosting 
Dedicated Servers 
Actuate Whitepapers 
Moblin 
Windows Web Hosting
 
IBM® developerWorks 
Sun Developer Network 
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

SQL Server CE Programming with Pocket PC and Visual Studio.NET 2003: Databases and Tables
By: Jagadish Chaterjee
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 5 stars5 stars5 stars5 stars5 stars / 18
    2006-05-22

    Table of Contents:
  • SQL Server CE Programming with Pocket PC and Visual Studio.NET 2003: Databases and Tables
  • Creating SQL Server CE databases and tables in Pocket PC programmatically: source code
  • Creating SQL Server CE databases and tables on Pocket PC programmatically: deployment
  • Creating SQL Server CE databases and tables on Pocket PC programmatically: explanation

  • 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
     
    Iron Speed
     
    ADVERTISEMENT

    Generate data entry and reporting .NET Web apps in minutes, straight from your database. Read our FREE whitepaper “Build Web 2.0 Applications Without Hand-Coding” Download now!

    SQL Server CE Programming with Pocket PC and Visual Studio.NET 2003: Databases and Tables


    (Page 1 of 4 )

    This article is focused on developing SQL Server CE based applications using a Pocket PC emulator with Visual Studio.NET 2003. We will program to create databases and tables for SQL Server CE using Pocket PC together with Visual Studio.NET 2003.

    I suggest that you download and install Pocket PC 2003 SDK (available free) and the additional latest Pocket PC emulators from the Microsoft website. I use them in this article.

    If you are new to mobile application development (or confused with Windows mobile, smart phone, Windows CE, Pocket PC, and so on), I strongly suggest you go through the article I already contributed on “Developing Pocket PC applications using Visual Studio.NET 2003” before proceeding further.

    If you are new to SQL Server CE based development using Pocket PC, I strongly suggest you go through another introductory article of mine here

    Creating SQL Server CE databases and tables in Pocket PC programmatically: Layout

    In my previous articles, I introduced developing simple applications and Microsoft SQL Server CE based applications using Pocket PC emulator with Visual Studio.NET 2003.

    In this article, I shall deal with creating databases and tables in SQL Server CE database programmatically (or dynamically). 

    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.” 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.”
    • 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 toolbox.
    • Right click on your project and go to “Add References.”  Select “System.data.common” and “System.data.SqlServerCE,” click “select” and finally click on “OK.”
    • Drag a “TabControl” from your toolbox onto the form and add a tab using the property “TabPages” in the “Properties” window. Name the tab “Create.” 
    • Drag a “Button” onto the tab and give it the caption “CreateTable” (name it “btnCreateTable”).  By this time, your form should look as follows (fig1):

    Actually “TabControl” is not necessary.  I simply wanted to demonstrate the tab control, we shall extend its use in my future articles!  In the next section we shall write the code for that button.

    More MS SQL Server Articles
    More By Jagadish Chaterjee


       · Hello guys! another article on programming Pocket PC. Have it, enjoy and give me...
     

    MS SQL SERVER ARTICLES

    - 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
    - Building a Multi-table Report with SQL 2005 ...
    - A Secure Way of Building Connection Strings
    - Transferring a Database Using the SSIS Desig...





    © 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway