I have a table that contains millions of records.
I’m altering one column data type to another (money to decimal)
Noticing that is taking alot of time executing the alter statement. Probably due to the fact that there is alot of data.
Is there a way to increase the performance for this scenario?
All millions of rows have to changed at the same time in one transaction
Another option is to create a new table, insert in batches, drop old table, rename new table.
However, it’s liable to take longer this way.