Click here to Skip to main content
15,905,238 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
According to the current status of my program...a new column is get added to the existing table in every week....for a log term scenario ,is it a goood practice or not?
Posted
Comments
gvprabu 31-May-13 4:51am    
give some more details about your problem.
geo thomas 31-May-13 4:56am    
it is a perfomance analysing program..employee's perfomance is calulated by comapring many qualities...the perfomance check is done every week of a month ..in such case i may need to create a new colum to a table every week...so ma data table gets bigger is it is a good practice
gvprabu 31-May-13 5:05am    
u can use new table with following columns empID, finYear, finWeek, performanceDtls....
and JOIN with main table based on EmpID.

Why you want to add the New Column every week?
geo thomas 31-May-13 5:11am    
in this case the second perfomance evaluation replace the old record rit?
i want to keep all the records.
gvprabu 31-May-13 5:07am    
data in ROW then u can do reports, In case all your data in COLUMN like 52 column for one year, then later sure you can face many problems doing any reports or fetching details for one year like this...

1 solution

1024 columns per non-wide table, 30,000 for wide tables, these are the limitations for mssql, 4096 for mysql. I think this is not a good solution for long term. if everyting goes ok, your program will crash approximately 4 year.
 
Share this answer
 
Comments
geo thomas 31-May-13 5:08am    
tnk u
geo thomas 31-May-13 5:14am    
maximum how many colums can be added to a database?
Osman24 31-May-13 7:04am    
It is also about size and other limitations. Here is the answer: http://msdn.microsoft.com/en-us/library/ms143432.aspx I think you are using MSSQL

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