I have deleted a ldf files

  • How can I recovery a ldf file (I have only mdf file and I can't restore or undelete ldf file)

  • Use sp_detach_db to detach the mdb file if still attached, then use sp_attach_single_file_db [ @dbname = ] 'dbname'

    , [ @physname = ] 'physical_name' to reattach and it will build a new ldf. See SQL BOL for details.

    "Don't roll your eyes at me. I will tape them in place." (Teacher on Boston Public)

Viewing 2 posts - 1 through 2 (of 2 total)

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