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
 Transact-SQL (2000)
 ALTER COLUMN failes

Author  Topic 

sfn
Starting Member

1 Post

Posted - 2005-12-16 : 03:50:04
Hi,

ALTER TABLE tablename ALTER COLUMN columnname NUMERIC (11,2)
gives the following (translated) error message:
object 'DF_...' depends on column columnname

I've no problem doing the same using Access.
Thanks for any hints!

shallu1_gupta
Constraint Violating Yak Guru

394 Posts

Posted - 2005-12-16 : 04:02:23
The column u are trying to alter might be refered in some constraint. drop the constraint and alter.
Go to Top of Page

madhivanan
Premature Yak Congratulator

22864 Posts

Posted - 2005-12-16 : 04:27:37
Run
sp_pkeys 'tableName'
and
sp_fkeys 'tableName'

to see the relation of that column with other table

Madhivanan

Failing to plan is Planning to fail
Go to Top of Page
   

- Advertisement -