备份没有全文目录的SQL Server 2008数据库

时间:2010-12-25 21:10:40

标签: sql-server sql-server-2008 back

我试图在没有FULL Text Catalog的情况下备份SQL Server 2008数据库。我试图在备份之前删除全文目录和索引,如下所示:

DROP FULLTEXT INDEX ON table1
DROP FULLTEXT INDEX ON table2
DROP FULLTEXT INDEX ON table3


DROP FULLTEXT CATALOG DBFullTextCatalog
EXEC sp_fulltext_database 'disable'

它表示所有命令都已成功执行,但是,当我进行备份时,我仍然可以在备份中获取完整的文本文件:

SET @BackupPath = @BackupPath + N'DB_17965_1_backup.bak'
BACKUP DATABASE [DB_17965_1]
TO  DISK = @BackupPath
WITH NOFORMAT, INIT,  NAME = N'DB_17965_1-Full Database Backup', SKIP, NOREWIND, NOUNLOAD,  STATS = 10

结果

10 percent processed.
20 percent processed.
30 percent processed.
40 percent processed.
50 percent processed.
60 percent processed.
70 percent processed.
80 percent processed.
90 percent processed.
Processed 832 pages for database 'DB_17965_1', file 'CelebrityGet' on file 1.
Processed 8 pages for database 'DB_17965_1', file 'ftrow_CelebritygetFullTextCatalog' on file 1.
100 percent processed.
Processed 1 pages for database 'DB_17965_1', file 'CelebrityGet_log' on file 1.
BACKUP DATABASE successfully processed 841 pages in 0.431 seconds (15.244 MB/sec).

1 个答案:

答案 0 :(得分:0)

我做到了。在进行备份之前,我必须从数据库属性窗口手动删除全文文件。 DROP语句从未删除过文件。那很奇怪!!