Presentation is loading. Please wait.

Presentation is loading. Please wait.

DAT413: SQL Server ™ CE: Building Mobile Applications with SQL Server CE and Smart Device Extensions Kevin Collins Senior Program Manager Microsoft Corporation.

Similar presentations


Presentation on theme: "DAT413: SQL Server ™ CE: Building Mobile Applications with SQL Server CE and Smart Device Extensions Kevin Collins Senior Program Manager Microsoft Corporation."— Presentation transcript:

1 DAT413: SQL Server ™ CE: Building Mobile Applications with SQL Server CE and Smart Device Extensions Kevin Collins Senior Program Manager Microsoft Corporation

2 Agenda SQL Server CE Overview SQL Server CE Overview Deployment Platforms Deployment Platforms Smart Device Extensions (SDE) Overview Smart Device Extensions (SDE) Overview SQL Server CE v2.0 Architecture and Features SQL Server CE v2.0 Architecture and Features Deployment and scaling case study Deployment and scaling case study

3 SQL Server CE Overview Key Scenarios Key Scenarios – Disconnected database – Internet / Intranet connectivity / synchronization – Different from Mobile Web Forms / MMIT, ADO.NET Data Set and MSMQ CE – Managed and Unmanaged Support Customer Scenarios Customer Scenarios – Medical, Military, DSD, FSA, SFA, Real estate

4 Nevalon – Real Estate MLS

5 Windows CE Platforms H/PC 2K – (Jornada 720, Intermec 6651) H/PC 2K – (Jornada 720, Intermec 6651) – No.NET CF support, Native support – Typically have keyboard – Many have 32mb ROM/RAM – PC Card/USB PocketPC 2000, 2002, Phone Edition – (Intermec 700, Compaq iPaq) PocketPC 2000, 2002, Phone Edition – (Intermec 700, Compaq iPaq) – No keyboard –.NET CF Support and Native support – Many have 64MB RAM/ROM, USB and CF support Embedded – (Intermec 5020) Embedded – (Intermec 5020) – Varying CPU/RAM/ROM – PB 3.0 Native support – PB 4.0.NET CF support

6 VS.NET/SDE Development Sequence VS.NET Source Code (Hello.*) Compliers.NET Compact Framework Class Libs.NET Compact FrameworkCLR Framework Class Libs Hello.exe Windows CE Emulator.NET Compact FrameworkCLR Framework Class Libs Hello.exe Win32.NET Compact FrameworkCLR Framework Class Libs Hello.exe Device Deployment Options

7 .NET CF Class Libraries System System.DataSystem.Xml System.Web Globalization Text Security Collections Resources Reflection Net IO Threading Diagnostics ServiceProcess Configuration Design ADO.NET SqlServerCe SqlClient Xslt/XPath XmlDocument Runtime InteropServices Remoting Serialization Serialization ConfigurationSessionState CachingSecurity Services Description Discovery Protocols UI HtmlControls WebControls System.Drawing Imaging Drawing2D Text Printing System.WinForms DesignComponentModel Reader/Writers

8 Tech-Ed 2002 KeyNote

