Results 1 to 2 of 2

Thread: dropping defaults

  1. #1
    ZIGGY Guest

    dropping defaults

    I have run the following script to create a default on a table:

    alter table TableXYY
    add default 0 for ColumnX

    Now, how do I delete this default (without re-creating the table)??

    Thanks


  2. #2
    Jim Guest

    dropping defaults (reply)

    If you did not name the contraint then SQL created a name for it. Just look up the name and run something like the following.

    alter table TableXYY
    drop constraint DF__TableXXYY__ColumnX__16EE5E27


    ------------
    ZIGGY at 7/6/01 3:34:08 PM

    I have run the following script to create a default on a table:

    alter table TableXYY
    add default 0 for ColumnX

    Now, how do I delete this default (without re-creating the table)??

    Thanks


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •