LSN invalid?

  • Hi,hello

    I used the physical file to attach the database:

    sp_attach_db db,path of .mdf,path of .ldf

    The returned message was :

    The LSN (45512:185:1) passed to log scan in database 'db' is invalid.

    What's matter? How it's to solve?

    Thanks in advance

  • This was removed by the editor as SPAM

  • I would try attaching the DB using a single file 

    exec sp_attach_single_file_db 'dbname',

          'pathname\dbname_data.mdf'

    This will create a new log file so you will need to rename your old log file.

  • Here is another thread

    http://qa.sqlservercentral.com/forums/shwmessage.aspx?messageid=105032

    Also, what SP are you running there was a bug with restores and attaching databases that was fixed in I want to say SP3

    Wes

Viewing 4 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic. Login to reply