Results 1 to 4 of 4

Thread: SQL2005 Log File Issue..

  1. #1
    Join Date
    Mar 2003
    Posts
    383

    SQL2005 Log File Issue..

    All DBs on SQL2005 C:\ drive are ok, all DBs on another drive X: are in suspect mode and could not access them.

    Finally, buy using detach and attach, I am able to recover one important DB. However, the attach method via Management Studio only provide the xxxx.mdf but not available the xxxx.ldf.

    The data is recovered, but I need the log to be ready to A/D/C.
    thanks
    -D

  2. #2
    Join Date
    Mar 2003
    Posts
    383
    One more thing:

    sp_helpdb DBxyz
    displayed the DBxyz_log
    field:2
    fileName: G:\data\dbxyz_log.ldf
    fileGroup: Null
    size: 20480 kb

    My understanding is fileGroup: Null is the same as no log?
    And if it is correct, how to change the fileGroup: Null to Primary?

    thanks
    -D

  3. #3
    Join Date
    Sep 2002
    Posts
    5,938
    Log file doesn't belong to any file group, that's why you get null. Can sql see g:\ drive?

  4. #4
    Join Date
    Jul 2006
    Posts
    11
    u can remove the log file from the attach database dialog and sql server will create another on for u this will work if you need data in the mdf file.
    may be it will work.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •