Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Changing column size of several tables
Message
 
 
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Autre
Versions des environnements
SQL Server:
SQL Server 2014
Application:
Web
Divers
Thread ID:
01604976
Message ID:
01604978
Vues:
53
>Hi,
>
>I need to change (increase) the size of the column in the parent table as well as a couple of child tables. E.g. part_no currently is char(20) which I need to make char(25). When I make this change to the parent table column in SSMS, I get the message prompting/asking that all child table columns will be modified too. When I say Yes, they are modified. And this is what I want.
>
>But before I start making this change to the customer(s) database I have a question. Should I use a different method of increasing the size of this column? That is, is there a catch or a downside of changing the column from SSMS?
>
>TIA.

I think it should be fine. Save the script first, make a backup of the database and then you can use this method. You can also check using INFORMATION_SCHEMA.Columns if there are tables which are missed by that script.
If it's not broken, fix it until it is.


My Blog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform