Contiguous Time Periods
        Posted  
        
        on SQL Server Central
        
        See other posts from SQL Server Central
        
        
        
        Published on Tue, 11 Jan 2011 07:00:00 UT
        Indexed on 
            2011/01/11
            13:57 UTC
        
        
        Read the original article
        Hit count: 282
        
Filed under: 
        It is always more efficient to maintain referential integrity by using constraints rather than triggers. Sometimes it isn't obvious how to do this. Until a recent idea by Alex Kuznetsov, the history table presented problems for checking data that were difficult to solve with constraints. Joe Celko explains. 
  
 
  Free trial of SQL Backup™
“SQL Backup was able to cut down my backup time
significantly AND achieved a 90% compression at
the same time!” Joe Cheng. Download a free trial now.
 
  
        
        
“SQL Backup was able to cut down my backup time
significantly AND achieved a 90% compression at
the same time!” Joe Cheng. Download a free trial now.

© SQL Server Central or respective owner