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)
 Sql Table

Author  Topic 

AskSQLTeam
Ask SQLTeam Question

0 Posts

Posted - 2006-08-16 : 09:26:19
Ravi writes "Dear SQL Guru,
Is there is any way to insert a column between 2 already exists columns in a table through T-SQL statement ... ?"

harsh_athalye
Master Smack Fu Yak Hacker

5581 Posts

Posted - 2006-08-16 : 09:31:57
Why you want it? Physical order of the columns within the table is unimportant. Doing this is not straight-forward in SQL server and not good performance wise either. The easiest way is to do it thru Enterprise manager, but I highly recommends against doing this on production server.

Harsh Athalye
India.
"Nothing is Impossible"
Go to Top of Page

chiragkhabaria
Master Smack Fu Yak Hacker

1907 Posts

Posted - 2006-08-16 : 09:32:38
try to insert the same using EM and then generate the script from EM

Chirag
Go to Top of Page

madhivanan
Premature Yak Congratulator

22864 Posts

Posted - 2006-08-16 : 12:20:34
Ordinal position of the column in a table doesnt matter as long as you use them in proper position in select statement

Madhivanan

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

- Advertisement -