SQL Server Central is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
Search:  
 
 

Articles with tag constraints Rss

Refine your search with one of the following additional tags (with number of items):

Database Design (1)     Referential Integrity (1)    
DRI (1)     Triggers (1)    
Indexing (1)     T-SQL (1)    

Search for any content tagged constraints

   Items 1 to 5 of 5   
 

Constraint Yourself!

In his first article for Simple-Talk, Joe Celko demystifies the use of Constraints, and points out that they are an intrinsic part of SQL and are a great way of ensuring that a business rule is done one way, one place, one time.  Read more...
By Additional Articles 2008/10/30 | Source: SimpleTalk | Category: Database Design
Rating:  Rate this |  Briefcase | 1,702 reads

Should I Use a UNIQUE Constraint or a Unique Index in SQL Server?

I am modifying a table and I need to add a column that must be defined as being unique. I see that SQL Server allows you to define a UNIQUE constraint on a column but I also see that you can create a unique index on a column. Which one should I use?  Read more...
By Additional Articles 2008/09/05 | Source: MSSQLTips.com | Category: constraints
Rating:  Rate this |  Briefcase | 6,400 reads

Comparing SQL Server constraints and DML triggers

Over the years, I have witnessed many developers being confused about when to use data-manipulation language (DML) triggers vs. when to use constraints.  Read more...
By Additional Articles 2008/07/23 | Source: Builder.com | Category: Triggers
Rating:  Rate this |  Briefcase | 1,783 reads

Avoid Untrusted Constraints in SQL Server

Some time ago, I loaded a large set of data into one my tables. To speed up the load, I disabled the FOREIGN KEY and CHECK constraints on the table and then re-enabled them after the load was complete. I am now finding that some of the loaded data was referentially invalid. What happened?  Read more...
By Additional Articles 2008/07/18 | Source: MSSQLTips.com | Category: Referential Integrity
Rating:  Rate this |  Briefcase | 1,737 reads

Defining cascading referential integrity constraints in SQL Server

By using cascading referential integrity constraints, you can define the actions that SQL Server 2005 takes when a user tries to delete or update a key to which existing foreign keys point.  Read more...
By Additional Articles 2008/06/20 | Source: Builder.com | Category: DRI
Rating: (not yet rated)  Rate this |  Briefcase | 1,949 reads
   Items 1 to 5 of 5