Sie sind auf Seite 1von 6
DAT413:DAT413: SQLSQL ServerServer ™™ CE:CE: BuildingBuilding MobileMobile ApplicationsApplications WithWith SQLSQL
DAT413:DAT413: SQLSQL ServerServer ™™ CE:CE:
BuildingBuilding MobileMobile
ApplicationsApplications WithWith SQLSQL
ServerServer CECE AndAnd SmartSmart
DeviceDevice ExtensionsExtensions
KevinKevin CollinsCollins
SeniorSenior ProgramProgram ManagerManager
MicrosoftMicrosoft CorporationCorporation
AgendaAgenda SQLSQL ServerServer CECE overviewoverview DeploymentDeployment platformsplatforms SmartSmart DeviceDevice
AgendaAgenda
SQLSQL ServerServer CECE overviewoverview
DeploymentDeployment platformsplatforms
SmartSmart DeviceDevice ExtensionsExtensions (SDE)(SDE)
overviewoverview
SQLSQL ServerServer CECE v2.0v2.0 architecturearchitecture
andand featuresfeatures
DeploymentDeployment andand scalingscaling casecase studystudy
WindowsWindows CECE PlatformsPlatforms H/PCH/PC 2K2K –– (Jornada(Jornada 720,720, IntermecIntermec 6651)6651) NoNo
WindowsWindows CECE PlatformsPlatforms
H/PCH/PC 2K2K –– (Jornada(Jornada 720,720, IntermecIntermec 6651)6651)
NoNo .NET.NET CFCF support,support, NativeNative supportsupport
TypicallyTypically havehave keyboardkeyboard
ManyMany havehave 32mb32mb ROM/RAMROM/RAM
PCPC Card/USBCard/USB
PocketPC/PocketPCPocketPC/PocketPC 20022002 ––
(Intermec(Intermec 700,700, CompaqCompaq iPaqiPaq))
NoNo keyboardkeyboard
.NET.NET CFCF SupportSupport andand NativeNative supportsupport
ManyMany havehave 64MB64MB RAM/ROM,RAM/ROM, USB,USB, andand CFCF supportsupport
EmbeddedEmbedded –– (Intermec(Intermec 5020)5020)
VaryingVarying CPU/RAM/ROMCPU/RAM/ROM
PBPB 3.03.0 NativeNative supportsupport
PBPB 4.04.0 .NET.NET CFCF supportsupport

PDC 2001 October 22-26, 2001

