Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 Transact-SQL (2000)
 Adding the column to particular Ordinal Position

Author  Topic 

chiragkhabaria
Master Smack Fu Yak Hacker

1907 Posts

Posted - 2005-07-19 : 04:30:48
Hello Everyone.

Is there any way i can add the new column at the particular ordinal position through query and not through Entp Mangr...

Thanks in Advance

Complicated things can be done by simple thinking

AndyB13
Aged Yak Warrior

583 Posts

Posted - 2005-07-19 : 04:41:33
Why do you want to do this? Just add a new column to the "end" via the ALTER TABLE command. Otherwise you will have to create a new table, copy the data, drop/re-apply constraints etc

Do it in EM and click the "Save Change Script" icon to see what SQL Server does by adding a new column to a table to anywhere but the end.

Andy

Beauty is in the eyes of the beerholder
Go to Top of Page

madhivanan
Premature Yak Congratulator

22864 Posts

Posted - 2005-07-19 : 04:54:08
It does not matter the ordinal position of the column
It can be at any ordinal position

Madhivanan

Failing to plan is Planning to fail
Go to Top of Page
   

- Advertisement -