9 OLEDB CE CLR /.NET CF QP/Cursor Engine/ES SQL Server CE v2.0 Device Data Access ADO CE v3.1 Storage Engine / Repl Tracking SQL Server CE v2.0 eVB 3.0 eVC 3.0 OLEDB OLEDB SQL Server CE 2.0 Data Provider Native/Unmanaged Stack SDE / Managed Stack ADO.NET VS.NET (VB.NET, C#)

10 SQL Server CE v2.0 Platform Support Tool Set Data Access Platform eMVT ADOCE / OLEDBCE HPC 2K eMVT ADOCE / OLEDBCE PocketPC 2000 eMVT ADOCE / OLEDBCE PB 4.1 “Jameson” VS.NET /.NET CF ADO.NET PocketPC 2002 VS.NET /.NET CF ADO.NET PocketPC 2000 VS.NET /.NET CF ADO.NET PB 4.1 “Jameson” eMVT ADOCE / OLEDBCE PocketPC 2002

11 SQL Server 2000 Windows CE Edition v2.0 Upward compatibility with SQL Server Upward compatibility with SQL Server – Same result sets – Compatible data types Right footprint size for devices Right footprint size for devices – ~800kb for X86 CPU

12 Database Feature Set Rich functionality for small footprint Multi-column indexes Multi-column indexes Referential integrity Referential integrity Sub-selects (IN) Sub-selects (IN) Defaults Defaults Inner/outer joins Inner/outer joins One file database One file database Null support Null support Unicode support Unicode support Transactions Transactions Data-types Data-types – Real, Numeric, NVarChar, NText, Image, Integer, DateTime, VarBinary, UniqueIdentifier, Money Having/group by Having/group by Seek on index Seek on index Set functions Set functions Identity attribute Identity attribute Local security - DB encryption (128bit) and database password Local security - DB encryption (128bit) and database password

13 New V2.0 Features Intrinsic functions Intrinsic functions ABS ABS ACOS ACOS ASIN ASIN ATAN ATAN ATN2 ATN2 CEILING CEILING COS COS COT COT DEGREES DEGREES EXP EXP FLOOR FLOOR LOG LOG LOG10 LOG10 PI PI POWER POWER RADIANS RADIANS RAND RAND ROUND ROUND SIGN SIGN SQRT SQRT NEWID NEWID TAN TAN UNICODE UNICODE CHAR CHAR CHARINDEX CHARINDEX LEN LEN LOWER LOWER LTRIM LTRIM PATINDEX PATINDEX REPLACE REPLACE REPLICATE REPLICATE @IDENTITY @IDENTITY RTRIM RTRIM SPACE SPACE STR STR STUFF STUFF SUBSTRING SUBSTRING UPPER UPPER CASE CASE COALESCE COALESCE CONVERT CONVERT DATALENGTH DATALENGTH

14 New V2.0 Features Union Union – SELECT * FROM A UNION SELECT * FROM B Parameterized Queries Parameterized Queries – INSERT INTO mytable (col1, col2) VALUES (?, ?); Index Pull Index Pull – Brings indexes down with RDA Pull Connectivity Setup Wizards Connectivity Setup Wizards – Ease installation of SQL CE Server components Optional Error Strings Optional Error Strings – Extra DLL to provide error strings in application Increased index limit per table Increased index limit per table

15 New V2.0 Features SQL Server Client Data Provider SQL Server Client Data Provider – Direct Access to SQL Server Enhanced ISQLW Enhanced ISQLW

16 ISQLW CE, new SQL

17 SQL Server CE V2.0.NET Integration – ADO.NET System.Data.SqlClient System.Data.SqlClient – Direct connection to SQL Server – Rich interaction with the server Full TSQL Full TSQL Stored Procedures Stored Procedures System.Data.SqlServerCE System.Data.SqlServerCE – Local Data Provider – Rich data access while offline – Exposes full functionality of SQL Server CE

18 SQL Server CE Error Handling Utilizes Try/Catch Utilizes Try/Catch – System.Data.SqlServerCe.SqlCeException

19 OLEDB CE CLR /.NET CF QP/Cursor Engine/ES CE Data Access Storage Architecture Client Agent: Replication andRDA ADO CE v3.1 OLEDB / Replication API IIS CLIENTSERVER Storage Engine / Repl Tracking SQL CE Edition v2.0 eVB 3.0 eVC 3.0 OLEDB OLEDB Server Agent: Replication and Remote Data Access HTTP XML/BizTalk/CS 2002 802.11b, CDPD, GSM, CDMA, TDMA, etc. Enterprise Backend Oracle / db2 / etc SQL Server CE Data Provider Native/Unmanaged Stack Data Provider SQL Server Client Data Provider ADO.NET VS.NET (VB.NET, C#).NET CF / Managed Stack TDS Ethernet Well Connected Occasionally Connected

20 Connectivity – Transport Utilize Web technology Utilize Web technology – HTTP communication Internet and Intranet Internet and Intranet – Security via IIS Authentication (anonymous, basic, NTLM) Authentication (anonymous, basic, NTLM) Authorization Authorization Encryption for secure transfer (SSL) Encryption for secure transfer (SSL) – Access through firewalls

21 Connectivity – Merge Replication SQL Server 2000 features crucial for SQL Server CE: SQL Server 2000 features crucial for SQL Server CE: – Vertical and horizontal partitioning – Dynamic horizontal filters – Auto ranged identity columns – Standard/custom conflict resolvers

22 Merge Replication API’s System.Data.SQLServerCe.Engine.CreateDatabase System.Data.SQLServerCe.Engine.CreateDatabase – Replaces AddSubscription Method – Creates blank database System.Data.SQLServerCe.Replication.Synchronize System.Data.SQLServerCe.Replication.Synchronize – Replaces previous methods Initialize Initialize Run Run Terminate Terminate – Initial Sync Creates schema, downloads data, creates constraints Creates schema, downloads data, creates constraints – Subsequent Sync Push modified data up, then bring modified data down Push modified data up, then bring modified data down

23 Connectivity – Remote Data Access Access to SQL Server 7.0 & SQL Server 2000 Access to SQL Server 7.0 & SQL Server 2000 Download to device and disconnect Download to device and disconnect Disconnected tracking capability Disconnected tracking capability Extremely easy to setup and use Extremely easy to setup and use Effective scaling Effective scaling

24 Remote Data Access – API’s System.Data.SQLServerCe.RemoteDataAccess. Pull System.Data.SQLServerCe.RemoteDataAccess. Pull – Brings data from server to device – Data selected via SQL statements – Creates and populates local table – Allows for tracked and untracked data System.Data.SQLServerCe.RemoteDataAccess. Push System.Data.SQLServerCe.RemoteDataAccess. Push – Sends modified data to server System.Data.SQLServerCe.RemoteDataAccess. SubmitSQL System.Data.SQLServerCe.RemoteDataAccess. SubmitSQL – Pass SQL DML statement

25 SDE,.NetCF, ADO.Net, SQL CE

26 Nabisco

27 Nabisco Case Study And Demo 1500 Delivery Trucks 107 Distribution Centers Web Server SQL Server 2000 Failover 802.11b RF IBM DB/2 XML SAP Business Objects Ruggedized PocketPC Device with SQL Server CE

28 Nabisco Deployment Rolled custom CAB file Rolled custom CAB file – Originally used eMVT wizard Load CAB file and database on CF card Load CAB file and database on CF card – Allows for cold boot recovery in field Used version flag in publication Used version flag in publication – If version changes, then it is replicated down to the device – This flags download of new CAB file from IIS server and updates latest version

29 SQL Server CE v2.0 Licensing Included with Smart Device Extension (SDE) Included with Smart Device Extension (SDE) – SQL Server CE and SQL Server CE server side components – Developer and test license Downloadable from HTTP://Microsoft.COM/SQL/CE for use with eMVT Downloadable from HTTP://Microsoft.COM/SQL/CE for use with eMVT HTTP://Microsoft.COM/SQL/CE CAL/CPU license needed for connectivity to SQL Server CAL/CPU license needed for connectivity to SQL Server Free distribution rights upon filling out registration form Free distribution rights upon filling out registration form

30 SQL Server CE v2.0 eMVT Beta of SQL Server CE eMVT Beta of SQL Server CE – Goto http://www.betaplace.com http://www.betaplace.com – BetaID:SQLServerCE – Password:.NetCF – Case sensitive, be sure to include “.” in password Sign up for SDE beta (SQL CE included) Sign up for SDE beta (SQL CE included) – Goto http://www.betaplace.com http://www.betaplace.com – BetaID:SDEBeta – Password:.NetCF – Case sensitive, be sure to include “.” in password

31 SQL Server CE Summary Enables data capture in the field Enables data capture in the field – Small size, robust functionality Enables rapid development Enables rapid development – Utilizes new Visual Studio.NET tools – Existing application with eMVT still run Enable robust connectivity Enable robust connectivity – HTTP, IIS, connect anywhere – RDA, Replication Expand the enterprise Expand the enterprise – Upwardly compatible with SQL Server 2000

32 Questions?

33 Resources from Microsoft Press For more information please visit the TechEd Bookshop. www.microsoft.com/mspress MICROSOFT.NET FRAMEWORK

34 Don’t forget to complete the on-line Session Feedback form on the Attendee Web site https://web.mseventseurope.com/teched/ https://web.mseventseurope.com/teched/

35


Download ppt "DAT413: SQL Server ™ CE: Building Mobile Applications with SQL Server CE and Smart Device Extensions Kevin Collins Senior Program Manager Microsoft Corporation."

Similar presentations


Ads by Google