Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to update a database structure?
Message
 
 
À
27/09/2011 10:21:22
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Autre
Versions des environnements
SQL Server:
SQL Server 2005
Divers
Thread ID:
01524837
Message ID:
01524869
Vues:
41
>>Hi,
>>
>>How do you update a database structure (default keys, constraint, etc) installed on the customer site with the changes you have made to your copy of SQL Server database? That is, I understand that I have to create some script and send it to the customer and instruct them to run this script, correct? How do you create such a script? TIA.
>
>
>Hi Dmitry,
>
>In addition to the other suggestions I'll explain our process.
>
>All DB changes are scripted during development, we never make changes using the SSMS interface. Using scripts during dev allows us to track what was changed, who made the change, and why it was changed. Our scripts are stored in source control. They typically check for existance of the added/modified object so they can be executed more than once.
>
>For migration, all scripts are concatenated into a single file for ease of use.
>
>I know these suggestions are of no use for your current scenario, but might help moving forward. I can post examples if that would help.
>
>Bruce

Hi Bruce,

This is very helpful! I think I am going to adopt the approach you have; creating sripts and applying them to my ("master") database as well as to the customer database. Right now I am making a lot of changes since I am still in the development mode. But once I send a copy to my QA person I will follow your approach. Thank you very much.
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform