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 7698823
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T22:19:56+00:00 2026-05-31T22:19:56+00:00

I have messed up the data. I have been ammended ids and values to

  • 0

I have messed up the data. I have been ammended ids and values to the point where i cannot remember what the originals were. (testing a few things).

I have a table called query_string_interpretation and its part of the DB called, test1_db

I have a backup database which i have restored called, test2_db

How can I restore its contents from one database table to another?

  • 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-31T22:19:57+00:00Added an answer on May 31, 2026 at 10:19 pm

    At first, you need to be sure that you have all your data in source table, or data is placed in both tables – source and destination. In first case you need to truncate the destination table:

    TRUNCATE TABLE test1_db..query_string_interpretation
    

    Second, you need to be sure that you will insert the right values into IDENTITY fields, if these fields exists. Use SET INDENITY_INSERT ON statement.
    Third, you need to insert the values:

    insert into test1_db..query_string_interpretation
    select * from test2_db..query_string_interpretation
    

    And don’t forget to switch the INDENITY_INSERT to OFF, you you switched it to ON in the second step.

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

Sidebar

Related Questions

I'm not entirely sure whats happened here. I may have messed things up somewhere,
I've been working on importing XML into an iPad Core Data application. I have
I have a few controls designed to verify certain data before a user may
So I have been writing to Environment.SpecialFolder.ApplicationData this data file, that upon uninstall needs
Does anyone know why UsernameExists wont return True. I must have my syntax messed
I have not done any large game development projects, only messed around with little
I have an EC2 machine with ubuntu installed. I sort of messed up my
Kindly point out if i have missed something? I have a project with type
Experimented sending secure emails using C# and was wondering if I have understood things
I have been using Titanium for an Android application that does some microblogging through

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.