What is the quickest way of achieving a total column datatype change from number(9) to varchar(3)? I have a few million rows in this table and SQL will run forever ....
Software/Hardware used:
ASKED:
June 30, 2009 2:26 PM
UPDATED:
July 1, 2009 5:56 PM
I agree with Kccrosser. That could be your better option, but keep in mind that when using this approach, you are temporary storing the complete contents of the table in memory.
Depending on the available resources on the server, and the amount of data in the table, you might want to perform the bulk fetch / insert in chunks, using the LIMIT clause.
Let us know if you need further help.