Skip to content
Scripts and HOWTOs
Scripts and HOWTOs
  • GNU/Linux
  • MSSQL
  • MySQL
  • XML
  • PowerShell
  • MSWin
  • README
  • About
Scripts and HOWTOs
Scripts and HOWTOs
  • Category Index
  • Privacy Policy

MSSQL Create Unique Constraints

2008-06-13 2015-04-01 / MSSQL Server / Constraint, Unique / By Tim van Kooten Niekerk

Example to create a unique constraint on a column.

ALTER TABLE tablename ADD CONSTRAINT CK_Columnname UNIQUE (Columnname)

 

Post navigation
← Previous Post
Next Post →

Related Posts

MSSQL JOIN Selection Queries

MSSQL Server / By Tim van Kooten Niekerk

MSSQL Create Table Partitions

MSSQL Server / By Tim van Kooten Niekerk