hvisionexpo
Programmer
I have a client-server app that used SQL Server 2000. We do have updates to the program from time to time and have over 200 installs.
To apply DB updates we use to embed the SQL statements into the app and it became too overwhelming.
So we creating one SQL file that contains all the SQL needed to update to a version that we invloked from our application if it was not updated. When we invoke that we don't know if the script finished or not.
Now the dilemma is that we may have some clients that are using very old version of the application and it may need to apply several older SQL file updates before applying the latest one and there is no way of knowing if the previous script finished or not before starting the next SQL update.
e.g. i have version3.sql that i need to apply before i apply version4.sql if the user is using version2
if the user is using version3.sql I only need to apply version4.sql.
I know what version they are running by checking the version in their DB.
Is there a better way of applying DB updates? I do not want to have any user intervention.
THANKS
To apply DB updates we use to embed the SQL statements into the app and it became too overwhelming.
So we creating one SQL file that contains all the SQL needed to update to a version that we invloked from our application if it was not updated. When we invoke that we don't know if the script finished or not.
Now the dilemma is that we may have some clients that are using very old version of the application and it may need to apply several older SQL file updates before applying the latest one and there is no way of knowing if the previous script finished or not before starting the next SQL update.
e.g. i have version3.sql that i need to apply before i apply version4.sql if the user is using version2
if the user is using version3.sql I only need to apply version4.sql.
I know what version they are running by checking the version in their DB.
Is there a better way of applying DB updates? I do not want to have any user intervention.
THANKS