Click here to Skip to main content
15,881,204 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
Dear Friends,

I want to know that, at the time of creating the Table what all points to considered.
Eg- Primary Key, datatype, size
Kindly guide me on the same.
Because when I am creating a Table, I bliendly create a table and my columns.
But I dont know wheather I have created in proper set precedure and structure.
Posted
Comments
Sergey Alexandrovich Kryukov 16-Aug-12 2:44am    
Not clear. Not even a question.
--SA
Arunprasath Natarajan 16-Aug-12 4:02am    
Sorry, Will improve myself next time while updating such things or que.
bbirajdar 16-Aug-12 3:12am    
No offence, but blind people should take help of their senior team member while designing a database...
Arunprasath Natarajan 16-Aug-12 4:00am    
Yeah I agree, tats y I ve dropped my que. here.

Go through this two part tutorial where best practices to design a new table are discussed in some detail - http://www.petri.co.il/create-tables-in-sql-server-2008-part-1.htm[^].
 
Share this answer
 
Comments
Sergey Alexandrovich Kryukov 16-Aug-12 2:45am    
Well, what else could be advised in case of such a vague and incorrect question? Voted 5.
--SA
Abhinav S 16-Aug-12 2:46am    
Thanks SA.
Wendelius 16-Aug-12 2:52am    
Good answer
Abhinav S 16-Aug-12 2:52am    
Thank you Mika.
Arunprasath Natarajan 16-Aug-12 4:33am    
Will get back to you aft referring the mentioned link. Tan Q.
In my opinion, if you're blindly creating the table, the first thing would be to forget about technical questions and to find out the business needs.

when you have gathered all of the requirements, then you can start modelling the structure, types, constraints , possible T-SQL blocks like procedures, triggers and so on.
 
Share this answer
 
Comments
Abhinav S 16-Aug-12 2:53am    
Fair enough. 5.
Wendelius 16-Aug-12 2:55am    
Thanks Abhinav.
Arunprasath Natarajan 16-Aug-12 3:59am    
Tan q, well said.
Wendelius 16-Aug-12 4:01am    
You're welcome :)
Sergey Alexandrovich Kryukov 16-Aug-12 16:41pm    
If so, please consider accepting this answer formally (green button)!
--SA

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900