Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to insert a column in SQL Server
Message
 
 
To
14/04/2002 22:12:59
General information
Forum:
Microsoft SQL Server
Category:
Database design
Miscellaneous
Thread ID:
00644907
Message ID:
00644910
Views:
12
>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--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform