Home Lyons Safari Blog  

Since 1976
722 37th Street South
Birmingham AL - 35222
(205) 251-5966
 Lyons Computers: Dropping Unique Constraints in SQL Server


Dropping Unique Constraints in SQL Server Durable Link to this entry

We had a customer who was having trouble removing a SQL Server constraint. Even removing the column and re-adding didn't help.

You can't even DROP INDEX command.

The trick is to use ALTER TABLE command with DROP CONSTRAINT

Example:

alter table dbo.Projects drop constraint [UQ__Projects__46B27FE2]

Viewed 1203 Times
Date Blogged: 3/7/2010

 Search Entries

 Home | Request HelpEmployees | Sitemap | Store Hours| Driving Directions | FAQCall 251-LYONS 
     
Products
  • Servers
  • Computers
  • Network Equipment
  • Computer Security
  • Software Licenses
  • Small Business Websites
  • Search Engine Packages
  • Local Advertising Packages
Services
  • Networking
  • Notebook Repairs
  • Computer Repair
  • Server Repairs
  • Printer Repairs
  • Virus Removal
  • Application Development
  • Online Marketing
  • Website Design
  • E-Commerce
  • Web & Email Consulting
  • Content Management
Why Lyons
  • One Stop Solution
  • Superior Customer Service
  • Fair Prices and Fair Treatment
  • No Rip-offs
  • Locally Owned
  • Fast Turnarounds and Same day Service

Lyons Computers, 722 37th Street South, Birmingham AL - 35222
Phone: 205-251-5966
Fax: 205-251-5978