升级SqlCe2.0数据库文件到3.0版本

准备工作,这里假设已经安装好SqlCe2.0了。
PC端:
首先需要安装好 Microsoft SQL Server 2005 Compact EditionMicrosoft SQL Server 2005 Compact Edition Tools。安装完毕后安装目录里(默认是C:/Program Files/Microsoft Visual Studio 8/SmartDevices/SDK/SQL Server/Mobile/v3.0/%Platform%/%Processer%/)有upgrade.exe文件。
 
Windows Mobile端
安装SqlCe30 Core(sqlce30.%Platform%.%Processer%.CAB),
SqlCe30 Repl(sqlce30.repl.%Platform%.%Processer%.CAB),
SqlCe30 Dev(sqlce30.dev.%Language%.% Platform %.% Processer %.CAB)
将upgrade.exe拷贝到PDA上。
 
好了,现在可以执行升级程序了。同时按住enter键和屏幕右上角的时钟,点击弹出菜单的“运行”。在运行对话框里输入需要执行的命令,点击确性运行。
升级程序的详细命令如下。
UPGRADE [/S] [source path] [/SP] [source password] [/D] [destination path] [/DP] [destination password] [/E] [encrypt destination]
/S The path to the source database file
/SP The password for the source database file (optional)
/D The path to the destination database file. Any existing files will be overwritten
/DP The password for the destination database file (optional)
/E Encrypt the destination database file. A password for the destination database file must also be set
/Q Perform upgrade silently
 
示例:upgrade /S Northwind.sdf /D Northwind30.sdf
这个命令的意思是升级“我的设备”下的Northwind.sdf,输出到“我的设备”的Northwind.sdf
 
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值