Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7409333
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T06:04:06+00:00 2026-05-29T06:04:06+00:00

I have an issue that, while using sql server 2005 i have executed update

  • 0

I have an issue that, while using sql server 2005 i have executed update query without where clause (by mistake) and all the original values of the column get lost.

How can I get old values??

Any suggestion/tips/solution is welcome and will be highly appreciated.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-29T06:04:08+00:00Added an answer on May 29, 2026 at 6:04 am

    Hi AngelIII,
    SQL server keeps log for every transation.So you can recover your modified data from the log as well without backup.

    Select [PAGE ID],[Slot ID],[AllocUnitId],[Transaction ID] ,[RowLog Contents 0]
    , [RowLog Contents 1],[RowLog Contents 3],[RowLog Contents 4] ,[Log Record]
    FROM    sys.fn_dblog(NULL, NULL)   
    WHERE AllocUnitId IN 
    (Select [Allocation_unit_id] from sys.allocation_units allocunits 
    INNER JOIN sys.partitions partitions ON (allocunits.type IN (1, 3)   
    AND partitions.hobt_id = allocunits.container_id) 
    OR (allocunits.type = 2 AND partitions.partition_id = allocunits.container_id)   
    Where object_id=object_ID('' + 'dbo.student' + '')) 
    AND Operation in ('LOP_MODIFY_ROW','LOP_MODIFY_COLUMNS')  
    And [Context] IN   ('LCX_HEAP','LCX_CLUSTERED') 
    

    Here is the artcile, that explains step by step, how to do it. http://raresql.com/2012/02/01/how-to-recover-modified-records-from-sql-server-part-1/

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Background: today, an issue arose while using SQL Server Reporting Services. It seems that
I have an odd issue while using FlashCS4. I have a textfield that, when
I'm using SQL Server 2005. I have a series of product and pricing tables
I'm having an issue with SQL Server, I have 2005 installed on my desktop
I am using SQL Server 2008 and I have this issue. I have a
While debugging an issue with our system, I have discovered a thread contention that
I have an issue that is driving me a bit nuts: Using a UserProfileManager
I'm using MS Query Analyzer (as part of SQL Server 2000) to write T-SQL
I have a SQL Server database and I'm using ADO.NET ExecuteReader to get a
I'm using a SQL query that is similar to the following form: SELECT col1,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.