Unable to alter column in table

  • Unable to alter column in table due to default value

    I am changing int to bigint

    Getting below error

    Msg 5074, Level 16, State 1, Line 1

    The object 'DF__ID_SEQ__MAX_VALU__5DEAEAF5' is dependent on column 'MAX_VALUE'.

    Msg 4922, Level 16, State 9, Line 1

    ALTER TABLE ALTER COLUMN MAX_VALUE failed because one or more objects access this column.

    Please suggest

  • There's a default dependant on the column. Drop that first.

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • Thanks it is working

Viewing 3 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic. Login to reply