hi

  • hi everybody can u pls explain how to drop a constraint in sql server and how to describe  a constraint using sp_help

  • Drop constraint:

    ALTER TABLE table DROP CONSTRAINT constraintname

    Describe constraint:

    sp_helptext [ @objname = ] 'constraintname'

  • an example

    ALTER TABLE dbo.Table1

     DROP CONSTRAINT CK_Table1

Viewing 3 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic. Login to reply