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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T14:34:44+00:00 2026-05-23T14:34:44+00:00

I’m wondering what is the best way to create and maintain databases maps and

  • 0

I’m wondering what is the best way to create and maintain databases maps and SQL scripts. I know I’m more a fan of writing the SQL script by hand on a text editor (plus designing a map to have next to me on a piece of paper), while others prefers to use database maps softwares (MySQL Workbench, Visual Studio… some listed in this post) to automatically generate the script.

Both solutions have advantages and drawbacks. I see these advantages:

  • SQL script by hand:
    1. You know exactly what you write.
    2. You are able to keep a clean and easily readable SQL code.
    3. Writing the code, you keep a better view of your database specifics.
    4. Writing the code enables you to to practive your SQL knowledge.
  • Automatically generated script from designed map:
    1. Saves some time.
    2. Even without knowing SQL language, you can generate a script (even if I listed this one as an contrary advantage for SQL script by hand).
    3. Prevents typos.

What do you think, what way do you proceed?

  • 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-23T14:34:44+00:00Added an answer on May 23, 2026 at 2:34 pm

    If automating something saves time and human error why wouldn’t you do it? I would try auto-generating SQL if:

    1. I had already populated a test database and built up the schema in an organic fashion by writing and executing ad hoc SQL non-queries which I hadn’t kept track of; and
    2. If the database was reasonably simple and with a low amount of normalisation

    Another rare case might be if you had a massive list of data sets for which the schema needed to be extracted in the form of SQL.

    The benefits of writing by hand are that you are aware of every part of the design and better able to enforce data integrity (for instance through use of foreign keys or limiting data types). In short, I would agree with your list of pros.

    For upgrade scripts I strongly prefer writing these by hand because they’re usually fairly short and it’s nice for them to be more readable for the people who end up running them.

    One tip I’d have for upgrade scripts is to make sure each script adds a row stating the upgrade version number in a table which is exclusively there to ensure the database is versioned correctly. Something like:

    INSERT INTO DB_VERSION (upgrade_time, version_from, version_to, comment)
        VALUES ('2011-07-04T120320', '2.2.4', '2.3', 'add column x to table y.')
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

link Im having trouble converting the html entites into html characters, (&# 8217;) i
Basically, what I'm trying to create is a page of div tags, each has
I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
In my XML file chapters tag has more chapter tag.i need to display chapters
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
Does anyone know how can I replace this 2 symbol below from the string
I am writing an app with both english and french support. The app requests
I'm trying to create an if statement in PHP that prevents a single post
I'm making a simple page using Google Maps API 3. My first. One marker
That's pretty much it. I'm using Nokogiri to scrape a web page what has

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.