Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
ALTER table - only add one column at a time?
Message
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Syntaxe SQL
Versions des environnements
SQL Server:
SQL Server 2005
Divers
Thread ID:
01331519
Message ID:
01331527
Vues:
7
This message has been marked as a message which has helped to the initial question of the thread.
Naomi,

You are correct, you can ADD multiple columns in a single statement, but you can only ALTER one column at a time in a SQL statement.

Kurt
>Kurt,
>
>Can you alter two columns at once? There is no sample in BOL and I assume it's impossible.
>
>I need
>ALTER TABLE Friends ALTER COLUMN [EmergencyContactPhone1] [varchar](25) NULL,
> [EmergencyContactPhone] [varchar](25) NULL
>
>
>(change type of both columns).
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform