Click here to Skip to main content
15,884,388 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have an application requirement where if there is any change in the database it will be called a new revision, when the client application is installed it should first check whether the current database is upto date... any ideas how to achieve this? All I could come up with was to maintain a version table where new record is added for every version along with date and version number
Posted
Comments
AmitGajjar 10-Apr-13 8:29am    
how many objects are in your database?
ZurdoDev 10-Apr-13 10:14am    
Yes, keep track of it yourself.
Sudhakar Shinde 10-Apr-13 11:50am    
Adding a record manually in version table for every db change is the best practice..!
RujX 22-Apr-13 8:13am    
sounds like a good idea

You can query the database at periodic interval and retrive the version from the database. The query will depend upon the database vendor like for MySql.

You can run the following query

SHOW VARIABLES WHERE Variable_name = 'version';
 
Share this answer
 
Hi Vikram,
Thanks for replying... I am using SQL Server 2008 and would want to make the version control as automated as possible...
 
Share this answer
 

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