Home > Archive > microsoft.public.cert.mcdba > February 2003 > alter command





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author alter command
Noorali Issani

2003-02-06, 5:23 am

Dear Professional

The following command giving me an error,

alter table make
alter column make_flag char(1) default 'Y'


"ERROR NEAR TO DEFULT KEY"

REGARDS
Noor


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.449 / Virus Database: 251 - Release Date: 1/27/2003


Alan Davis

2003-02-06, 6:23 am

You cannot add or remove a default constraint with the alter column
clause of the alter table statement.

You must first remove the default table contra inst bound to column
(if there is one) then add the new default constraint.

Example

alter table make
drop constraint make_Flag_Default

alter table make
add constraint make_Flag_Default default 'Y' for make_flag



On Thu, 6 Feb 2003 15:45:42 +0500, "Noorali Issani"
<noor@mail2000.com> wrote:

>Dear Professional
>
>The following command giving me an error,
>
>alter table make
>alter column make_flag char(1) default 'Y'
>
>
>"ERROR NEAR TO DEFULT KEY"
>
>REGARDS
>Noor
>
>
>---
>Outgoing mail is certified Virus Free.
>Checked by AVG anti-virus system (http://www.grisoft.com).
>Version: 6.0.449 / Virus Database: 251 - Release Date: 1/27/2003
>


Sponsored Links





Free Braindumps | MCSE braindumps software forum

Copyright 2003 - 2008 examnotes.net