我已连接到SQL Server 2008中的数据库,并在数据库上使用新的查询窗口,我运行
DBCC OPENTRAN它显示了
Replicated Transaction Information:
Oldest distributed LSN : (0:0:0)
Oldest non-distributed LSN : (93627:242:1)
DBCC execution completed. If DBCC printed error messages, contact your system administrator.即使当我关闭查询并在几小时后运行相同的DBCC OPENTRAN命令时,结果也是相同的。
我假设我有一个未提交的事务。我说的对吗?如果是,既然我是这台机器的管理员,我该如何关闭/提交这个事务呢?
日志大小为3-4 4GB,每天增长近200MB或更多。
谢谢。
发布于 2012-09-25 21:04:40
这可以通过以下方法来解决:
Execute SP_ReplicationDbOption Blog2012,Publish,true,1
GO
Execute sp_repldone @xactid = NULL, @xact_segno = NULL, @numtrans = 0, @time = 0, @reset = 1
GO
DBCC ShrinkFile(Blog_Log,0)
GO
Execute SP_ReplicationDbOption Blog2012,Publish,false,1
GO其中,Blog2012是数据库名称,Blog_Log是日志的名称。
https://stackoverflow.com/questions/12542089
复制相似问题