.NET.NET CFCF supportsupport PDC 2001 October 22-26, 2001 SQLSQL ServerServer CECE OverviewOverview KeyKey
SQLSQL ServerServer CECE OverviewOverview KeyKey scenariosscenarios DisconnectedDisconnected databasedatabase
SQLSQL ServerServer CECE OverviewOverview
KeyKey scenariosscenarios
DisconnectedDisconnected databasedatabase
Internet/intranetInternet/intranet connectivity/connectivity/
synchronizationsynchronization
DifferentDifferent fromfrom MobileMobile WebWeb Forms/MMIT,Forms/MMIT,
ADO.NETADO.NET DataData Set,Set, andand MSMQMSMQ CECE
ManagedManaged andand ununmanagedmanaged supportsupport
CustomerCustomer scenariosscenarios
Medical,Medical, military,military, DSD,DSD, FSA,FSA, SFA,SFA,
realreal estateestate
.NET.NET CFCF DevelopmentDevelopment SequenceSequence DeploymentDeployment OptionsOptions SourceSource CodeCode
.NET.NET CFCF DevelopmentDevelopment SequenceSequence
DeploymentDeployment OptionsOptions
SourceSource CodeCode
(Hello.*)(Hello.*)
VisualVisual StudioStudio .NET.NET
WindowsWindows CECE
Win32Win32
DeviceDevice
EmulatorEmulator
CompliersCompliers
Hello.exeHello.exe
Hello.exeHello.exe
Hello.exeHello.exe
.NET.NET CompactCompact
.NET.NET CompactCompact
.NET.NET CompactCompact
.NET.NET CompactCompact
FrameworkFramework
FrameworkFramework
FrameworkFramework
FrameworkFramework
ClassClass LibsLibs
ClassClass LibsLibs
ClassClass LibsLibs
ClassClass LibsLibs
.NET.NET CompactCompact
.NET.NET CompactCompact
.NET.NET CompactCompact
FrameworkFramework
FrameworkFramework
FrameworkFramework
CLRCLR
CLRCLR
CLRCLR
.NET.NET CFCF ClassClass LibrariesLibraries System.WebSystem.Web System.WinFormsSystem.WinForms ServicesServices UIUI
.NET.NET CFCF ClassClass LibrariesLibraries
System.WebSystem.Web
System.WinFormsSystem.WinForms
ServicesServices
UIUI
DesignDesign
ComponentModelComponentModel
DescriptionDescription
HtmlControlsHtmlControls
DiscoveryDiscovery
WebControlsWebControls
ProtocolsProtocols
System.DrawingSystem.Drawing
CachingCaching
SecuritySecurity
Drawing2DDrawing2D
PrintingPrinting
ConfigurationConfiguration
SessionStateSessionState
ImagingImaging
TextText
System.DataSystem.Data
System.XmlSystem.Xml
ADO.NETADO.NET
SqlClientSqlClient
XmlDocumentXmlDocument
SerializationSerialization
DesignDesign
SqlServerCeSqlServerCe
Xslt/XPathXslt/XPath
Reader/WritersReader/Writers
SystemSystem
CollectionsCollections
IOIO
ConfigurationConfiguration
RuntimeRuntime
InteropServicesInteropServices
SecuritySecurity
NetNet
ServiceProcessServiceProcess
RemotingRemoting
TextText
ReflectionReflection
DiagnosticsDiagnostics
SerializationSerialization
GlobalizationGlobalization
ResourcesResources
ThreadingThreading
SQLSQL ServerServer CECE v2.0v2.0 PlatformPlatform SupportSupport ToolTool SetSet DataData AccessAccess
SQLSQL ServerServer CECE v2.0v2.0
PlatformPlatform SupportSupport
ToolTool SetSet
DataData AccessAccess
PlatformPlatform
eMVTeMVT
ADOCEADOCE // OLEDBCEOLEDBCE
HPCHPC 2K2K
eMVTeMVT
ADOCEADOCE // OLEDBCEOLEDBCE
PocketPCPocketPC
eMVTeMVT
ADOCEADOCE // OLEDBCEOLEDBCE
PBPB 3.03.0
VS.NETVS.NET // .NET.NET CFCF
ADO.NETADO.NET
PocketPCPocketPC 20022002
VS.NETVS.NET // .NET.NET CFCF
ADO.NETADO.NET
PocketPCPocketPC
VS.NETVS.NET // .NET.NET CFCF
ADO.NETADO.NET
PBPB 4.14.1 (Jameson)(Jameson)
eMVTeMVT
ADOCEADOCE // OLEDBCEOLEDBCE
PocketPCPocketPC 20022002
DatabaseDatabase FeatureFeature SetSet RichRich functionalityfunctionality forfor smallsmall footprintfootprint
DatabaseDatabase FeatureFeature SetSet
RichRich functionalityfunctionality forfor smallsmall footprintfootprint
MultiMulti--columncolumn indexesindexes
ReferentialReferential integrityintegrity
SubSub--selectsselects (IN)(IN)
DefaultsDefaults
Inner/outerInner/outer joinsjoins
OneOne filefile databasedatabase
NullNull supportsupport
UnicodeUnicode supportsupport
TransactionsTransactions
DataData--typestypes
Real,Real, Numeric,Numeric, NVarCharNVarChar,,
NTextNText,, Image,Image, Integer,Integer,
DateTimeDateTime,, VarBinaryVarBinary,,
UniqueIdentifierUniqueIdentifier,, MoneyMoney
Having/groupHaving/group byby
SeekSeek onon indexindex
SetSet functionsfunctions
IdentityIdentity attributeattribute
LocalLocal securitysecurity -- DBDB
encryptionencryption (128(128--bit)bit) andand
databasedatabase passwordpassword

PDC 2001 October 22-26, 2001

