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

  • Home
  • SEARCH
  • 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 535159
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T09:41:15+00:00 2026-05-13T09:41:15+00:00

I have some table and records in a database, that I use to manually

  • 0

I have some table and records in a database, that I use to manually test my (PHP) code. Suppose, I’d like to share these records and table structure (e.g: with other developers); if some model changes or new table added, everyone will aware.

How do you integrate to your development process this need? My idea is on every commit dump the DB into a file, and commit that file as well, after the script made sure it’s modified. And on update, update this file as well and reload the other development db. This could be possiple via eclipse’s external tool function, but I feel this a bit hacky.

How do you deal with test-data in database, if it should be version controlled/shared?

  • 1 1 Answer
  • 1 View
  • 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-13T09:41:15+00:00Added an answer on May 13, 2026 at 9:41 am

    There are numerous methodologies for handling test data, but the process we use is as follows:

    • Maintain a project (Visual Studio supports database projects) or at least a folder structure with your database scripts in it
    • Build a tool that is capable of grabbing the latest scripts and creating a database from them
    • Export your data into some format that can be executed after the scripts have run (INSERT statements, or whatever)

    You will need to maintain your data, obviously, as your database changes, which may mean refactoring your data files when new not-null columns get added. However, once you have this system in place, all of your developers can easily grab all the SQL from our source control and generate their own database with test data easily.

    The alternative to this would be to maintain a development database for all developers, which we also have. This way, you have one “gold” copy of the development database with the latest schema changes and test data.

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

Sidebar

Related Questions

I have a table within my database that has many records, some records share
I have some code to update a database table that looks like try {
Hi experts: I have a table Called tblAlarm and it has some records like
I have some data in a table that looks roughly like the following: table
I have some database table and need to process records from it 5 at
I have to insert some records in a table in a legacy database and,
I have a table with about 100k records and I want to delete some
I have some table DOCUMENTS that have a column TYPE_ID and a table named
i have some fields in my database table,and a field with phone name ,
I have a database table in which I need to insert records. I'm using

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.