alter column
From: baramee (bkunnika_at_hotmail.com)
Date: 05/13/04
- Next message: Aaron Bertrand [MVP]: "Re: alter column"
- Previous message: Dan Guzman: "Re: User Permissions to Limit DTS operations"
- Next in thread: Aaron Bertrand [MVP]: "Re: alter column"
- Reply: Aaron Bertrand [MVP]: "Re: alter column"
- Messages sorted by: [ date ] [ thread ]
Date: Thu, 13 May 2004 07:50:55 +0700
I want to alter column that it's part of primary key.
I tried to use script as follow.
ALTER TABLE table1 ALTER COLUMN column1 varchar(30)
Before i run this script, it generate error.
Server: Msg 5074, Level 16, State 8, Line 1
The object 'PK_table1' is dependent on column 'column1'.
Server: Msg 4922, Level 16, State 1, Line 1
ALTER TABLE ALTER COLUMN mobile_number failed because one or more objects
access this column.
Everyon help me please
Thanks in advance.
- Next message: Aaron Bertrand [MVP]: "Re: alter column"
- Previous message: Dan Guzman: "Re: User Permissions to Limit DTS operations"
- Next in thread: Aaron Bertrand [MVP]: "Re: alter column"
- Reply: Aaron Bertrand [MVP]: "Re: alter column"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|