when attach database will occurs some error like blow:
an exception occured while executing a transact-sql statement or batch,
the log scan number passed to log scan in database 'packone' is not valid.
this error may indicate data corruption or that the log file(.ldf) dose not match the data file(.mdf).  
if this error occured duing replication,re_create the publication.
otherwise,restore from backup if the problem results in a failure during startup.
could not open new database'packone'. create database is aborted.if someone have good iead pls advice !
thank you very much!linda

解决方案 »

  1.   

    用DBCC检查数据库,或者干脆分离后把日志文件移到别处再附加试试.
      

  2.   

    似乎是日志文件不匹配的文件,
    去掉日志文件,直接用mdf附加一下
      

  3.   

    this error may indicate data corruption or that the log file(.ldf) dose not match the data file(.mdf).   
    日志文件与.mdf文件不匹配
      

  4.   

    只用 mdf文件也是可以附加的 删除掉日志文件 会自动生成
      

  5.   

     try to  attach the .mdf file only.