Go Back   TechArena Community > Software > Tips & Tweaks
Become a Member!
Forgot your username/password?
Register Tags Active Topics RSS Search Mark Forums Read SiteMap

Tags: , , , , ,

Sponsored Links



Tips to design table in SQL 2005

Tips & Tweaks


Reply
 
Thread Tools Search this Thread
  #1  
Old 30-01-2010
Member
 
Join Date: Nov 2009
Posts: 292
Tips to design table in SQL 2005

I am learning to work with the SQL database. Currently I am trying to work on SQL 2005. My instructor has said that for developing good software you have to design the correct database table, because table are the basic keys while developing the software or the database design. So I am really in need to know the tips for making the tables in database of SQL 2005. I do not want to make a mess of my table in the database or not I want to change the table design in future.
Reply With Quote
  #2  
Old 30-01-2010
Itronix's Avatar
Member
 
Join Date: Apr 2008
Posts: 419
Re: Tips to design table in SQL 2005

There are many tips for designing a good table design in the SQL 2005. I will like to mention some of these.
1. You must normalize your table in SQL this will help you to get rid of entering the same data at different places.
2. Do not forget to enter the primary key in each and every table you create in the database
3. Now if you are creating primary key for your table then it will be better to choose the numeric primary key for your table. Using the non-numeric primary key will definitely lead to problem in future.
4. This does not mean that you cannot keep the primary key for your table. For example if you want to create the primary key for the countries then it is better option you do not have to create a separate number for the countries. The countries names are not going to be repeated.
Reply With Quote
  #3  
Old 30-01-2010
SpearMan's Avatar
Member
 
Join Date: Apr 2008
Posts: 464
Re: Tips to design table in SQL 2005

According to me tips mentioned in the above replies are the basic level tips. Do not forget to use these tips but also consider the tips given below.
1. Design you table in such a way that they can participate in the relationships. Relationships can be of one is to one or it can be one is to many. Creating the relationship will definitely help to remove the irrelevant data in the database.
2. Try to choose the best data type and the size for your field in your table. Choosing the correct data type will definitely help you to improve the performance of queries you are going to use.
Reply With Quote
Reply

  TechArena Community > Software > Tips & Tweaks


Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "Tips to design table in SQL 2005"
Thread Thread Starter Forum Replies Last Post
Missing table tool design tab in Excel Lanka Boy Windows Software 2 06-01-2012 07:56 PM
Link a Table to another Table to Drop Down In Main Table himeshRES Windows Software 6 11-12-2010 02:01 PM
Design view table in Microsoft access 2007 Balamohan Windows Software 5 08-01-2010 04:41 AM
Brochure Design Tips MILFORD Tips & Tweaks 1 27-12-2009 06:24 AM
SQL Server 2005 express Edition Service Pack 3 & SQL Ser5ver 2005 Dennis TR Windows Update 5 12-02-2009 12:48 AM


All times are GMT +5.5. The time now is 09:26 AM.