Home >Database >Mysql Tutorial >Sql Server 2000删除数据库备份文件

Sql Server 2000删除数据库备份文件

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOriginal
2016-06-07 17:58:55977browse

Sql Server 2000删除数据库备份文件的语句。

代码如下:
/*************************
Sql Server 2000 如何删除数据库备份
**************************/
--可以先备份数据库[TestDB]
BACKUP DATABASE TestDB TO Disk ='E:\数据库备份\TestDB_20090829.bak' WITH INIT;
go
--添加备份数据库的逻辑变量名[testdbbk]
sp_addumpdevice 'disk', 'testdbbk', 'E:\数据库备份\TestDB_20090829.bak';
go
--通过删除备份数据库的逻辑变量名[testdbbk],删除数据库备份文件[E:\数据库备份\TestDB_20090829.bak];
sp_dropdevice 'testdbbk', 'DELFILE';
go
sp_helpdevice;
go
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn