Your SlideShare is downloading. ×
Introduction To .Net Compact Framework and SQL Server CE Development
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×

Introducing the official SlideShare app

Stunning, full-screen experience for iPhone and Android

Text the download link to your phone

Standard text messaging rates apply

Introduction To .Net Compact Framework and SQL Server CE Development

8,104
views

Published on

Introduction to .NET Compact Framework and SQL Server CE database development. …

Introduction to .NET Compact Framework and SQL Server CE database development.
With a focus on database techniques for occassionally connected scenarios.

Published in: Technology

1 Comment
5 Likes
Statistics
Notes
No Downloads
Views
Total Views
8,104
On Slideshare
0
From Embeds
0
Number of Embeds
3
Actions
Shares
0
Downloads
0
Comments
1
Likes
5
Embeds 0
No embeds

Report content
Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
No notes for slide
  • Transcript

    • 1. Introduction to .NET Compact Framework Development Mobile Data Synchronisation Techniques
    • 2. Who Am I?
    • 3. Microsoft Most Valuable Professional
    • 4. Agenda
      • Why?
      • Application Development
      • Mobile Data Storage
      • Data Synchronisation
      • Helpful Resources
    • 5. The Device Landscape Windows Mobile, Pocket PC, SmartPhone, Windows CE Windows XP, Windows Vista, Windows XP Embedded Remote Controls , Wearable Devices, Auxiliary Displays Increasing functionality .NET Micro Framework .NET Compact Framework .NET Framework
    • 6. .NET Compact Framework
      • 30% functionality in 10% space
      • X86, ARM, SH4, MIPS….
      • Compatible Base Class Library
      Bring .NET to devices Performance and Tools Distributed and Data based apps
    • 7. Windows Mobile History
      • WinPad and Pulsar projects
      • Pegasus Group formed
      • H/PC reference design
      • Componentised Operating System
    • 8. Typical Device Specifications Professional 200 – 700 Mhz 32 – 128 MB 128 MB Yes 240 x 320 Standard 100 – 300 Mhz 16 - 64 MB 64 MB No 176 x 220 Processor RAM ROM Touch Screen LCD Resolution
    • 9. Development Constraints
      • Minimal resources
      • Limited input
      • Touchscreen
      • No kitchen sink style apps
    • 10. DEMO Smart Device Hello World Application Development
    • 11. Why mobilise an application?
      • Distributed work forces
      • Competitive advantage
      • Unlock potential of existing data
    • 12. Rich vs Thin Clients
      • Frequent round trips
      • Requires connectivity
      • Limited controls
      • Easy deployment
      • AJAX and Silverlight
    • 13. Occasionally Connected
      • Addressability and identity
        • Dynamic IP addresses
        • Outbound only TCP and HTTP
      • Quality of service
        • Assume you are always offline
        • Need store-and-forward solution
    • 14. Network Aware
      • A dynamic network environment
        • Cost vs Priority decisions
        • Periodic background network checks
        • Notifications and connection status
      • Adaptive application behavior
    • 15. SQL Server Benefits Large data source Data is always fresh Rich query capability Limitations Constant connection Scalability (two tier) Query speed .NET Compact Framework ADO.NET Windows Forms SQL Server
    • 16. SQL Server CE Benefits Local Cache Distribution Size Query Speed Limitations Simpler Data Types Stale Data Sync Complexity .NET Compact Framework ADO.NET Windows Forms SQL Server
    • 17. SQL Server CE
      • SQL Server Compact Edition 3.5
        • SQL Server CE
        • SQL Server Mobile
        • SQL Server Everywhere
        • SQL Server Anywhere
    • 18. Design Philosophy
      • Supports desktop and mobile platforms
      • In-process database engine
      • Minimal duplication
      • Strong security
    • 19. Compact vs Express
    • 20. Deployment
      • CAB for PDA
      • MSI for desktop
      • XCOPY style deployment for “non admin” installs…
    • 21. Tool Support
      • SQL Server 2005 Compact Edition
        • Visual Studio 2005
        • SSMS 2005
      • SQL Server Compact Edition 3.5
        • Visual Studio 2008
        • SSMS 2008
    • 22. Special Features
      • SqlCEResultset
        • Remember classic ADO?
        • Scrollable, Updateable, Sensitive cursor into server side resultset
      • CommandType.TableDirect
        • Bypass the query processor entirely
    • 23. Optimisation Techniques
      • No connection pooling
      • Specify data types within parameterised queries
      • Query plan recompilation
      • Performance Monitoring
        • XML Query Plan Generation
        • Index Stored Procedures!?!
          • sp_show_statistics
    • 24. DEMO SQL Server CE Optimisations
    • 25. Data Syncronisation
      • Technologies
        • Merge Replication
        • Remote Data Access
        • Web Services
        • Email?
      • Can be complimentary based upon requirements of individual data sets
    • 26. Remote Data Access (RDA)
      • Client (PDA) Initiated
      • Pulls one table at a time
      • Device-only change tracking (identity columns problematic)
      • Application submits SQL statement to SQL Server for execution
      • Minimal configuration
    • 27. Merge Replication
      • Publisher (Server) Initiated
      • Publications can filter data Horizontally and/or Vertically
      • Bi-directional change tracking
        • Row or Column based
      • Configurable conflict resolution
    • 28. Web Services
      • Abstract the database away from the messaging
      • Disconnected Service Agent
      • Windows Communication Foundation
        • Store and Forward Messaging
        • Leverage ActiveSync AUTD feature and Exchange 2007 Web Services
    • 29. ADO.NET Sync Services
      • Uses webservices to syncronise changes
      • Framework of “building blocks”
      • Not yet available for PDA use
      “ Developers can build sync ecosystems that integrate any application, any data from any store using any protocol over any network”
    • 30. Hybrid Pattern Disconnected Service Agent Submit new and changed data to server via web service call 2 Mobile Data Gateway Merge/Replication Download reference, read-only data 1 Mobile Data Update Tables on Mobile SQL Server database updated 3
    • 31.
      • MCTS Exam 70-540
      • Mobile LOB Accelerator
      • Microsoft Mobile Development Handbook
      • Windows Mobile Data Synchronization with SQL Server 2005 and SQL Server Compact 3.1
      Finding out more
    • 32. Contact Information Christopher Fairbairn ARANZ Medical Ltd Questions? Email: [email_address] Website: www.christec.co.nz/blog/