Skip to content

Helpful Programming Tips

Just another WordPress.com site

Tags

  • Fixie
  • LINQ to SQL
  • Nuget
  • SQL
  • Testing
  • xUnit

Categories

  • Quality (2)
  • Reference (2)
  • Testing (2)
  • Uncategorized (1)

Archives

  • Jun 2015 (1)
  • Apr 2015 (2)
  • Oct 2010 (2)

Tag: SQL

How to find constraint names

Ever tried to drop a DEFAULT CONSTRAINT, how do you find the constraint name – try this:

USE [<database>]

EXEC sp_helpconstraint [<schema>.<table_name>]

GO

I found that little tip here: http://www.mssqltips.com/tip.asp?tip=1425

Posted on Oct 20, 2010Oct 20, 2010Categories ReferenceTags SQLLeave a comment on How to find constraint names
Create a free website or blog at WordPress.com.
Privacy & Cookies: This site uses cookies. By continuing to use this website, you agree to their use.
To find out more, including how to control cookies, see here: Cookie Policy
  • Subscribe Subscribed
    • Helpful Programming Tips
    • Already have a WordPress.com account? Log in now.
    • Helpful Programming Tips
    • Subscribe Subscribed
    • Sign up
    • Log in
    • Report this content
    • View site in Reader
    • Manage subscriptions
    • Collapse this bar
Design a site like this with WordPress.com
Get started