Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Alter column
Message
De
02/07/2003 11:43:09
 
 
À
02/07/2003 11:27:20
Sergio Ortiz
Tek Services Group, Llc
Hollywood, Floride, États-Unis
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Autre
Titre:
Divers
Thread ID:
00805822
Message ID:
00806138
Vues:
45
This message has been marked as the solution to the initial question of the thread.
Sergio,

OK, your syntax looks fine ... the only other thing I can think of is that your compatibility level is set for version 6.5 (and that syntax won't work for versions before 7.0) ... so, in BOL, check out the topic on sp_dbcmptlevel ... you'll need to set it to a higher version (version 6.5 is not the default compatibility, so if that's what your problem is, someone must have set it).

~~Bonnie


>Bonnie thanks for your help.
>
>I am runing the code within SQL Query Analyzer.
>
>Here is the code :
>
>CREATE TABLE doc_exa ( column_a INT)
>GO
>ALTER TABLE doc_exa ADD column_b VARCHAR(20) NULL
>GO
>
>
>
>
>
>But when I issue the following :
>
>ALTER TABLE doc_exa ALTER COLUMN column_b VARCHAR(50) NULL
>
>I get the following error:
>
>Server: Msg 170, Level 15, State 1, Line 1
>Line 1: Incorrect syntax near 'COLUMN'.
>
>
>
>Sergio
Bonnie Berent DeWitt
NET/C# MVP since 2003

http://geek-goddess-bonnie.blogspot.com
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform