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

后端 未结 4 1182
夕颜
夕颜 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

    In SSMS Tools -> Options -> Designers you would need to uncheck the option "Prevent Saving Changes that require table re-creation" to allow you to do this in SSMS.

    This will rebuild the table and so generally isn't worth the hassle if the table is at all large and will make deployment to production trickier.

    If there are columns which logically you would prefer to have next to each other to make writing queries easier you can create a View with the desired column order.

提交回复
热议问题