在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\'
在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\'
内容版权声明:除非注明,否则皆为本站原创文章。