SQL Server 2008 : Cannot Insert new column in the middle position and change data type

后端 未结 4 1211
夕颜
夕颜 2020-12-06 07:55

My OS is Windows server 2008.

I\'ve already installed SQL Server Express 2008.

I have several problems:

  1. I can\'t insert a new column in the mid
4条回答
  •  不知归路
    2020-12-06 08:28

    If you want a script to do this, all you need to do is select the data out into a temporary table, drop the table, recreate it with the columns in your preferred order and then reinsert the data from the temporary table in the right order.

提交回复
热议问题