Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 SQL Server Development (2000)
 Why this erro in Alter Table?

Author  Topic 

CLages
Posting Yak Master

116 Posts

Posted - 2006-06-27 : 10:43:55
hi.
I did several Updates in my Database, everything is fine
but this line Below doesnt work.

I can not find why. this column is not a KEY, there are no
relationship whith other columns. no triggers, nothing.

by the way The object 'DF_pedido_ped_percgeral' I dont know where the
Word "DF_" comes from.

does anybody knows where is my mistake?

tks

C. Lages


ALTER TABLE Teste.dbo.PEDIDO ALTER COLUMN ped_percgeral Numeric(08,6)


Server: Msg 5074, Level 16, State 1, Line 1
The object 'DF_pedido_ped_percgeral' is dependent on column 'ped_percgeral'.
Server: Msg 4922, Level 16, State 1, Line 1
ALTER TABLE ALTER COLUMN ped_percgeral failed because one or more objects access this column.

TG
Master Smack Fu Yak Hacker

6065 Posts

Posted - 2006-06-27 : 10:51:30
It looks like you have a default bound to the column you are attempting to alter.

check out: sp_unbindefault

Be One with the Optimizer
TG
Go to Top of Page

CLages
Posting Yak Master

116 Posts

Posted - 2006-06-27 : 15:02:04
tks
You are right
i fixed it

c.lages
Go to Top of Page
   

- Advertisement -