November 29, 2012 at 1:27 am
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
November 29, 2012 at 1:40 am
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
November 29, 2012 at 3:40 am
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
This website stores cookies on your computer.
These cookies are used to improve your website experience and provide more personalized services to you, both on this website and through other media.
To find out more about the cookies we use, see our Privacy Policy