在SQL2005数据库中利用SQL语句进行数据备份与还原:
备份backup:backup database 数据库名称 tO disk = 备份路径
例:BACKUP DATABASE test TO disk = ‘d:\bak\test.bak‘
恢复restore:
restore database 数据库名称from disk = 备份路径
例:RESTORE DATABASE test FROM disk = ‘d:\bak\test.bak‘
时间: 2024-10-21 06:14:16