Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. Database & SysAdmin
  3. Database
  4. restore data

restore data

Scheduled Pinned Locked Moved Database
questiondatabasesql-serversysadminhelp
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    Akhteruzzaman
    wrote on last edited by
    #1

    Hi: How can I restore data from the transaction log file in SQL Server 2005? Please help..

    A 1 Reply Last reply
    0
    • A Akhteruzzaman

      Hi: How can I restore data from the transaction log file in SQL Server 2005? Please help..

      A Offline
      A Offline
      Andy_L_J
      wrote on last edited by
      #2

      Asuuming your backup is something like this, and you have the Database Recovery Method set to FULL::

      BACKUP DATABASE TestDB
      TO DISK = 'e:\backups\TestDB.bak',
      WITH
      FORMAT,
      MEDIANAME = 'TestDB_MediaSet1'

      BACKUP LOG TestDB
      TO DISK = 'e:\backups\TestDB_log.bak'
      WITH
      FORMAT,
      MEDIANAME = 'TestDB_MediaSet1'

      You can restore with something like:

      USE master
      GO

      RESTORE DATABASE TestDB
      FROM DISK = 'e:\backups\TestDB.bak'

      **WITH REPLACE**
      

      Check these links: Backups[^] Transaction Log Backups[^] Full Database Restore[^]

      I don't speak Idiot - please talk slowly and clearly 'This space for rent' Driven to the arms of Heineken by the wife

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups