How to Change All Sql Columns of One DataType into Another

后端 未结 3 1819
失恋的感觉
失恋的感觉 2020-12-11 04:37

I have a database (Sql Server 2005) where there are dozens of tables, each of which has a number of columns (on average 10-20) with da

3条回答
  •  青春惊慌失措
    2020-12-11 04:49

    I think the best way to do this task is to generate script for the current database and then replace nvarchar(max) with varchar(250) on the text file, and then create the new database. after that use the Import/export utilities to transfer the data to the new database.

提交回复
热议问题