Re: deletion mistake

From: Hari Prasad (hari_prasad_k_at_hotmail.com)
Date: 11/13/04

  • Next message: Stefan Berglund: "Re: should i enable protocol enconding?"
    Date: Fri, 12 Nov 2004 21:45:02 -0600
    
    

    Hi,

    Use POINT_IN_TIME restore strategy to recover the tables.

    POINT_IN_TIME restore will work only if your Recovery mode is FULL for that
    database. If it is FULL then:-

    1. Take a backup transaction log in current database
    2. Create a new database
    3. Restore with full backup file with NORECOVERY (Use below command)

       RESTORE database new_dbname from disk='file' with NORECOVERY,
       MOve 'logical_mdf' to 'physical_mdf',
       MOve 'logical_ldf' to 'physical_ldf'

    4. Restore the transaction log backup taken in step-1 with RECOVERY and
    STOPAT option

       RESTORE log new_dbname from disk='tran_backup_file' with RECOVERY, STOPAT
    = ''May 24, 2004 03:44 AM'

    -- 
    Thanks
    Hari
    SQL Server MVP
    "Manlio" <Manlio@discussions.microsoft.com> wrote in message 
    news:598DABF2-5B83-4679-95A7-D86882BFD2F9@microsoft.com...
    > Hello i deleted by mistake 2 tables of my SQL Server database. Is there a 
    > way
    > to recover them?
    >
    > Thanks
    >
    > Manlio 
    

  • Next message: Stefan Berglund: "Re: should i enable protocol enconding?"

    Relevant Pages

    • Backup and Restore Files
      ... What is the best way to backup and restore a runtime database file? ... pszDisplayName As String ...
      (microsoft.public.access.gettingstarted)
    • RE: How do I restore from mdf and ldf files?
      ... Tasks -> Backup Database ... Tasks -> Restore Database ... Windows 2003 Server with Latest Service Pack ... Pre-requisites for Sharepoint Backup and Restore: ...
      (microsoft.public.sharepoint.portalserver)
    • Re: Restoring SQL Server Backups
      ... ORIGINAL BACKUP & RESTORE (MSDE Database) ... occurrenceof cachestore flush for the 'Object Plans' cachestore (part ...
      (microsoft.public.sqlserver.server)
    • Re: RMAN help
      ... Database mounted. ... RMAN> recover database; ... allocated channel: ORA_DISK_1 ... Starting restore at 11-MAY-06 ...
      (comp.databases.oracle.server)
    • Re: Restoring SQL Server Backups
      ... ORIGINAL BACKUP & RESTORE (MSDE Database) ... occurrenceof cachestore flush for the 'Object Plans' cachestore (part ...
      (microsoft.public.sqlserver.server)