Solved

ALTER TABLE: insert a field and specify location of new field

Posted on 2004-10-08
2
301 Views
Last Modified: 2011-04-14
I have an existing table with several fields.  I want to alter the table to insert a new field in a specific location, say, after the third existing field.  Is there a way to specify on the add where the new field is put?  Thanks.
0
Comment
Question by:rsoble
2 Comments
 
LVL 6

Accepted Solution

by:
boblah earned 250 total points
ID: 12260074
Hi rsoble,

no, unless you drop the whole table and recreate

Cheers!
0
 
LVL 1

Author Comment

by:rsoble
ID: 12260117
Thank you for the fast answer!
0

Featured Post

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Webservices in T-SQL 3 31
sql server concatenate fields 10 33
hyperlink data type in SQL 3 27
Whats wrong in this query - Select * from tableA,tableA 11 30
This article explains how to reset the password of the sa account on a Microsoft SQL Server.  The steps in this article work in SQL 2005, 2008, 2008 R2, 2012, 2014 and 2016.
The Delta outage: 650 cancelled flights, more than 1200 delayed flights, thousands of frustrated customers, tens of millions of dollars in damages – plus untold reputational damage to one of the world’s most trusted airlines. All due to a catastroph…
Via a live example, show how to extract information from SQL Server on Database, Connection and Server properties
Viewers will learn how to use the SELECT statement in SQL to return specific rows and columns, with various degrees of sorting and limits in place.

776 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question