Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to insert a column in SQL Server
Message
 
 
À
14/04/2002 22:12:59
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Conception bases de données
Divers
Thread ID:
00644907
Message ID:
00644910
Vues:
13
>Sergey,
>
>Perhaps you know the answer to this question.
>
>Is there a SPROC or instruction to insert a column in a SQL table in the first position? It is to be the PK and I prefer it there. If you don't know of any procedure, how would you suggest I go about writing one.

I'm not aware about any such SP's or commands and I don't see any easy way to do that. It would required creating a table with new structure, insert records from the old one and rename it. It would get even more complicated if table is involved into referential integrity. I tnink it's not worth it.
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform