Answered SQL table too large, can't change design

  • 5 iulie 2012 19:05
     
     

    In SQL Azure, how do I change a field: decimal(18,9) to decimal (18,5) if I have millions of records?

    I am getting overflow exception because of the data type and I cannot fix it because "alter table" times out. Please suggest what to do.

Toate mesajele

  • 5 iulie 2012 19:26
     
     Răspuns

    If you can't do an alter table, perhaps create a new table with the new precision and copy the data from old table to new. Possibly the SQL Azure Migration Wizard or SQL Server BCP tools would be useful in doing this with a large data set.


    David Pallmann GM Application Development, Neudesic Windows Azure MVP