开发者

Upgrade SQL CE 2.0 database to SQL CE 3.5 database

开发者 https://www.devze.com 2022-12-25 07:33 出处:网络
Has anybody performed the upgrade? If yes, how is it done. I remember tinkering with running a program on command line on the PDA and that it did not work as 开发者_如何转开发expected.

Has anybody performed the upgrade?

If yes, how is it done. I remember tinkering with running a program on command line on the PDA and that it did not work as 开发者_如何转开发expected.

Has running the command line program on the PDA worked for anyone?


Sorry for posting the question. We were able to upgrade the project using the method below. We had to copy the upgrade.exe to the PDA tough.

System.Diagnostics.Process p = System.Diagnostics.Process.Start(
@"\Program Files\client\upgrade.exe"
, @"/s ""\Program Files\client\database.sdf"" /sp ""password"" /d ""\Program Files\client\convertedDB.sdf"" /dp ""password"" /e /q");

Hopefully someone finds this helpful.


If you're doing this programmatically, why hack using the Upgrade utility? Why not just use the Upgrade method present in the SqlCeEngine class?

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号