MS SQL Server
  Home arrow MS SQL Server arrow Page 3 - 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 
Mobile Linux 
App Generation ROI 
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
     
     
    ADVERTISEMENT


    SQL Server CE Programming with Pocket PC and Visual Studio.NET 2003: Databases and Tables - Creating SQL Server CE databases and tables on Pocket PC programmatically: deployment


    (Page 3 of 4 )

    Before proceeding with the following steps, make sure that you completed all the steps in the previous section. 

    • Execute your application by pressing F5 and you should be looking at something like the following image (Fig2). 

    • If necessary, you can also click the “Set As Default” button and switch off the check box to not to show in the future.
    • Finally click on “Deploy.”
    • After a few seconds, you can observe the installation of the .NET Compact Framework and SQL Server CE installation (which is after the .NET Compact Framework).
       
    • Finally, after few more seconds, we will see our application with the button.  Once you click on that button, it simply shows a message something like the one in the following image (fig3).

    The above process gets repeated every time you execute your application.  If you face any deployment errors, just close any existing emulators and try pressing F5 again (without switching on emulators manually by yourself).

    Where is the database and table?  You need to open the database “emp.sdf” (by simply clicking on it) available in root (or at “My Device”).  Once you open it, it simply gives you a "wrong password" message and prompts for the password to open.  You provide the password as specified in the previous source code.  Once everything is successful, you should be able to see the database and table as something like the following image (fig4):

    If you don’t know how to open the database, I suggest that you go through my previous article.

    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 3 hosted by Hostway
    Stay green...Green IT