I have a couple of tables in a database which I inherited which have NVARCHAR(MAX) columns. Now that the data is several million rows, adding an index takes a long time and because of those columns, I can't do it with the ONLINE option. Meaning - I require an outage.
So I want to shift those columns to other tables and leave the columns which are frequently accessed. This will mean a staged process which will end in dropping the NVARCHAR(MAX) columns from the original tables.
The question I have is this, will that just magically enable those columns to be indexed ONLINE? They were created with the TEXTIMAGE_ON clause. Is there anything I need to do to address that? Or do I have to completely recreate the table and re-populate it? (really bad outcome)
Thanks
sp_renameto just rename the tables accordingly, or even better, use a view with the original table name, that joins the two tables back together, as your layer of abstraction.