How To Change Column Ordinal Position in SQL Server 2005
using Query i.e I Want To Add Column at Particular Ordinal
Position in SQL Server 2005
Answers were Sorted based on User's Feedback
Answer / bruhaspathy
You cannot add a column at that particular position that you wanted. Instead the workaround is that you add the column using the Alter Table command and then after the columns are created, you can go to object explorer and right click the table, select modify and then move the column to the desired column location you wanted.
Is This Answer Correct ? | 6 Yes | 0 No |
Answer / soorai ganesh
Hi Buddy,
Its not possible in SQLSERVER. If u want to add column in
particular ordinal position you have to drop the table and
have to create again the same table with your ordinal
choice. Incase if u have data in table, get them into one
temporary table and drop the table and recreate the table
again. then restore the data from temporary table..........
Is This Answer Correct ? | 0 Yes | 6 No |
What is after dml trigger?
What is database architecture? : SQL Server Architecture
hi i am having .mdf file and .ldf file ..how can i get the all table in my .mdf..plz give solution
What does select 1 mean?
Can coalesce return null?
How many columns can exist together per table?
Mention the differences between sql server and mysql.
Why would you use sql agent?
What are the extra roles available in msdb? : sql server security
What is normalization 1nf 2nf 3nf?
Can we add an identity column to decimal datatype?
There is a table1 with records (1,2,3,4,5,6) and table2 with records (4,5,6,7,8,9).write a query so as to get the result as 1,2,3,4,5,6,7,8,9