About 781,000 results
Open links in new tab
  1. sql server - How can I create a SQL unique constraint based on 2 ...

    Jul 5, 2011 · The users are importing data from various external systems so ContactId will not be unique across the board but will be unique on a per user basis. I know how to create Unique …

  2. How can I create a unique constraint on my column (SQL Server …

    173 I have SQL Server 2008 R2 and I want to set a unique column. There seems to be two ways to do this: "unique index" and "unique constraint". They are not much different from what I …

  3. sql - How to drop a unique constraint from table column ... - Stack ...

    Mar 31, 2011 · ALTER TABLE [dbo]. [tablename] DROP CONSTRAINT [unique key created by sql] GO alternatively: go to the keys -- right click on unique key and click on drop constraint in …

  4. sql server - How do I create a unique constraint that also allows …

    Apr 20, 2009 · I want to have a unique constraint on a column which I am going to populate with GUIDs. However, my data contains null values for this columns. How do I create the constraint …

  5. Add unique constraint to combination of two columns

    Now, a unique index and a unique constraint happen to be implemented the same way under the covers in SQL Server, so this is just semantics. But your documentation should explain why …

  6. sql - Combining the UNIQUE and CHECK constraints - Stack …

    Apr 6, 2010 · 6 Unique constraints are for all rows, and there is no way to specify only some rows. Check constraints are only for validation within a single row. The only ways to achieve your …

  7. Unique Key Violation in SQL Server - Stack Overflow

    Dec 18, 2015 · sql-server-2005 unique-constraint edited May 3, 2012 at 20:37 Mark Sowul 10.7k 1 49 52

  8. sql - What is the difference between a primary key and a unique ...

    Aug 20, 2009 · The UNIQUE constraint uniquely identifies each record in a database table. The UNIQUE and PRIMARY KEY constraints both provide a guarantee for uniqueness for a …

  9. SQL Unique constraint across multiple tables - Stack Overflow

    Apr 29, 2017 · For example you will have the unique table with an ID, AppName and ItemName to make up its 3 columns. Then have this table link to the others. For how to do this here is a …

  10. How to check if a Constraint exists in Sql server?

    Mar 23, 2010 · FROM sys.objects WHERE type_desc LIKE '%CONSTRAINT' AND OBJECT_NAME(OBJECT_ID)='XYZ' If you need even more constraint information, look inside …