SQLSQL ServerServer CECE v2.0v2.0 DeviceDevice DataData AccessAccess SDE/ManagedSDE/Managed StackStack
SQLSQL ServerServer CECE v2.0v2.0 DeviceDevice
DataData AccessAccess
SDE/ManagedSDE/Managed StackStack
Native/UnmanagedNative/Unmanaged StackStack
VSVS .NET.NET (VB.NET,(VB.NET, C#)C#)
ADO.NETADO.NET
eVBeVB 3.03.0
eVCeVC
SQLSQL ServerServer CECE 2.02.0 DataData
ADOADO
3.03.0 ProviderProvider
CECE v3.1v3.1
CLRCLR // .NET.NET CFCF
OLEDBOLEDB CECE
SQLSQL ServerServer CECE v2.0v2.0
OLEDBOLEDB
QP/CursorQP/Cursor Engine/ESEngine/ES
OLEDBOLEDB
StorageStorage EngineEngine // ReplRepl TrackingTracking
SQLSQL ServerServer 20002000 WindowsWindows ®® CECE EditionEdition v2.0v2.0 UpwardUpward compatibilitycompatibility
SQLSQL ServerServer 20002000
WindowsWindows ®® CECE EditionEdition v2.0v2.0
UpwardUpward compatibilitycompatibility withwith SQLSQL ServerServer
SameSame resultresult setssets
CompatibleCompatible datadata typestypes
RightRight footprintfootprint sizesize forfor devicesdevices
~800kb~800kb forfor X86X86 CPUCPU
OSOS supportsupport
WindowsWindows CECE 3.03.0 forwardforward
PocketPC,PocketPC, PocketPCPocketPC 2002,2002, HPCHPC 2K,2K, PBPB 3.0,3.0, PBPB 4.04.0
WindowsWindows CECE 2.112.11 supportsupport droppeddropped
PPC,PPC, HPCHPC
NewNew V2.0V2.0 FeaturesFeatures IntrinsicIntrinsic functionsfunctions ABSABS FLOORFLOOR TANTAN RTRIMRTRIM
NewNew V2.0V2.0 FeaturesFeatures
IntrinsicIntrinsic functionsfunctions
ABSABS
FLOORFLOOR
TANTAN
RTRIMRTRIM
SPACESPACE
ACOSACOS
LOGLOG
UNICODEUNICODE
ASINASIN
LOG10LOG10
CHARCHAR
STRSTR
ATANATAN
PIPI
CHARINDEXCHARINDEX
STUFFSTUFF
ATN2ATN2
LENLEN
SUBSTRINGSUBSTRING
POWERPOWER
CEILINGCEILING
RADIANSRADIANS
LOWERLOWER
UPPERUPPER
LTRIMLTRIM
CASECASE
COSCOS
RANDRAND
PATINDEXPATINDEX
COALESCECOALESCE
COTCOT
ROUNDROUND
REPLACEREPLACE
CONVERTCONVERT
DEGREESDEGREES
SIGNSIGN
REPLICATEREPLICATE
DATALENGTHDATALENGTH
EXPEXP
SQRTSQRT
NEWIDNEWID
@IDENTITY@IDENTITY
NewNew V2.0V2.0 FeaturesFeatures UnionUnion SELECTSELECT ** FROMFROM AA UNIONUNION SELECTSELECT ** FROMFROM BB
NewNew V2.0V2.0 FeaturesFeatures
UnionUnion
SELECTSELECT ** FROMFROM AA UNIONUNION SELECTSELECT ** FROMFROM BB
ParameterizedParameterized QueriesQueries
INSERTINSERT INTOINTO mytablemytable (col1,(col1, col2)col2) VALUESVALUES (?,(?, ?);?);
IndexIndex PullPull
BringsBrings indexesindexes downdown withwith RDARDA PullPull
ConnectivityConnectivity SetupSetup WizardsWizards
EaseEase installationinstallation ofof SQLSQL CECE ServerServer componentscomponents
OptionalOptional ErrorError StringsStrings
ExtraExtra DLLDLL toto provideprovide errorerror stringsstrings inin applicationapplication
IncreasedIncreased indexindex limitlimit perper tabletable
demodemo ISQLWISQLW CE,CE, NewNew SQLSQL
demodemo
ISQLWISQLW CE,CE, NewNew SQLSQL
SQLSQL ServerServer CECE ErrorError HandlingHandling UtilizesUtilizes try/catchtry/catch
SQLSQL ServerServer CECE
ErrorError HandlingHandling
UtilizesUtilizes try/catchtry/catch
System.Data.SqlServerCe.SqlCeExceptionSystem.Data.SqlServerCe.SqlCeException

PDC 2001 October 22-26, 2001

NewNew V2.0V2.0 FeaturesFeatures SQLSQL ServerServer ClientClient DataData ProviderProvider DirectDirect accessaccess
NewNew V2.0V2.0 FeaturesFeatures
SQLSQL ServerServer ClientClient DataData ProviderProvider
DirectDirect accessaccess toto SQLSQL ServerServer
EnhancedEnhanced ISQLWISQLW
SQLSQL ServerServer CECE V2.0V2.0 .NET.NET IntegrationIntegration ADOADO .NET.NET
SQLSQL ServerServer CECE V2.0V2.0 .NET.NET
IntegrationIntegration
ADOADO .NET.NET
System.Data.SqlClientSystem.Data.SqlClient
DirectDirect connectionconnection toto SQLSQL ServerServer
RichRich interactioninteraction withwith thethe serverserver
FullFull TSQLTSQL
StoredStored ProceduresProcedures
System.Data.SqlServerCESystem.Data.SqlServerCE
LocalLocal datadata providerprovider
RichRich datadata accessaccess whilewhile offlineoffline
ExposesExposes fullfull functionalityfunctionality ofof SQLSQL ServerServer CECE
CECE DataData AccessAccess StorageStorage ArchitectureArchitecture EnterpriseEnterprise BackendBackend
CECE DataData AccessAccess
StorageStorage ArchitectureArchitecture
EnterpriseEnterprise BackendBackend
Oracle/db2/etc.Oracle/db2/etc.
NETNET
CFCF // ManagedManaged StackStack
XML/BizTalk/CSXML/BizTalk/CS 20022002
Native/UnmanagedNative/Unmanaged StackStack
eVBeVB
VSVS .NET.NET (VB.NET,(VB.NET, C#)C#)
ADO.NETADO.NET
EthernetEthernet
3.03.0
SQLSQL ServerServer
SQLSQL ServerServer
eVCeVC
TDSTDS
ClientClient DataData
CECE DataData
ADOADO
3.03.0
ProviderProvider
ProviderProvider
CECE
WellWell
CLRCLR // .NET.NET CFCF
ConnectedConnected
v3.1v3.1
OLEDBOLEDB CECE
OLEDBOLEDB //
802.11b,802.11b,
ReplicationReplication APIAPI
SQLSQL CECE EditionEdition v2.0v2.0
CDPD,CDPD,
DataData ProviderProvider
GSM,GSM,
OLEDBOLEDB
ServerServer
CDMA,CDMA,
ClientClient
Agent:Agent:
TDMA,TDMA, etc.etc.
Agent:Agent:
ReplicationReplication
QP/CursorQP/Cursor Engine/ESEngine/ES
ReplicationReplication
IISIIS
andand
andand
RemoteRemote
OLEDBOLEDB
HTTPHTTP
RDARDA
DataData
AccessAccess
StorageStorage EngineEngine // ReplRepl
TrackingTracking
OccasionallyOccasionally
ConnectedConnected
CLIENTCLIENT
SERVERSERVER
ConnectivityConnectivity TransportTransport UtilizeUtilize WebWeb technologytechnology HTTPHTTP
ConnectivityConnectivity
TransportTransport
UtilizeUtilize WebWeb technologytechnology
HTTPHTTP communicationcommunication
InternetInternet andand IntranetIntranet
SecuritySecurity viavia InternetInternet InformationInformation ServerServer (IIS)(IIS)
AuthenticationAuthentication (anonymous,(anonymous, basic,basic, NTLM)NTLM)
AuthorizationAuthorization
EncryptionEncryption forfor securesecure transfertransfer (SSL)(SSL)
AccessAccess throughthrough firewallsfirewalls
MergeMerge ReplicationReplication APIsAPIs
MergeMerge ReplicationReplication APIsAPIs
System.Data.SQLServerCe.Engine.CreateDatabaseSystem.Data.SQLServerCe.Engine.CreateDatabase
ReplacesReplaces AddSubscriptionAddSubscription MethodMethod
CreatesCreates blankblank databasedatabase
System.Data.SQLServerCe.Replication.SynchronizeSystem.Data.SQLServerCe.Replication.Synchronize
ReplacesReplaces previousprevious methodsmethods
InitializeInitialize
RunRun
TerminateTerminate
InitialInitial SyncSync
CreatesCreates schema,schema, downloadsdownloads data,data, createscreates constraintsconstraints
SubsequentSubsequent SyncSync
PushPush modifiedmodified datadata up,up, thenthen bringbring modifiedmodified datadata downdown
RemoteRemote DataData AccessAccess APIsAPIs
RemoteRemote DataData AccessAccess
APIsAPIs
System.Data.SQLServerCe.RemoteDataAccess.PullSystem.Data.SQLServerCe.RemoteDataAccess.Pull
BringsBrings datadata fromfrom serverserver toto devicedevice
DataData selectedselected viavia SQLSQL statementsstatements
CreatesCreates andand populatespopulates locallocal tabletable
AllowsAllows forfor trackedtracked andand untrackeduntracked datadata
System.Data.SQLServerCe.RemoteDataAccess.PushSystem.Data.SQLServerCe.RemoteDataAccess.Push
SendsSends modifiedmodified datadata toto serverserver
System.Data.SQLServerCe.RemoteDataAccessSystem.Data.SQLServerCe.RemoteDataAccess
SubmitSQLSubmitSQL
PassPass SQLSQL DMLDML statementstatement

PDC 2001 October 22-26, 2001

ConnectivityConnectivity MergeMerge replicationreplication SQLSQL ServerServer 20002000 featuresfeatures crucialcrucial
ConnectivityConnectivity
MergeMerge replicationreplication
SQLSQL ServerServer 20002000 featuresfeatures crucialcrucial forfor
SQLSQL ServerServer CECE
VerticalVertical andand horizontalhorizontal partitioningpartitioning
DynamicDynamic horizontalhorizontal filtersfilters
AutoAuto rangedranged identityidentity columnscolumns
Standard/customStandard/custom conflictconflict resolversresolvers
ConnectivityConnectivity RemoteRemote datadata accessaccess AccessAccess toto SQLSQL ServerServer 6.56.5 sp5+sp5+
ConnectivityConnectivity
RemoteRemote datadata accessaccess
AccessAccess toto SQLSQL ServerServer 6.56.5 sp5+sp5+
DownloadDownload toto devicedevice andand disconnectdisconnect
DisconnectedDisconnected trackingtracking capabilitycapability
ExtremelyExtremely easyeasy toto setupsetup andand useuse
EffectiveEffective scalingscaling
demodemo SQLSQL ServerServer CECE ConnectivityConnectivity
demodemo
SQLSQL ServerServer CECE
ConnectivityConnectivity
demodemo SQLSQL ServerServer CECE DataData ProviderProvider ConnectivityConnectivity
demodemo
SQLSQL ServerServer CECE DataData
ProviderProvider ConnectivityConnectivity
demodemo NabiscoNabisco
demodemo
NabiscoNabisco
SQLSQL ServerServer CECE v2.0v2.0 LicensingLicensing IncludedIncluded withwith SmartSmart DeviceDevice ExtensionExtension
SQLSQL ServerServer CECE v2.0v2.0 LicensingLicensing
IncludedIncluded withwith SmartSmart DeviceDevice ExtensionExtension (SDE)(SDE)
SQLSQL ServerServer CECE andand SQLSQL ServerServer CECE serverserver sideside componentscomponents
DeveloperDeveloper andand testtest licenselicense
NeedNeed SQLSQL ServerServer DeveloperDeveloper EditionEdition withwith VisualVisual StudioStudio ®® .NET.NET
StandardStandard andand ProPro
SQLSQL ServerServer 20002000 DeveloperDeveloper EditionEdition
$499$499 U.S.D.U.S.D.
WebWeb downloaddownload SQLSQL ServerServer CECE
OneOne developerdeveloper licenselicense
AllowsAllows forfor distributiondistribution ofof SQLSQL ServerServer CECE
AllowsAllows forfor testingtesting endend toto endend connectivityconnectivity
CAL/CPUCAL/CPU licenselicense neededneeded forfor connectivityconnectivity toto
SQLSQL ServerServer

PDC 2001 October 22-26, 2001

NabiscoNabisco CaseCase StudyStudy AndAnd DemoDemo IBMIBM DB/2DB/2 802.11b802.11b RFRF SAPSAP BusinessBusiness
NabiscoNabisco CaseCase StudyStudy AndAnd
DemoDemo
IBMIBM DB/2DB/2
802.11b802.11b RFRF
SAPSAP BusinessBusiness ObjectsObjects
RuggedizedRuggedized
PocketPCPocketPC DeviceDevice
withwith SQLSQL ServerServer CECE
107107 DistributionDistribution
XMLXML
CentersCenters
WebWeb ServerServer
15001500 DeliveryDelivery
SQLSQL ServerServer 20002000
FailoverFailover
TrucksTrucks
NabiscoNabisco DeploymentDeployment RolledRolled customcustom CABCAB filefile OriginallyOriginally usedused eMVTeMVT
NabiscoNabisco DeploymentDeployment
RolledRolled customcustom CABCAB filefile
OriginallyOriginally usedused eMVTeMVT wizardwizard
LoadLoad CABCAB filefile andand databasedatabase onon CFCF cardcard
AllowsAllows forfor coldcold bootboot recoveryrecovery inin fieldfield
UsedUsed versionversion flagflag inin publicationpublication
IfIf versionversion changes,changes, thenthen itit isis replicatedreplicated
downdown toto thethe devicedevice
ThisThis flagsflags downloaddownload ofof newnew CABCAB filefile fromfrom
IISIIS serverserver andand updatesupdates latestlatest versionversion
SQLSQL ServerServer CECE SummarySummary EnablesEnables datadata capturecapture inin thethe fieldfield SmallSmall
SQLSQL ServerServer CECE SummarySummary
EnablesEnables datadata capturecapture inin thethe fieldfield
SmallSmall size,size, robustrobust functionalityfunctionality
EnablesEnables rapidrapid developmentdevelopment
UtilizesUtilizes newnew VisualVisual StudioStudio .NET.NET toolstools
ExistingExisting applicationapplication withwith eMVTeMVT stillstill runrun
EnableEnable robustrobust connectivityconnectivity
HTTP,HTTP, IIS,IIS, connectconnect anywhereanywhere
RDA,RDA, ReplicationReplication
ExpandExpand thethe enterpriseenterprise
UpwardlyUpwardly compatiblecompatible withwith SQLSQL ServerServer 20002000
DiscussionDiscussion
DiscussionDiscussion
©© 20012001 MicrosoftMicrosoft Corporation.Corporation. AllAll rightsrights reserved.reserved.
©© 20012001 MicrosoftMicrosoft Corporation.Corporation. AllAll rightsrights reserved.reserved.

PDC 2001 October 22-26, 2001

NextNext StepsSteps SQLSQL ServerServer CECE GetGet thethe VisualVisual StudioStudio .NET.NET SmartSmart DeviceDevice
NextNext StepsSteps
SQLSQL ServerServer CECE
GetGet thethe VisualVisual StudioStudio .NET.NET SmartSmart DeviceDevice
ExtensionsExtensions BetaBeta
JoinJoin thethe BetaBeta ProgramProgram ((sscebeta@microsoft.comsscebeta@microsoft.com))
NotificationNotification ServicesServices
JoinJoin thethe BetaBeta ProgramProgram
WebWeb ServicesServices ToolkitToolkit
PickPick oneone upup fromfrom thethe SQLSQL ServerServer boothbooth
DownloadDownload fromfrom
http://www.microsoft.com/http://www.microsoft.com/sql/techinfo/xmlsql/techinfo/xml