As you need to rename so many columns, I'd suggest, you create a new table with desired datatypes, copy all the data from the existing table to this new table by casting to varchar, drop the existing table and re-create with new datatypes and insert the records from the temp table to this newly create table and finally drop the temp table. It would be a much cleaner and safer approach for such kind of operations.
↧