Detach database

  • Can we rename .ldf file which it's corresponding database is detached?

    Thanks..

  • you would have to offline the database, use alter database modify file, physiacally rename the file, then online the database again.

    so the database won't be detached but you will need exclusive use.

    back it up first.

    ---------------------------------------------------------------------

  • Just curious - why?

    Jason...AKA CirqueDeSQLeil
    _______________________________________________
    I have given a name to my pain...MCM SQL Server, MVP
    SQL RNNR
    Posting Performance Based Questions - Gail Shaw[/url]
    Learn Extended Events

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

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