alter colum

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • saritha srinivas
    New Member
    • Aug 2007
    • 1

    alter colum

    print send me a script which alter a column in a table to the same name but with constraint default value as 1
  • debasisdas
    Recognized Expert Expert
    • Dec 2006
    • 8119

    #2
    as you have posted a question in the articles section it is being moved to SQL Server Forum.

    MODERATOR.

    Comment

    • ak1dnar
      Recognized Expert Top Contributor
      • Jan 2007
      • 1584

      #3
      You Can try Like this.

      [CODE=sql]ALTER TABLE MyTable
      ADD CONSTRAINT DF_MyTable_MyCo lumn
      DEFAULT ('default-Value-To-Set')
      FOR MyColumn[/CODE]

      Comment

      Working...