I have a table in which I am expanding about 10 fields. I'm issuing the alter table commnand individually.
I have expanded 7 of them suscessfully but the other 3 I'm getting an error.
This is the command I'm using:
Alter Table WeeklysalesHistory Alter column costofsales decimal(11,0)
It comes back with the following errors:
Server: Msg 5074, Level 16, State 8, Line 1
The statistics 'hind_113_6_1_2_3_4_5_7_9_10_14_19' is dependent on column 'costofsales'.
It lists this error over and over and then has this error as well.
Server: Msg 4922, Level 16, State 1, Line 1
ALTER TABLE ALTER COLUMN costofsales failed because one or more objects access this column.
Any ideas on what is causing this. There is not an index on this field.
Thanks. Stacy
I have expanded 7 of them suscessfully but the other 3 I'm getting an error.
This is the command I'm using:
Alter Table WeeklysalesHistory Alter column costofsales decimal(11,0)
It comes back with the following errors:
Server: Msg 5074, Level 16, State 8, Line 1
The statistics 'hind_113_6_1_2_3_4_5_7_9_10_14_19' is dependent on column 'costofsales'.
It lists this error over and over and then has this error as well.
Server: Msg 4922, Level 16, State 1, Line 1
ALTER TABLE ALTER COLUMN costofsales failed because one or more objects access this column.
Any ideas on what is causing this. There is not an index on this field.
Thanks. Stacy