SqlCeDiffer Tool to create a sql difference script between 2 Sql Ce 4 files (.sdf) How To Use Create a .cmd with the following details in it: cd sqlcediffer.exe -source: -target: -outputPath: If you want you an do this via MSBuild as follows: