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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T17:45:36+00:00 2026-05-25T17:45:36+00:00

Our database is poorly designed all the way around (we inherited it). I’ve reworked

  • 0

Our database is poorly designed all the way around (we inherited it). I’ve reworked the schema to something useable and maintainable. Quite a few tables and columns have been dropped, many columns have moved and most tables and columns have been renamed. Some datatypes have been changed also.

I’ve extracted all the queries from our webapps and we’ve started rewriting them. Our DBA is able to migrate the old data to the new schema, we think. To be sure we need to test each query by comparing the old results with the new.

How can we test such a wholesale migration? I need to be able to specify parameters, and map old tables/columns to new tables/columns. With hundreds of queries this is a daunting task. I could write something myself but I already have a lot of demands on my time so using an existing tool is preferable.

Thanks!

  • 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-25T17:45:37+00:00Added an answer on May 25, 2026 at 5:45 pm

    I’ve had to do this … and well it was easy because i rewrote the entire application 😉

    Many queries sounds like basic operations such as select,insert,updates have not been abstracted in functions – maybe that can help clean up the mess before adapting.

    Now for the testing:

    You need a test script that will
    a) run all your queries
    b) store output of all selects for comparison

    1. backup your test db @ state 0, clear the general query log

    2. play around your application using all the deletes, selects and updates,

    3. copy paste that log, take every single select and precede it with a “Create table temptable_xyz” (or of course SELECT into temptable_xyz .. depends on the available syntax)

    4. run on both databases, test db @ state 0 and test db @ state 0 after migration script

    5. compare

    This should do it if you can make sure you used every feature in every app.

    GL – nothing like making existing stuff better 😉

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

Sidebar

Related Questions

We (apparently) had poorly executed of our Solaris MySQL database engine last night. At
Our database server is a SQL 2008 server. My colleagues all have XP service
Our database schema is stored in a single file that is intended for production
The name of the Schema in our database is dynamic. Why won't the following
I'm working on versioning our database and am now searching for a way to
Our database server work properly and all the sites that work on from it,
Our database has all times stored as UTC, and we know the user's current
I have a poorly designed database. One of the most important tables has 11,000+
For our database development we have on one hand a full schema DDL script,
Currently our database has size 10 GB and is growing by around 3 GB

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.