请问改变数据库的LOG文件名为什么出现这个错

iemis 2005-04-11 11:08:51
当我用这个时DBCC REBUILD_LOG ('DB1', 'F:\DB1\DB3_Log.LDF' )
出现如下错误
Server: Msg 3624, Level 20, State 1, Line 1

Location: filemgr.cpp:1890
Expression: fcb->GetSize () < fileSize
SPID: 51
Process ID: 972

Connection Broken
但是在F:\DB1下还是会产生一个DB3_Log.LDF'这个文件,不过数据库还是不能使用。
请高手指点指点
...全文
67 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
huazf 2005-04-12
  • 打赏
  • 举报
回复
数据库的sysindexes表坏掉了,你用dbcc checkdb('DB1'),查一下数据库的怀况


专业提供SQL Server 数据库修复服务
Tel:13105710760
Http://sqlfix.xunxin.cn
QQ:386999
HotMail:huazf@hotmail.com
iemis 2005-04-12
  • 打赏
  • 举报
回复
数据库的sysindexes表坏掉了怎么修复,我用在DBCC CHECKDB(‘DB1’)出现如下错误
Server: Msg 8966, Level 16, State 1, Line 1
Could not read and latch page (1:58418) with latch type SH. sysindexes failed.
DBCC execution completed. If DBCC printed error messages, contact your system administrator.
现用这句dbcc checktable ('sysindexes',REPAIR_ALLOW_DATA_LOSS)
就出现如下错误
Server: Msg 3908, Level 16, State 1, Line 1
Could not run BEGIN TRANSACTION in database 'DB1' because the database is in bypass recovery mode.
Server: Msg 8966, Level 16, State 1, Line 1
Could not read and latch page (1:58418) with latch type SH. sysindexes failed.
但只有部分表的内容在紧急模式下可以SELECT,是不是这样这个MDF文件就没法了啊
herman~~ 2005-04-11
  • 打赏
  • 举报
回复
建议先把数据库分离出来再改名

27,579

社区成员

发帖
与我相关
我的任务
社区描述
MS-SQL Server 应用实例
社区管理员
  • 应用实例社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