Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
有人能告诉我如何用密码保护现有的 SQL Server CE 4 文件吗?
在 SqlCeEngine.Compact 方法中,指定密码。或者,您可以从命令行使用 SqlCeCmd:
sqlcecmd40 -d "Data Source=C:\test.sdf;" -z "Data Source=;Password=secret"