broadvillage.com
   Main Page About Us Privacy Policy ToS Add Your Link Submit Article
Search:   
Add Url
 

Hotels & Travel

Academics & Education

Law & Politics

Health & Hygiene

Healthcare & Treatment

Entertainment

Home Family & Garden

Shopping Online

Events & News

Outdoor & Sports

Cooking & Drinking

Culture & Art

Jobs & Careers

Online & Indoor Games

Software & Networking

Business & Services

Realty & Property

Technology & Science

Fashion & Lifestyle

Children & Teens

Automobile & Automotive

Society & Communities

Self Healing

Finance & Investment


 

  Main Page –› Automobile & Automotive –› Auto Industry Software
   
 

Read This Before You Redesign Your Database!

   
As business evolves, the information that they store and process also changes and that means the underlying database structures that have been holding well for many years needs to be changed as well. This are even more complicated when you have redesign an 'in use' system.

Here is a step by step guide on what needs to be done:

Step 1: Draw the structure of the new database on Paper Based on the new business requirements, you need to draw the structure of the new database on paper. We often use MS Access at this stage because it has a got a 'Documenter' tool which generates a real professional output in a relatively short time.

Step 2: Analyze Existing Scripts / Code
Now you need to analyze the existing code to see how they are using the current database structure and how this usage will change based on the revised structure. For instance, if you are trying to split a long table into two separate tables, then all previous 'Select *' queries on that table will be useful. Thus, all the existing code will have to be rewritten.

Step 3: Create a migration plan
You need to create a migration plan. Leaving the tech stuff aside, this basically means how you are going to transfer the data from the old data into the new database. For this you will have a write a script of some kind. This stage is very critical because you might have to adjust your new database. For instance: If in the old database you have customers table which had a name column. Now, if the revised database has firstname, middlename and lastname column then I can bet your database redesign dreams will end here as you can't migrate the data between the two versions unless your plan includes manual typing.

Step 4: Create the new database
Now you get to design the new database structure as it should be implemented unless you have done in the very first step itself.

Step 5: Test the Migration Plan with a Demo Script
You now need to test the migration plan on a sub-set of 'old' database to ensure that the data can be migrated as you planned.

Step 6: Adjust the code
Now its time to edit the code! You need to go line by line and change all queries which are affected by the revised design.

Step 7: Perform the Migration
The day you have been waiting for has finally arrived; you get to perform the migration which means you upload the new code and execute the migration script.

Last Step: Test
All said and done, done forget to test the whole system once again to ensure that things are working as expected.
Of course, you should never play with the live database. With all those GUI tools available in the market, it's real tempting and easy to make changes on the live system. Always work on a backup copy and perform the migration on actual system once the dummy system has been tested properly.

Author: Mukul Gupta
 
Author Bio:

About Author: Mukul Gupta is the CMO of Indus Net Technologies, an India based Internet Consulting firm which specializes in Opensource solutions. You can reach him at script@script2please.com or visit www.script2please.com

This article can be searched using: automotive diagnostic software, automotive service software, automotive crm software
 
 
 

Related Articles

 
Electric Scooters: The Buzzaround Review
 
Elderly Drivers: Stop or Go?
 
World Leaders Bring Back Electric Cars
 
Guide to buy a cheap used car
 
7 Tips To Help You Select Your Custom Car Cover
 
Getting started with Go Carts
 
Everthing You Need to Know About Individual Health Insurance Plans (Part I)
 
Did You Change Your Oil?
 
Why Let A Disability Limit Your Mobility?
 
A Fire Breathing Dragon
 
 
 
 

CD DVD Replication vs. CD DVD Duplication: What The Heck Is The Difference?

CD DVD Duplication and CD DVD Replication both have their cost and quality advantages. Ultimately, i ... - Morris Anderson
 

Honda 2006 Ridgeline Pickup has Superior Honda Replacement Parts at Parts Train

The Honda Ridgeline is the pickup truck segment's first four-wheel, fully independent suspension sys ... - Jenny McLane
 

Motorized Wheelchairs

In the United States, the first city to advocate the use of motorized wheelchairs amongst disabled b ... - Ken Marlborough
 
 

Fuel Efficiency and Losses in Car Designs

If you choose the 48 MPG car, you could be saving hundreds of dollars in fuel costs each year. I thi ... - Thomas Yoon
 

Choosing Your First Remote Control Truck

If you are thinking of buying your first remote control truck, here are some things you need to keep ... - Alan Chestnutt
 

Obtaining a Driver's License in France (For Americans)

Step by step description of acquiring a French driver's license. This includes preparing for both th ... - Jeff Steiner
 

Everthing You Need to Know About Individual Health Insurance Plans (Part I)

If you are one of the many individuals who are not covered by group health insurance through your em ... - Jonathon James
 

Stock Car Insider - August 7th Issue

A recap of the Allstate 400 at Indianapolis Motor Speedway, and a look ahead to the AMD at The Glen ... - Jon Vandergrift
 
 
Main Page Privacy Policy ToS
Copyright © 2008 www.broadvillage.com All Rights Reserved.