Introduce SQL Server Compact Note
来源:互联网 发布:bandcamp 知乎 编辑:程序博客网 时间:2024/05/16 17:45
Embeded Engine base on set of dlls
-not need other installation required except framework
-not run as a service
-In-proc
What it is?
-very smallembeded(~1MB), in-proc database
-nice subset of SQL Server types
-Does not have: store proce, views, Xquery
Where it's deployed?
-moblie,embeded devices
-etc...
Scenarios
-localonline/offline cache
-local,stand alone application database
Code in SQL Server Compact Edition
-Add Reference:
-System.Data.SqlServerCe
-ConnectionString
-DataSource:|Data Directory|dbname.sdf
-EncryptionMode
-Maxdatabase Size: 128(MB) default
-Mode:R/W (read/write)
Deploy SQL Server Compact Edition
-Traditional Windows Installer
-To use Windows Installer technology for ClickOnce deployment of an application that contains a SQL Server Compact 3.5 database
-notifies the installer to check whether the SQL Server Compact 3.5 runtime existsand to install it from the Internet if it is not found.
-Private File–Based Deployment
-Does not require to install SQL Server Compact 3.5, http://msdn.microsoft.com/en-us/library/aa983326(v=vs.90).aspx
-Change"System.Data.SqlServer.dll" reference to Copy Local
-Copy"sqlce*.dll" from installation directory and set Copy Local to true
Create Database and Populate Schema
-normally not deploy *.sdf file to project
-1)createdatabase
e.g.:
UsinglocalConnection As New SqlCeConnection(My.Setting.LocalConnectionString)
IfNot System.IO.File.Exists(localConnection.Database) Then
UsingsqlCeEngine As New SqlCeEngine(connectionString)
slCeEngine.CreateDatabase()
EndUsing
EndIf
EndUsing
-2)executecommand base on "SqlCeCommand"
e.g.:
cmd.CommandText="..."
cmd.ExecuteNonQuery()
Sync Services for SQL Server Compact Edition 3.5 in Visual Studio 2008
-http://keithelder.net/2007/09/23/sync-services-for-sql-server-compact-edition-3-5-in-visual/
- Introduce SQL Server Compact Note
- SQL Server Compact
- sql server compact
- CREATE TABLE (SQL Server Compact)
- Microsoft SQL Server Compact 4.0
- 安装 SQL Server Compact Edition
- Introduce to SQL Server 2005 Family
- Introduce for the SQL Server Report Builder
- 应用SQL Server 2005 Compact Edition
- SQL Server Compact Edition 程序建立步骤
- 应用SQL Server 2005 Compact Edition
- Information Schema of SQL Server Compact 3.5
- 一步一步实现SQL Server Compact的RDA
- SQL Server Compact Edition创建移动应用程序
- SQL Server Compact 3.5 SP2已经发布
- Microsoft SQL Server Compact 3.5开发笔记
- CAST 和 CONVERT (SQL Server Compact)
- Sql Server Compact 4.0部署注意事项
- 自动登录SAP 系统 log in SAP without inputing password repeatly
- 论坛收集-
- Android MediaPlayer
- Oracle导出表(即DMP文件)的两种方法
- 获取系统名字及相关信息的函数
- Introduce SQL Server Compact Note
- JAVA里怎样对指定目录的文件按文件名排序
- window 多线程机制
- arm9-裸机中断过程分析(2012-02-07 11:12)
- 天上不会掉馅饼,掉苹果也不可能
- 第一个基于GPU CUDA的程序--向量相加的并行处理
- Pipe:比QQ更加环保的文件传输应用(视频演示)
- 控件(八)——Wizard控件完成注册过程详解
- CentOS 命令大全