sp_add_log_file_recover_suspect_db [ @dbName = ]????

Posted on 2011-10-07
Last Modified: 2012-05-12
I lost a transaction log because of hardware failure. I've taken an affected DB offline and cannot bring it online. My research points me to the tsql in the title but I'm struggling on how to use it. Can someone post an example.


Is there another way to create a new ldf for an offline DB?

Question by:mwmiller78
    LVL 75

    Accepted Solution

    Your Transaction Log backup is an integral part of your database, so your best bet is to restore from a backup.

    Author Comment

    Oh ok. Thanks!

    Featured Post

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    Join & Write a Comment

    Introduction In my previous article ( I showed you how the XML Source component can be used to load XML files into a SQL Server database, us…
    In this article I will describe the Detach & Attach method as one possible migration process and I will add the extra tasks needed for an upgrade when and where is applied so it will cover all.
    Via a live example combined with referencing Books Online, show some of the information that can be extracted from the Catalog Views in SQL Server.
    Using examples as well as descriptions, and references to Books Online, show the different Recovery Models available in SQL Server and explain, as well as show how full, differential and transaction log backups are performed

    754 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    15 Experts available now in Live!

    Get 1:1 Help Now