是否可以使用备份SQL Server Compact数据库(即* .sdf)并恢复相同的数据库。
Just copy the file. Done.
Quote from Maintaining Databases :
Because SQL Server Compact 3.5 is a file-based database system, you can accomplish many common database tasks such as backing up, restoring, and deleting a database by using the file system APIs.
To back up a database, close all connections to the database, and then copy the .sdf file. To restore a database, copy the .sdf file back to its regular working location. These operations work even if the database is set up for replication. To drop a database, delete the .sdf database file.
我使用LINQ to SQL将紧凑型SQL数据库写入XML文件,并将其读回以恢复它。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.