How to change every nvarchar column to varchar?

后端 未结 3 501
不知归路
不知归路 2020-12-09 21:54

what would be the simplest way to change every nvarchar column in a database to a varchar?

I personally would prefer nvarchar, but the data arch has specified that v

3条回答
  •  暗喜
    暗喜 (楼主)
    2020-12-09 22:44

    Ask the data arch to do it?

    or

    Generate a script of all objects in your system, alter then nvarchar's, then create a new database and import the data into it from the old one.

    or

    Write alter scripts to update the existing database.
    (This may be the best approach if it's a production database, or a client database.)

提交回复
热议问题