ÿþU S E   [ A b l e C o m m e r c e ]  
 G O  
 / * * * * * *   O b j e c t :     T a b l e   [ d b o ] . [ a c _ S t o r e s ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 4   * * * * * * /  
 S E T   A N S I _ N U L L S   O N  
 G O  
 S E T   Q U O T E D _ I D E N T I F I E R   O N  
 G O  
 S E T   A N S I _ P A D D I N G   O N  
 G O  
 C R E A T E   T A B L E   [ d b o ] . [ a c _ S t o r e s ] (  
 	 [ S t o r e I d ]   [ i n t ]   I D E N T I T Y ( 1 , 1 )   N O T   N U L L ,  
 	 [ N a m e ]   [ n v a r c h a r ] ( 1 0 0 )   N O T   N U L L ,  
 	 [ A p p l i c a t i o n N a m e ]   [ n v a r c h a r ] ( 2 5 5 )   N O T   N U L L ,  
 	 [ L o w e r e d A p p l i c a t i o n N a m e ]   [ n v a r c h a r ] ( 2 5 5 )   N O T   N U L L ,  
 	 [ L i c e n s e K e y ]   [ v a r c h a r ] ( m a x )   N U L L ,  
 	 [ D e f a u l t W a r e h o u s e I d ]   [ i n t ]   N U L L ,  
 	 [ N e x t O r d e r I d ]   [ i n t ]   N O T   N U L L ,  
 	 [ O r d e r I d I n c r e m e n t ]   [ s m a l l i n t ]   N O T   N U L L ,  
 	 [ W e i g h t U n i t I d ]   [ s m a l l i n t ]   N O T   N U L L ,  
 	 [ M e a s u r e m e n t U n i t I d ]   [ s m a l l i n t ]   N O T   N U L L ,  
   C O N S T R A I N T   [ a c _ S t o r e s _ P K ]   P R I M A R Y   K E Y   C L U S T E R E D    
 (  
 	 [ S t o r e I d ]   A S C  
 ) W I T H   ( P A D _ I N D E X     =   O F F ,   S T A T I S T I C S _ N O R E C O M P U T E     =   O F F ,   I G N O R E _ D U P _ K E Y   =   O F F ,   A L L O W _ R O W _ L O C K S     =   O N ,   A L L O W _ P A G E _ L O C K S     =   O N )   O N   [ P R I M A R Y ]  
 )   O N   [ P R I M A R Y ]  
 G O  
 S E T   A N S I _ P A D D I N G   O F F  
 G O  
 / * * * * * *   O b j e c t :     T a b l e   [ d b o ] . [ a c _ G r o u p s ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 4   * * * * * * /  
 S E T   A N S I _ N U L L S   O N  
 G O  
 S E T   Q U O T E D _ I D E N T I F I E R   O N  
 G O  
 C R E A T E   T A B L E   [ d b o ] . [ a c _ G r o u p s ] (  
 	 [ G r o u p I d ]   [ i n t ]   I D E N T I T Y ( 1 , 1 )   N O T   N U L L ,  
 	 [ S t o r e I d ]   [ i n t ]   N O T   N U L L ,  
 	 [ N a m e ]   [ n v a r c h a r ] ( 1 0 0 )   N O T   N U L L ,  
 	 [ D e s c r i p t i o n ]   [ n v a r c h a r ] ( 2 5 5 )   N U L L ,  
 	 [ I s T a x E x e m p t ]   [ b i t ]   N O T   N U L L ,  
 	 [ I s R e a d O n l y ]   [ b i t ]   N O T   N U L L ,  
   C O N S T R A I N T   [ a c _ G r o u p s _ P K ]   P R I M A R Y   K E Y   C L U S T E R E D    
 (  
 	 [ G r o u p I d ]   A S C  
 ) W I T H   ( P A D _ I N D E X     =   O F F ,   S T A T I S T I C S _ N O R E C O M P U T E     =   O F F ,   I G N O R E _ D U P _ K E Y   =   O F F ,   A L L O W _ R O W _ L O C K S     =   O N ,   A L L O W _ P A G E _ L O C K S     =   O N )   O N   [ P R I M A R Y ]  
 )   O N   [ P R I M A R Y ]  
 G O  
 / * * * * * *   O b j e c t :     T a b l e   [ d b o ] . [ a c _ A f f i l i a t e s ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 4   * * * * * * /  
 S E T   A N S I _ N U L L S   O N  
 G O  
 S E T   Q U O T E D _ I D E N T I F I E R   O N  
 G O  
 S E T   A N S I _ P A D D I N G   O N  
 G O  
 C R E A T E   T A B L E   [ d b o ] . [ a c _ A f f i l i a t e s ] (  
 	 [ A f f i l i a t e I d ]   [ i n t ]   I D E N T I T Y ( 1 , 1 )   N O T   N U L L ,  
 	 [ S t o r e I d ]   [ i n t ]   N O T   N U L L ,  
 	 [ N a m e ]   [ n v a r c h a r ] ( 1 0 0 )   N O T   N U L L ,  
 	 [ P a y e e N a m e ]   [ n v a r c h a r ] ( 1 0 0 )   N U L L ,  
 	 [ F i r s t N a m e ]   [ n v a r c h a r ] ( 3 0 )   N U L L ,  
 	 [ L a s t N a m e ]   [ n v a r c h a r ] ( 5 0 )   N U L L ,  
 	 [ C o m p a n y ]   [ n v a r c h a r ] ( 5 0 )   N U L L ,  
 	 [ A d d r e s s 1 ]   [ n v a r c h a r ] ( 1 0 0 )   N U L L ,  
 	 [ A d d r e s s 2 ]   [ n v a r c h a r ] ( 1 0 0 )   N U L L ,  
 	 [ C i t y ]   [ n v a r c h a r ] ( 5 0 )   N U L L ,  
 	 [ P r o v i n c e ]   [ n v a r c h a r ] ( 5 0 )   N U L L ,  
 	 [ P o s t a l C o d e ]   [ n v a r c h a r ] ( 1 5 )   N U L L ,  
 	 [ C o u n t r y C o d e ]   [ c h a r ] ( 2 )   N U L L ,  
 	 [ P h o n e N u m b e r ]   [ n v a r c h a r ] ( 5 0 )   N U L L ,  
 	 [ F a x N u m b e r ]   [ n v a r c h a r ] ( 5 0 )   N U L L ,  
 	 [ M o b i l e N u m b e r ]   [ n v a r c h a r ] ( 5 0 )   N U L L ,  
 	 [ W e b s i t e U r l ]   [ n v a r c h a r ] ( 2 5 5 )   N U L L ,  
 	 [ E m a i l ]   [ n v a r c h a r ] ( 2 5 5 )   N U L L ,  
 	 [ C o m m i s s i o n R a t e ]   [ d e c i m a l ] ( 9 ,   4 )   N O T   N U L L ,  
 	 [ C o m m i s s i o n I s P e r c e n t ]   [ b i t ]   N O T   N U L L ,  
 	 [ C o m m i s s i o n O n T o t a l ]   [ b i t ]   N O T   N U L L ,  
 	 [ R e f e r r a l D a y s ]   [ s m a l l i n t ]   N O T   N U L L ,  
 	 [ R e f e r r a l P e r i o d I d ]   [ t i n y i n t ]   N O T   N U L L ,  
 	 [ G r o u p I d ]   [ i n t ]   N U L L ,  
   C O N S T R A I N T   [ a c _ A f f i l i a t e s _ P K ]   P R I M A R Y   K E Y   C L U S T E R E D    
 (  
 	 [ A f f i l i a t e I d ]   A S C  
 ) W I T H   ( P A D _ I N D E X     =   O F F ,   S T A T I S T I C S _ N O R E C O M P U T E     =   O F F ,   I G N O R E _ D U P _ K E Y   =   O F F ,   A L L O W _ R O W _ L O C K S     =   O N ,   A L L O W _ P A G E _ L O C K S     =   O N )   O N   [ P R I M A R Y ]  
 )   O N   [ P R I M A R Y ]  
 G O  
 S E T   A N S I _ P A D D I N G   O F F  
 G O  
 / * * * * * *   O b j e c t :     T a b l e   [ d b o ] . [ a c _ U s e r s ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 4   * * * * * * /  
 S E T   A N S I _ N U L L S   O N  
 G O  
 S E T   Q U O T E D _ I D E N T I F I E R   O N  
 G O  
 C R E A T E   T A B L E   [ d b o ] . [ a c _ U s e r s ] (  
 	 [ U s e r I d ]   [ i n t ]   I D E N T I T Y ( 1 , 1 )   N O T   N U L L ,  
 	 [ S t o r e I d ]   [ i n t ]   N O T   N U L L ,  
 	 [ U s e r N a m e ]   [ n v a r c h a r ] ( 2 5 5 )   N O T   N U L L ,  
 	 [ L o w e r e d U s e r N a m e ]   [ n v a r c h a r ] ( 2 5 5 )   N O T   N U L L ,  
 	 [ E m a i l ]   [ n v a r c h a r ] ( 2 5 5 )   N U L L ,  
 	 [ L o w e r e d E m a i l ]   [ n v a r c h a r ] ( 2 5 5 )   N U L L ,  
 	 [ A f f i l i a t e I d ]   [ i n t ]   N U L L ,  
 	 [ A f f i l i a t e R e f e r r a l D a t e ]   [ d a t e t i m e ]   N U L L ,  
 	 [ P r i m a r y A d d r e s s I d ]   [ i n t ]   N U L L ,  
 	 [ P r i m a r y W i s h l i s t I d ]   [ i n t ]   N U L L ,  
 	 [ P a y P a l I d ]   [ n v a r c h a r ] ( 5 0 )   N U L L ,  
 	 [ P a s s w o r d Q u e s t i o n ]   [ n v a r c h a r ] ( 2 5 5 )   N U L L ,  
 	 [ P a s s w o r d A n s w e r ]   [ n v a r c h a r ] ( 2 5 5 )   N U L L ,  
 	 [ I s A p p r o v e d ]   [ b i t ]   N O T   N U L L ,  
 	 [ I s A n o n y m o u s ]   [ b i t ]   N O T   N U L L ,  
 	 [ I s L o c k e d O u t ]   [ b i t ]   N O T   N U L L ,  
 	 [ C r e a t e D a t e ]   [ d a t e t i m e ]   N O T   N U L L ,  
 	 [ L a s t A c t i v i t y D a t e ]   [ d a t e t i m e ]   N U L L ,  
 	 [ L a s t L o g i n D a t e ]   [ d a t e t i m e ]   N U L L ,  
 	 [ L a s t P a s s w o r d C h a n g e d D a t e ]   [ d a t e t i m e ]   N U L L ,  
 	 [ L a s t L o c k o u t D a t e ]   [ d a t e t i m e ]   N U L L ,  
 	 [ F a i l e d P a s s w o r d A t t e m p t C o u n t ]   [ i n t ]   N O T   N U L L ,  
 	 [ F a i l e d P a s s w o r d A t t e m p t W i n d o w S t a r t ]   [ d a t e t i m e ]   N U L L ,  
 	 [ F a i l e d P a s s w o r d A n s w e r A t t e m p t C o u n t ]   [ i n t ]   N O T   N U L L ,  
 	 [ F a i l e d P a s s w o r d A n s w e r A t t e m p t W i n d o w S t a r t ]   [ d a t e t i m e ]   N U L L ,  
 	 [ C o m m e n t ]   [ n v a r c h a r ] ( m a x )   N U L L ,  
   C O N S T R A I N T   [ a c _ U s e r s _ P K ]   P R I M A R Y   K E Y   C L U S T E R E D    
 (  
 	 [ U s e r I d ]   A S C  
 ) W I T H   ( P A D _ I N D E X     =   O F F ,   S T A T I S T I C S _ N O R E C O M P U T E     =   O F F ,   I G N O R E _ D U P _ K E Y   =   O F F ,   A L L O W _ R O W _ L O C K S     =   O N ,   A L L O W _ P A G E _ L O C K S     =   O N )   O N   [ P R I M A R Y ]  
 )   O N   [ P R I M A R Y ]  
 G O  
 / * * * * * *   O b j e c t :     T a b l e   [ d b o ] . [ a c _ O r d e r S t a t u s e s ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 4   * * * * * * /  
 S E T   A N S I _ N U L L S   O N  
 G O  
 S E T   Q U O T E D _ I D E N T I F I E R   O N  
 G O  
 C R E A T E   T A B L E   [ d b o ] . [ a c _ O r d e r S t a t u s e s ] (  
 	 [ O r d e r S t a t u s I d ]   [ i n t ]   I D E N T I T Y ( 1 , 1 )   N O T   N U L L ,  
 	 [ S t o r e I d ]   [ i n t ]   N O T   N U L L ,  
 	 [ N a m e ]   [ n v a r c h a r ] ( 1 0 0 )   N O T   N U L L ,  
 	 [ D i s p l a y N a m e ]   [ n v a r c h a r ] ( 1 0 0 )   N U L L ,  
 	 [ I n v e n t o r y A c t i o n I d ]   [ s m a l l i n t ]   N O T   N U L L ,  
 	 [ I s A c t i v e ]   [ b i t ]   N O T   N U L L ,  
 	 [ I s V a l i d ]   [ b i t ]   N O T   N U L L ,  
 	 [ O r d e r B y ]   [ s m a l l i n t ]   N O T   N U L L ,  
   C O N S T R A I N T   [ a c _ O r d e r S t a t u s e s _ P K ]   P R I M A R Y   K E Y   C L U S T E R E D    
 (  
 	 [ O r d e r S t a t u s I d ]   A S C  
 ) W I T H   ( P A D _ I N D E X     =   O F F ,   S T A T I S T I C S _ N O R E C O M P U T E     =   O F F ,   I G N O R E _ D U P _ K E Y   =   O F F ,   A L L O W _ R O W _ L O C K S     =   O N ,   A L L O W _ P A G E _ L O C K S     =   O N )   O N   [ P R I M A R Y ]  
 )   O N   [ P R I M A R Y ]  
 G O  
 / * * * * * *   O b j e c t :     T a b l e   [ d b o ] . [ a c _ O r d e r s ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 4   * * * * * * /  
 S E T   A N S I _ N U L L S   O N  
 G O  
 S E T   Q U O T E D _ I D E N T I F I E R   O N  
 G O  
 S E T   A N S I _ P A D D I N G   O N  
 G O  
 C R E A T E   T A B L E   [ d b o ] . [ a c _ O r d e r s ] (  
 	 [ O r d e r I d ]   [ i n t ]   I D E N T I T Y ( 1 , 1 )   N O T   N U L L ,  
 	 [ O r d e r N u m b e r ]   [ i n t ]   N O T   N U L L ,  
 	 [ O r d e r D a t e ]   [ d a t e t i m e ]   N O T   N U L L ,  
 	 [ S t o r e I d ]   [ i n t ]   N O T   N U L L ,  
 	 [ U s e r I d ]   [ i n t ]   N U L L ,  
 	 [ A f f i l i a t e I d ]   [ i n t ]   N U L L ,  
 	 [ B i l l T o F i r s t N a m e ]   [ n v a r c h a r ] ( 3 0 )   N U L L ,  
 	 [ B i l l T o L a s t N a m e ]   [ n v a r c h a r ] ( 5 0 )   N U L L ,  
 	 [ B i l l T o C o m p a n y ]   [ n v a r c h a r ] ( 5 0 )   N U L L ,  
 	 [ B i l l T o A d d r e s s 1 ]   [ n v a r c h a r ] ( 2 5 5 )   N U L L ,  
 	 [ B i l l T o A d d r e s s 2 ]   [ n v a r c h a r ] ( 2 5 5 )   N U L L ,  
 	 [ B i l l T o C i t y ]   [ n v a r c h a r ] ( 5 0 )   N U L L ,  
 	 [ B i l l T o P r o v i n c e ]   [ n v a r c h a r ] ( 5 0 )   N U L L ,  
 	 [ B i l l T o P o s t a l C o d e ]   [ n v a r c h a r ] ( 1 5 )   N U L L ,  
 	 [ B i l l T o C o u n t r y C o d e ]   [ n c h a r ] ( 2 )   N U L L ,  
 	 [ B i l l T o P h o n e ]   [ n v a r c h a r ] ( 5 0 )   N U L L ,  
 	 [ B i l l T o F a x ]   [ n v a r c h a r ] ( 5 0 )   N U L L ,  
 	 [ B i l l T o E m a i l ]   [ n v a r c h a r ] ( 2 5 5 )   N U L L ,  
 	 [ P r o d u c t S u b t o t a l ]   [ d e c i m a l ] ( 1 2 ,   4 )   N O T   N U L L ,  
 	 [ T o t a l C h a r g e s ]   [ d e c i m a l ] ( 1 2 ,   4 )   N O T   N U L L ,  
 	 [ T o t a l P a y m e n t s ]   [ d e c i m a l ] ( 1 2 ,   4 )   N O T   N U L L ,  
 	 [ O r d e r S t a t u s I d ]   [ i n t ]   N O T   N U L L ,  
 	 [ E x p o r t e d ]   [ b i t ]   N O T   N U L L ,  
 	 [ R e m o t e I P ]   [ v a r c h a r ] ( 3 9 )   N U L L ,  
 	 [ R e f e r r e r ]   [ n v a r c h a r ] ( 2 5 5 )   N U L L ,  
 	 [ G o o g l e O r d e r N u m b e r ]   [ n v a r c h a r ] ( 5 0 )   N U L L ,  
 	 [ P a y m e n t S t a t u s I d ]   [ t i n y i n t ]   N O T   N U L L ,  
 	 [ S h i p m e n t S t a t u s I d ]   [ t i n y i n t ]   N O T   N U L L ,  
   C O N S T R A I N T   [ a c _ O r d e r s _ P K ]   P R I M A R Y   K E Y   C L U S T E R E D    
 (  
 	 [ O r d e r I d ]   A S C  
 ) W I T H   ( P A D _ I N D E X     =   O F F ,   S T A T I S T I C S _ N O R E C O M P U T E     =   O F F ,   I G N O R E _ D U P _ K E Y   =   O F F ,   A L L O W _ R O W _ L O C K S     =   O N ,   A L L O W _ P A G E _ L O C K S     =   O N )   O N   [ P R I M A R Y ]  
 )   O N   [ P R I M A R Y ]  
 G O  
 S E T   A N S I _ P A D D I N G   O F F  
 G O  
 / * * * * * *   O b j e c t :     T a b l e   [ d b o ] . [ a c _ S h i p G a t e w a y s ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 4   * * * * * * /  
 S E T   A N S I _ N U L L S   O N  
 G O  
 S E T   Q U O T E D _ I D E N T I F I E R   O N  
 G O  
 S E T   A N S I _ P A D D I N G   O N  
 G O  
 C R E A T E   T A B L E   [ d b o ] . [ a c _ S h i p G a t e w a y s ] (  
 	 [ S h i p G a t e w a y I d ]   [ i n t ]   I D E N T I T Y ( 1 , 1 )   N O T   N U L L ,  
 	 [ S t o r e I d ]   [ i n t ]   N O T   N U L L ,  
 	 [ N a m e ]   [ n v a r c h a r ] ( 1 0 0 )   N O T   N U L L ,  
 	 [ C l a s s I d ]   [ v a r c h a r ] ( 2 5 5 )   N O T   N U L L ,  
 	 [ C o n f i g D a t a ]   [ n v a r c h a r ] ( m a x )   N U L L ,  
 	 [ R e C r y p t ]   [ b i t ]   N O T   N U L L ,  
 	 [ E n a b l e d ]   [ b i t ]   N O T   N U L L ,  
   C O N S T R A I N T   [ a c _ S h i p G a t e w a y s _ P K ]   P R I M A R Y   K E Y   C L U S T E R E D    
 (  
 	 [ S h i p G a t e w a y I d ]   A S C  
 ) W I T H   ( P A D _ I N D E X     =   O F F ,   S T A T I S T I C S _ N O R E C O M P U T E     =   O F F ,   I G N O R E _ D U P _ K E Y   =   O F F ,   A L L O W _ R O W _ L O C K S     =   O N ,   A L L O W _ P A G E _ L O C K S     =   O N )   O N   [ P R I M A R Y ]  
 )   O N   [ P R I M A R Y ]  
 G O  
 S E T   A N S I _ P A D D I N G   O F F  
 G O  
 / * * * * * *   O b j e c t :     T a b l e   [ d b o ] . [ a c _ T a x C o d e s ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 4   * * * * * * /  
 S E T   A N S I _ N U L L S   O N  
 G O  
 S E T   Q U O T E D _ I D E N T I F I E R   O N  
 G O  
 C R E A T E   T A B L E   [ d b o ] . [ a c _ T a x C o d e s ] (  
 	 [ T a x C o d e I d ]   [ i n t ]   I D E N T I T Y ( 1 , 1 )   N O T   N U L L ,  
 	 [ S t o r e I d ]   [ i n t ]   N O T   N U L L ,  
 	 [ N a m e ]   [ n v a r c h a r ] ( 1 0 0 )   N O T   N U L L ,  
   C O N S T R A I N T   [ a c _ T a x C o d e s _ P K ]   P R I M A R Y   K E Y   C L U S T E R E D    
 (  
 	 [ T a x C o d e I d ]   A S C  
 ) W I T H   ( P A D _ I N D E X     =   O F F ,   S T A T I S T I C S _ N O R E C O M P U T E     =   O F F ,   I G N O R E _ D U P _ K E Y   =   O F F ,   A L L O W _ R O W _ L O C K S     =   O N ,   A L L O W _ P A G E _ L O C K S     =   O N )   O N   [ P R I M A R Y ]  
 )   O N   [ P R I M A R Y ]  
 G O  
 / * * * * * *   O b j e c t :     T a b l e   [ d b o ] . [ a c _ S h i p M e t h o d s ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 4   * * * * * * /  
 S E T   A N S I _ N U L L S   O N  
 G O  
 S E T   Q U O T E D _ I D E N T I F I E R   O N  
 G O  
 C R E A T E   T A B L E   [ d b o ] . [ a c _ S h i p M e t h o d s ] (  
 	 [ S h i p M e t h o d I d ]   [ i n t ]   I D E N T I T Y ( 1 , 1 )   N O T   N U L L ,  
 	 [ S t o r e I d ]   [ i n t ]   N O T   N U L L ,  
 	 [ S h i p M e t h o d T y p e I d ]   [ s m a l l i n t ]   N O T   N U L L ,  
 	 [ N a m e ]   [ n v a r c h a r ] ( 2 5 5 )   N O T   N U L L ,  
 	 [ S u r c h a r g e ]   [ d e c i m a l ] ( 1 2 ,   4 )   N O T   N U L L ,  
 	 [ S h i p G a t e w a y I d ]   [ i n t ]   N U L L ,  
 	 [ S e r v i c e C o d e ]   [ n v a r c h a r ] ( 2 5 5 )   N U L L ,  
 	 [ M i n P u r c h a s e ]   [ d e c i m a l ] ( 1 2 ,   4 )   N O T   N U L L ,  
 	 [ S u r c h a r g e I s V i s i b l e ]   [ b i t ]   N O T   N U L L ,  
 	 [ S u r c h a r g e I s P e r c e n t ]   [ b i t ]   N U L L ,  
 	 [ T a x C o d e I d ]   [ i n t ]   N U L L ,  
 	 [ O r d e r B y ]   [ s m a l l i n t ]   N O T   N U L L ,  
 	 [ S u r c h a r g e T a x C o d e I d ]   [ i n t ]   N U L L ,  
   C O N S T R A I N T   [ a c _ S h i p M e t h o d s _ P K ]   P R I M A R Y   K E Y   C L U S T E R E D    
 (  
 	 [ S h i p M e t h o d I d ]   A S C  
 ) W I T H   ( P A D _ I N D E X     =   O F F ,   S T A T I S T I C S _ N O R E C O M P U T E     =   O F F ,   I G N O R E _ D U P _ K E Y   =   O F F ,   A L L O W _ R O W _ L O C K S     =   O N ,   A L L O W _ P A G E _ L O C K S     =   O N )   O N   [ P R I M A R Y ]  
 )   O N   [ P R I M A R Y ]  
 G O  
 / * * * * * *   O b j e c t :     T a b l e   [ d b o ] . [ a c _ C o u n t r i e s ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 4   * * * * * * /  
 S E T   A N S I _ N U L L S   O N  
 G O  
 S E T   Q U O T E D _ I D E N T I F I E R   O N  
 G O  
 S E T   A N S I _ P A D D I N G   O N  
 G O  
 C R E A T E   T A B L E   [ d b o ] . [ a c _ C o u n t r i e s ] (  
 	 [ C o u n t r y C o d e ]   [ c h a r ] ( 2 )   N O T   N U L L ,  
 	 [ S t o r e I d ]   [ i n t ]   N O T   N U L L ,  
 	 [ N a m e ]   [ n v a r c h a r ] ( 1 0 0 )   N O T   N U L L ,  
 	 [ A d d r e s s F o r m a t ]   [ n v a r c h a r ] ( 2 5 5 )   N U L L ,  
   C O N S T R A I N T   [ a c _ C o u n t r i e s _ P K ]   P R I M A R Y   K E Y   C L U S T E R E D    
 (  
 	 [ C o u n t r y C o d e ]   A S C  
 ) W I T H   ( P A D _ I N D E X     =   O F F ,   S T A T I S T I C S _ N O R E C O M P U T E     =   O F F ,   I G N O R E _ D U P _ K E Y   =   O F F ,   A L L O W _ R O W _ L O C K S     =   O N ,   A L L O W _ P A G E _ L O C K S     =   O N )   O N   [ P R I M A R Y ]  
 )   O N   [ P R I M A R Y ]  
 G O  
 S E T   A N S I _ P A D D I N G   O F F  
 G O  
 / * * * * * *   O b j e c t :     T a b l e   [ d b o ] . [ a c _ W a r e h o u s e s ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 4   * * * * * * /  
 S E T   A N S I _ N U L L S   O N  
 G O  
 S E T   Q U O T E D _ I D E N T I F I E R   O N  
 G O  
 S E T   A N S I _ P A D D I N G   O N  
 G O  
 C R E A T E   T A B L E   [ d b o ] . [ a c _ W a r e h o u s e s ] (  
 	 [ W a r e h o u s e I d ]   [ i n t ]   I D E N T I T Y ( 1 , 1 )   N O T   N U L L ,  
 	 [ S t o r e I d ]   [ i n t ]   N O T   N U L L ,  
 	 [ N a m e ]   [ n v a r c h a r ] ( 5 0 )   N O T   N U L L ,  
 	 [ A d d r e s s 1 ]   [ n v a r c h a r ] ( 2 5 5 )   N U L L ,  
 	 [ A d d r e s s 2 ]   [ n v a r c h a r ] ( 2 5 5 )   N U L L ,  
 	 [ C i t y ]   [ n v a r c h a r ] ( 5 0 )   N U L L ,  
 	 [ P r o v i n c e ]   [ n v a r c h a r ] ( 5 0 )   N U L L ,  
 	 [ P o s t a l C o d e ]   [ n v a r c h a r ] ( 1 5 )   N U L L ,  
 	 [ C o u n t r y C o d e ]   [ c h a r ] ( 2 )   N U L L ,  
 	 [ P h o n e ]   [ n v a r c h a r ] ( 5 0 )   N U L L ,  
 	 [ F a x ]   [ n v a r c h a r ] ( 5 0 )   N U L L ,  
 	 [ E m a i l ]   [ n v a r c h a r ] ( 2 5 5 )   N U L L ,  
   C O N S T R A I N T   [ a c _ W a r e h o u s e s _ P K ]   P R I M A R Y   K E Y   C L U S T E R E D    
 (  
 	 [ W a r e h o u s e I d ]   A S C  
 ) W I T H   ( P A D _ I N D E X     =   O F F ,   S T A T I S T I C S _ N O R E C O M P U T E     =   O F F ,   I G N O R E _ D U P _ K E Y   =   O F F ,   A L L O W _ R O W _ L O C K S     =   O N ,   A L L O W _ P A G E _ L O C K S     =   O N )   O N   [ P R I M A R Y ]  
 )   O N   [ P R I M A R Y ]  
 G O  
 S E T   A N S I _ P A D D I N G   O F F  
 G O  
 / * * * * * *   O b j e c t :     T a b l e   [ d b o ] . [ a c _ O r d e r S h i p m e n t s ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 4   * * * * * * /  
 S E T   A N S I _ N U L L S   O N  
 G O  
 S E T   Q U O T E D _ I D E N T I F I E R   O N  
 G O  
 C R E A T E   T A B L E   [ d b o ] . [ a c _ O r d e r S h i p m e n t s ] (  
 	 [ O r d e r S h i p m e n t I d ]   [ i n t ]   I D E N T I T Y ( 1 , 1 )   N O T   N U L L ,  
 	 [ O r d e r I d ]   [ i n t ]   N O T   N U L L ,  
 	 [ W a r e h o u s e I d ]   [ i n t ]   N U L L ,  
 	 [ S h i p T o F i r s t N a m e ]   [ n v a r c h a r ] ( 3 0 )   N U L L ,  
 	 [ S h i p T o L a s t N a m e ]   [ n v a r c h a r ] ( 5 0 )   N U L L ,  
 	 [ S h i p T o C o m p a n y ]   [ n v a r c h a r ] ( 5 0 )   N U L L ,  
 	 [ S h i p T o A d d r e s s 1 ]   [ n v a r c h a r ] ( 2 5 5 )   N U L L ,  
 	 [ S h i p T o A d d r e s s 2 ]   [ n v a r c h a r ] ( 2 5 5 )   N U L L ,  
 	 [ S h i p T o C i t y ]   [ n v a r c h a r ] ( 5 0 )   N U L L ,  
 	 [ S h i p T o P r o v i n c e ]   [ n v a r c h a r ] ( 5 0 )   N U L L ,  
 	 [ S h i p T o P o s t a l C o d e ]   [ n v a r c h a r ] ( 1 5 )   N U L L ,  
 	 [ S h i p T o C o u n t r y C o d e ]   [ n c h a r ] ( 2 )   N U L L ,  
 	 [ S h i p T o P h o n e ]   [ n v a r c h a r ] ( 5 0 )   N U L L ,  
 	 [ S h i p T o F a x ]   [ n v a r c h a r ] ( 5 0 )   N U L L ,  
 	 [ S h i p T o E m a i l ]   [ n v a r c h a r ] ( 2 5 5 )   N U L L ,  
 	 [ S h i p T o R e s i d e n c e ]   [ b i t ]   N U L L ,  
 	 [ S h i p M e t h o d I d ]   [ i n t ]   N U L L ,  
 	 [ S h i p M e t h o d N a m e ]   [ n v a r c h a r ] ( 2 5 5 )   N U L L ,  
 	 [ S h i p M e s s a g e ]   [ n v a r c h a r ] ( 2 5 5 )   N U L L ,  
 	 [ S h i p D a t e ]   [ d a t e t i m e ]   N U L L ,  
   C O N S T R A I N T   [ a c _ O r d e r S h i p m e n t s _ P K ]   P R I M A R Y   K E Y   C L U S T E R E D    
 (  
 	 [ O r d e r S h i p m e n t I d ]   A S C  
 ) W I T H   ( P A D _ I N D E X     =   O F F ,   S T A T I S T I C S _ N O R E C O M P U T E     =   O F F ,   I G N O R E _ D U P _ K E Y   =   O F F ,   A L L O W _ R O W _ L O C K S     =   O N ,   A L L O W _ P A G E _ L O C K S     =   O N )   O N   [ P R I M A R Y ]  
 )   O N   [ P R I M A R Y ]  
 G O  
 / * * * * * *   O b j e c t :     T a b l e   [ d b o ] . [ a c _ W i s h l i s t s ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 4   * * * * * * /  
 S E T   A N S I _ N U L L S   O N  
 G O  
 S E T   Q U O T E D _ I D E N T I F I E R   O N  
 G O  
 C R E A T E   T A B L E   [ d b o ] . [ a c _ W i s h l i s t s ] (  
 	 [ W i s h l i s t I d ]   [ i n t ]   I D E N T I T Y ( 1 , 1 )   N O T   N U L L ,  
 	 [ U s e r I d ]   [ i n t ]   N O T   N U L L ,  
 	 [ N a m e ]   [ n v a r c h a r ] ( 5 0 )   N U L L ,  
 	 [ V i e w P a s s w o r d ]   [ n v a r c h a r ] ( 5 0 )   N U L L ,  
   C O N S T R A I N T   [ a c _ W i s h l i s t s _ P K ]   P R I M A R Y   K E Y   C L U S T E R E D    
 (  
 	 [ W i s h l i s t I d ]   A S C  
 ) W I T H   ( P A D _ I N D E X     =   O F F ,   S T A T I S T I C S _ N O R E C O M P U T E     =   O F F ,   I G N O R E _ D U P _ K E Y   =   O F F ,   A L L O W _ R O W _ L O C K S     =   O N ,   A L L O W _ P A G E _ L O C K S     =   O N )   O N   [ P R I M A R Y ]  
 )   O N   [ P R I M A R Y ]  
 G O  
 / * * * * * *   O b j e c t :     T a b l e   [ d b o ] . [ a c _ V e n d o r s ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 4   * * * * * * /  
 S E T   A N S I _ N U L L S   O N  
 G O  
 S E T   Q U O T E D _ I D E N T I F I E R   O N  
 G O  
 C R E A T E   T A B L E   [ d b o ] . [ a c _ V e n d o r s ] (  
 	 [ V e n d o r I d ]   [ i n t ]   I D E N T I T Y ( 1 , 1 )   N O T   N U L L ,  
 	 [ S t o r e I d ]   [ i n t ]   N O T   N U L L ,  
 	 [ N a m e ]   [ n v a r c h a r ] ( 1 0 0 )   N O T   N U L L ,  
 	 [ E m a i l ]   [ n v a r c h a r ] ( 2 5 5 )   N U L L ,  
   C O N S T R A I N T   [ a c _ V e n d o r s _ P K ]   P R I M A R Y   K E Y   C L U S T E R E D    
 (  
 	 [ V e n d o r I d ]   A S C  
 ) W I T H   ( P A D _ I N D E X     =   O F F ,   S T A T I S T I C S _ N O R E C O M P U T E     =   O F F ,   I G N O R E _ D U P _ K E Y   =   O F F ,   A L L O W _ R O W _ L O C K S     =   O N ,   A L L O W _ P A G E _ L O C K S     =   O N )   O N   [ P R I M A R Y ]  
 )   O N   [ P R I M A R Y ]  
 G O  
 / * * * * * *   O b j e c t :     T a b l e   [ d b o ] . [ a c _ W r a p G r o u p s ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 4   * * * * * * /  
 S E T   A N S I _ N U L L S   O N  
 G O  
 S E T   Q U O T E D _ I D E N T I F I E R   O N  
 G O  
 C R E A T E   T A B L E   [ d b o ] . [ a c _ W r a p G r o u p s ] (  
 	 [ W r a p G r o u p I d ]   [ i n t ]   I D E N T I T Y ( 1 , 1 )   N O T   N U L L ,  
 	 [ S t o r e I d ]   [ i n t ]   N O T   N U L L ,  
 	 [ N a m e ]   [ n v a r c h a r ] ( 5 0 )   N O T   N U L L ,  
   C O N S T R A I N T   [ a c _ W r a p G r o u p s _ P K ]   P R I M A R Y   K E Y   C L U S T E R E D    
 (  
 	 [ W r a p G r o u p I d ]   A S C  
 ) W I T H   ( P A D _ I N D E X     =   O F F ,   S T A T I S T I C S _ N O R E C O M P U T E     =   O F F ,   I G N O R E _ D U P _ K E Y   =   O F F ,   A L L O W _ R O W _ L O C K S     =   O N ,   A L L O W _ P A G E _ L O C K S     =   O N )   O N   [ P R I M A R Y ]  
 )   O N   [ P R I M A R Y ]  
 G O  
 / * * * * * *   O b j e c t :     T a b l e   [ d b o ] . [ a c _ M a n u f a c t u r e r s ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 4   * * * * * * /  
 S E T   A N S I _ N U L L S   O N  
 G O  
 S E T   Q U O T E D _ I D E N T I F I E R   O N  
 G O  
 C R E A T E   T A B L E   [ d b o ] . [ a c _ M a n u f a c t u r e r s ] (  
 	 [ M a n u f a c t u r e r I d ]   [ i n t ]   I D E N T I T Y ( 1 , 1 )   N O T   N U L L ,  
 	 [ S t o r e I d ]   [ i n t ]   N O T   N U L L ,  
 	 [ N a m e ]   [ n v a r c h a r ] ( 2 5 5 )   N O T   N U L L ,  
   C O N S T R A I N T   [ a c _ M a n u f a c t u r e r s _ P K ]   P R I M A R Y   K E Y   C L U S T E R E D    
 (  
 	 [ M a n u f a c t u r e r I d ]   A S C  
 ) W I T H   ( P A D _ I N D E X     =   O F F ,   S T A T I S T I C S _ N O R E C O M P U T E     =   O F F ,   I G N O R E _ D U P _ K E Y   =   O F F ,   A L L O W _ R O W _ L O C K S     =   O N ,   A L L O W _ P A G E _ L O C K S     =   O N )   O N   [ P R I M A R Y ]  
 )   O N   [ P R I M A R Y ]  
 G O  
 / * * * * * *   O b j e c t :     T a b l e   [ d b o ] . [ a c _ P r o d u c t s ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 4   * * * * * * /  
 S E T   A N S I _ N U L L S   O N  
 G O  
 S E T   Q U O T E D _ I D E N T I F I E R   O N  
 G O  
 S E T   A N S I _ P A D D I N G   O N  
 G O  
 C R E A T E   T A B L E   [ d b o ] . [ a c _ P r o d u c t s ] (  
 	 [ P r o d u c t I d ]   [ i n t ]   I D E N T I T Y ( 1 , 1 )   N O T   N U L L ,  
 	 [ G U I D ]   [ u n i q u e i d e n t i f i e r ]   N O T   N U L L ,  
 	 [ S t o r e I d ]   [ i n t ]   N O T   N U L L ,  
 	 [ N a m e ]   [ n v a r c h a r ] ( 2 5 5 )   N O T   N U L L ,  
 	 [ P r i c e ]   [ d e c i m a l ] ( 1 2 ,   4 )   N O T   N U L L ,  
 	 [ C o s t O f G o o d s ]   [ d e c i m a l ] ( 1 2 ,   4 )   N O T   N U L L ,  
 	 [ M S R P ]   [ d e c i m a l ] ( 1 2 ,   4 )   N O T   N U L L ,  
 	 [ W e i g h t ]   [ d e c i m a l ] ( 1 2 ,   4 )   N O T   N U L L ,  
 	 [ L e n g t h ]   [ d e c i m a l ] ( 1 2 ,   4 )   N O T   N U L L ,  
 	 [ W i d t h ]   [ d e c i m a l ] ( 1 2 ,   4 )   N O T   N U L L ,  
 	 [ H e i g h t ]   [ d e c i m a l ] ( 1 2 ,   4 )   N O T   N U L L ,  
 	 [ M a n u f a c t u r e r I d ]   [ i n t ]   N U L L ,  
 	 [ S k u ]   [ n v a r c h a r ] ( 4 0 )   N U L L ,  
 	 [ M o d e l N u m b e r ]   [ n v a r c h a r ] ( 4 0 )   N U L L ,  
 	 [ D i s p l a y P a g e ]   [ v a r c h a r ] ( 1 0 0 )   N U L L ,  
 	 [ T a x C o d e I d ]   [ i n t ]   N U L L ,  
 	 [ S h i p p a b l e I d ]   [ t i n y i n t ]   N O T   N U L L ,  
 	 [ W a r e h o u s e I d ]   [ i n t ]   N U L L ,  
 	 [ I n v e n t o r y M o d e I d ]   [ t i n y i n t ]   N O T   N U L L ,  
 	 [ I n S t o c k ]   [ i n t ]   N O T   N U L L ,  
 	 [ I n S t o c k W a r n i n g L e v e l ]   [ i n t ]   N O T   N U L L ,  
 	 [ T h u m b n a i l U r l ]   [ v a r c h a r ] ( 2 5 5 )   N U L L ,  
 	 [ T h u m b n a i l A l t T e x t ]   [ n v a r c h a r ] ( 2 5 5 )   N U L L ,  
 	 [ I m a g e U r l ]   [ v a r c h a r ] ( 2 5 5 )   N U L L ,  
 	 [ I m a g e A l t T e x t ]   [ n v a r c h a r ] ( 2 5 5 )   N U L L ,  
 	 [ S u m m a r y ]   [ n v a r c h a r ] ( m a x )   N U L L ,  
 	 [ D e s c r i p t i o n ]   [ n v a r c h a r ] ( m a x )   N U L L ,  
 	 [ E x t e n d e d D e s c r i p t i o n ]   [ n v a r c h a r ] ( m a x )   N U L L ,  
 	 [ V e n d o r I d ]   [ i n t ]   N U L L ,  
 	 [ C r e a t e d D a t e ]   [ d a t e t i m e ]   N O T   N U L L ,  
 	 [ L a s t M o d i f i e d D a t e ]   [ d a t e t i m e ]   N O T   N U L L ,  
 	 [ I s F e a t u r e d ]   [ b i t ]   N O T   N U L L ,  
 	 [ I s P r o h i b i t e d ]   [ b i t ]   N O T   N U L L ,  
 	 [ A l l o w R e v i e w s ]   [ b i t ]   N O T   N U L L ,  
 	 [ A l l o w B a c k o r d e r ]   [ b i t ]   N O T   N U L L ,  
 	 [ W r a p G r o u p I d ]   [ i n t ]   N U L L ,  
 	 [ E x c l u d e F r o m F e e d ]   [ b i t ]   N O T   N U L L ,  
 	 [ H t m l H e a d ]   [ n v a r c h a r ] ( m a x )   N U L L ,  
 	 [ D i s a b l e P u r c h a s e ]   [ b i t ]   N O T   N U L L ,  
 	 [ M i n Q u a n t i t y ]   [ s m a l l i n t ]   N O T   N U L L ,  
 	 [ M a x Q u a n t i t y ]   [ s m a l l i n t ]   N O T   N U L L ,  
 	 [ V i s i b i l i t y I d ]   [ t i n y i n t ]   N O T   N U L L ,  
 	 [ T h e m e ]   [ v a r c h a r ] ( 1 0 0 )   N U L L ,  
 	 [ I c o n U r l ]   [ v a r c h a r ] ( 2 5 5 )   N U L L ,  
 	 [ I c o n A l t T e x t ]   [ n v a r c h a r ] ( 2 5 5 )   N U L L ,  
 	 [ I s G i f t C e r t i f i c a t e ]   [ b i t ]   N O T   N U L L ,  
 	 [ U s e V a r i a b l e P r i c e ]   [ b i t ]   N O T   N U L L ,  
 	 [ M i n i m u m P r i c e ]   [ d e c i m a l ] ( 1 0 ,   2 )   N U L L ,  
 	 [ M a x i m u m P r i c e ]   [ d e c i m a l ] ( 1 0 ,   2 )   N U L L ,  
 	 [ S e a r c h K e y w o r d s ]   [ n v a r c h a r ] ( m a x )   N U L L ,  
 	 [ H i d e P r i c e ]   [ b i t ]   N O T   N U L L ,  
   C O N S T R A I N T   [ a c _ P r o d u c t s _ P K ]   P R I M A R Y   K E Y   C L U S T E R E D    
 (  
 	 [ P r o d u c t I d ]   A S C  
 ) W I T H   ( P A D _ I N D E X     =   O F F ,   S T A T I S T I C S _ N O R E C O M P U T E     =   O F F ,   I G N O R E _ D U P _ K E Y   =   O F F ,   A L L O W _ R O W _ L O C K S     =   O N ,   A L L O W _ P A G E _ L O C K S     =   O N )   O N   [ P R I M A R Y ]  
 )   O N   [ P R I M A R Y ]  
 G O  
 S E T   A N S I _ P A D D I N G   O F F  
 G O  
 / * * * * * *   O b j e c t :     T a b l e   [ d b o ] . [ a c _ W i s h l i s t I t e m s ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 4   * * * * * * /  
 S E T   A N S I _ N U L L S   O N  
 G O  
 S E T   Q U O T E D _ I D E N T I F I E R   O N  
 G O  
 S E T   A N S I _ P A D D I N G   O N  
 G O  
 C R E A T E   T A B L E   [ d b o ] . [ a c _ W i s h l i s t I t e m s ] (  
 	 [ W i s h l i s t I t e m I d ]   [ i n t ]   I D E N T I T Y ( 1 , 1 )   N O T   N U L L ,  
 	 [ W i s h l i s t I d ]   [ i n t ]   N O T   N U L L ,  
 	 [ P r o d u c t I d ]   [ i n t ]   N O T   N U L L ,  
 	 [ O p t i o n L i s t ]   [ v a r c h a r ] ( 2 5 5 )   N U L L ,  
 	 [ P r i c e ]   [ d e c i m a l ] ( 1 2 ,   4 )   N U L L ,  
 	 [ L i n e M e s s a g e ]   [ n v a r c h a r ] ( 2 5 5 )   N U L L ,  
 	 [ C r e a t e d D a t e ]   [ d a t e t i m e ]   N O T   N U L L ,  
 	 [ L a s t M o d i f i e d D a t e ]   [ d a t e t i m e ]   N O T   N U L L ,  
 	 [ D e s i r e d ]   [ s m a l l i n t ]   N O T   N U L L ,  
 	 [ R e c e i v e d ]   [ s m a l l i n t ]   N O T   N U L L ,  
 	 [ P r i o r i t y ]   [ t i n y i n t ]   N O T   N U L L ,  
 	 [ C o m m e n t ]   [ n v a r c h a r ] ( m a x )   N U L L ,  
 	 [ K i t L i s t ]   [ v a r c h a r ] ( 2 5 5 )   N U L L ,  
   C O N S T R A I N T   [ a c _ W i s h l i s t I t e m s _ P K ]   P R I M A R Y   K E Y   C L U S T E R E D    
 (  
 	 [ W i s h l i s t I t e m I d ]   A S C  
 ) W I T H   ( P A D _ I N D E X     =   O F F ,   S T A T I S T I C S _ N O R E C O M P U T E     =   O F F ,   I G N O R E _ D U P _ K E Y   =   O F F ,   A L L O W _ R O W _ L O C K S     =   O N ,   A L L O W _ P A G E _ L O C K S     =   O N )   O N   [ P R I M A R Y ]  
 )   O N   [ P R I M A R Y ]  
 G O  
 S E T   A N S I _ P A D D I N G   O F F  
 G O  
 / * * * * * *   O b j e c t :     T a b l e   [ d b o ] . [ a c _ W r a p S t y l e s ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 4   * * * * * * /  
 S E T   A N S I _ N U L L S   O N  
 G O  
 S E T   Q U O T E D _ I D E N T I F I E R   O N  
 G O  
 S E T   A N S I _ P A D D I N G   O N  
 G O  
 C R E A T E   T A B L E   [ d b o ] . [ a c _ W r a p S t y l e s ] (  
 	 [ W r a p S t y l e I d ]   [ i n t ]   I D E N T I T Y ( 1 , 1 )   N O T   N U L L ,  
 	 [ W r a p G r o u p I d ]   [ i n t ]   N O T   N U L L ,  
 	 [ N a m e ]   [ n v a r c h a r ] ( 5 0 )   N O T   N U L L ,  
 	 [ T a x C o d e I d ]   [ i n t ]   N U L L ,  
 	 [ P r i c e ]   [ d e c i m a l ] ( 1 2 ,   4 )   N O T   N U L L ,  
 	 [ T h u m b n a i l U r l ]   [ v a r c h a r ] ( 2 5 5 )   N U L L ,  
 	 [ I m a g e U r l ]   [ v a r c h a r ] ( 2 5 5 )   N U L L ,  
 	 [ O r d e r B y ]   [ s m a l l i n t ]   N O T   N U L L ,  
   C O N S T R A I N T   [ a c _ W r a p S t y l e s _ P K ]   P R I M A R Y   K E Y   C L U S T E R E D    
 (  
 	 [ W r a p S t y l e I d ]   A S C  
 ) W I T H   ( P A D _ I N D E X     =   O F F ,   S T A T I S T I C S _ N O R E C O M P U T E     =   O F F ,   I G N O R E _ D U P _ K E Y   =   O F F ,   A L L O W _ R O W _ L O C K S     =   O N ,   A L L O W _ P A G E _ L O C K S     =   O N )   O N   [ P R I M A R Y ]  
 )   O N   [ P R I M A R Y ]  
 G O  
 S E T   A N S I _ P A D D I N G   O F F  
 G O  
 / * * * * * *   O b j e c t :     T a b l e   [ d b o ] . [ a c _ O r d e r I t e m s ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 4   * * * * * * /  
 S E T   A N S I _ N U L L S   O N  
 G O  
 S E T   Q U O T E D _ I D E N T I F I E R   O N  
 G O  
 S E T   A N S I _ P A D D I N G   O N  
 G O  
 C R E A T E   T A B L E   [ d b o ] . [ a c _ O r d e r I t e m s ] (  
 	 [ O r d e r I t e m I d ]   [ i n t ]   I D E N T I T Y ( 1 , 1 )   N O T   N U L L ,  
 	 [ O r d e r I d ]   [ i n t ]   N O T   N U L L ,  
 	 [ P a r e n t I t e m I d ]   [ i n t ]   N U L L ,  
 	 [ O r d e r I t e m T y p e I d ]   [ s m a l l i n t ]   N O T   N U L L ,  
 	 [ S h i p p a b l e I d ]   [ t i n y i n t ]   N O T   N U L L ,  
 	 [ O r d e r S h i p m e n t I d ]   [ i n t ]   N U L L ,  
 	 [ P r o d u c t I d ]   [ i n t ]   N U L L ,  
 	 [ N a m e ]   [ n v a r c h a r ] ( 2 5 5 )   N O T   N U L L ,  
 	 [ O p t i o n L i s t ]   [ v a r c h a r ] ( 2 5 5 )   N U L L ,  
 	 [ V a r i a n t N a m e ]   [ n v a r c h a r ] ( 2 5 5 )   N U L L ,  
 	 [ S k u ]   [ n v a r c h a r ] ( 1 0 0 )   N U L L ,  
 	 [ P r i c e ]   [ d e c i m a l ] ( 1 2 ,   4 )   N O T   N U L L ,  
 	 [ W e i g h t ]   [ d e c i m a l ] ( 1 2 ,   4 )   N O T   N U L L ,  
 	 [ C o s t O f G o o d s ]   [ d e c i m a l ] ( 1 2 ,   4 )   N O T   N U L L ,  
 	 [ Q u a n t i t y ]   [ s m a l l i n t ]   N O T   N U L L ,  
 	 [ L i n e M e s s a g e ]   [ n v a r c h a r ] ( 2 5 5 )   N U L L ,  
 	 [ O r d e r B y ]   [ s m a l l i n t ]   N O T   N U L L ,  
 	 [ G i f t M e s s a g e ]   [ n v a r c h a r ] ( 2 5 5 )   N U L L ,  
 	 [ T a x C o d e I d ]   [ i n t ]   N U L L ,  
 	 [ W r a p S t y l e I d ]   [ i n t ]   N U L L ,  
 	 [ W i s h l i s t I t e m I d ]   [ i n t ]   N U L L ,  
 	 [ I n v e n t o r y S t a t u s I d ]   [ s m a l l i n t ]   N O T   N U L L ,  
 	 [ T a x R a t e ]   [ d e c i m a l ] ( 1 2 ,   4 )   N O T   N U L L ,  
 	 [ T a x A m o u n t ]   [ d e c i m a l ] ( 1 2 ,   4 )   N O T   N U L L ,  
 	 [ K i t L i s t ]   [ v a r c h a r ] ( 2 5 5 )   N U L L ,  
 	 [ C u s t o m F i e l d s ]   [ n v a r c h a r ] ( m a x )   N U L L ,  
   C O N S T R A I N T   [ a c _ O r d e r I t e m s _ P K ]   P R I M A R Y   K E Y   C L U S T E R E D    
 (  
 	 [ O r d e r I t e m I d ]   A S C  
 ) W I T H   ( P A D _ I N D E X     =   O F F ,   S T A T I S T I C S _ N O R E C O M P U T E     =   O F F ,   I G N O R E _ D U P _ K E Y   =   O F F ,   A L L O W _ R O W _ L O C K S     =   O N ,   A L L O W _ P A G E _ L O C K S     =   O N )   O N   [ P R I M A R Y ]  
 )   O N   [ P R I M A R Y ]  
 G O  
 S E T   A N S I _ P A D D I N G   O F F  
 G O  
 / * * * * * *   O b j e c t :     T a b l e   [ d b o ] . [ a c _ S u b s c r i p t i o n P l a n s ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 4   * * * * * * /  
 S E T   A N S I _ N U L L S   O N  
 G O  
 S E T   Q U O T E D _ I D E N T I F I E R   O N  
 G O  
 C R E A T E   T A B L E   [ d b o ] . [ a c _ S u b s c r i p t i o n P l a n s ] (  
 	 [ P r o d u c t I d ]   [ i n t ]   N O T   N U L L ,  
 	 [ N a m e ]   [ n v a r c h a r ] ( 1 0 0 )   N O T   N U L L ,  
 	 [ N u m b e r O f P a y m e n t s ]   [ s m a l l i n t ]   N O T   N U L L ,  
 	 [ P a y m e n t F r e q u e n c y ]   [ s m a l l i n t ]   N O T   N U L L ,  
 	 [ P a y m e n t F r e q u e n c y U n i t I d ]   [ t i n y i n t ]   N O T   N U L L ,  
 	 [ R e c u r r i n g C h a r g e ]   [ d e c i m a l ] ( 9 ,   2 )   N O T   N U L L ,  
 	 [ R e c u r r i n g C h a r g e S p e c i f i e d ]   [ b i t ]   N O T   N U L L ,  
 	 [ G r o u p I d ]   [ i n t ]   N U L L ,  
 	 [ T a x C o d e I d ]   [ i n t ]   N U L L ,  
   C O N S T R A I N T   [ a c _ S u b s c r i p t i o n P l a n s _ P K ]   P R I M A R Y   K E Y   C L U S T E R E D    
 (  
 	 [ P r o d u c t I d ]   A S C  
 ) W I T H   ( P A D _ I N D E X     =   O F F ,   S T A T I S T I C S _ N O R E C O M P U T E     =   O F F ,   I G N O R E _ D U P _ K E Y   =   O F F ,   A L L O W _ R O W _ L O C K S     =   O N ,   A L L O W _ P A G E _ L O C K S     =   O N )   O N   [ P R I M A R Y ]  
 )   O N   [ P R I M A R Y ]  
 G O  
 / * * * * * *   O b j e c t :     T a b l e   [ d b o ] . [ a c _ S u b s c r i p t i o n s ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 4   * * * * * * /  
 S E T   A N S I _ N U L L S   O N  
 G O  
 S E T   Q U O T E D _ I D E N T I F I E R   O N  
 G O  
 C R E A T E   T A B L E   [ d b o ] . [ a c _ S u b s c r i p t i o n s ] (  
 	 [ S u b s c r i p t i o n I d ]   [ i n t ]   I D E N T I T Y ( 1 , 1 )   N O T   N U L L ,  
 	 [ P r o d u c t I d ]   [ i n t ]   N O T   N U L L ,  
 	 [ U s e r I d ]   [ i n t ]   N O T   N U L L ,  
 	 [ O r d e r I t e m I d ]   [ i n t ]   N U L L ,  
 	 [ T r a n s a c t i o n I d ]   [ i n t ]   N U L L ,  
 	 [ I s A c t i v e ]   [ b i t ]   N O T   N U L L ,  
 	 [ E x p i r a t i o n D a t e ]   [ d a t e t i m e ]   N U L L ,  
 	 [ G r o u p I d ]   [ i n t ]   N U L L ,  
   C O N S T R A I N T   [ a c _ S u b s c r i p t i o n s _ P K ]   P R I M A R Y   K E Y   C L U S T E R E D    
 (  
 	 [ S u b s c r i p t i o n I d ]   A S C  
 ) W I T H   ( P A D _ I N D E X     =   O F F ,   S T A T I S T I C S _ N O R E C O M P U T E     =   O F F ,   I G N O R E _ D U P _ K E Y   =   O F F ,   A L L O W _ R O W _ L O C K S     =   O N ,   A L L O W _ P A G E _ L O C K S     =   O N )   O N   [ P R I M A R Y ]  
 )   O N   [ P R I M A R Y ]  
 G O  
 / * * * * * *   O b j e c t :     T a b l e   [ d b o ] . [ a c _ U s e r G r o u p s ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 4   * * * * * * /  
 S E T   A N S I _ N U L L S   O N  
 G O  
 S E T   Q U O T E D _ I D E N T I F I E R   O N  
 G O  
 C R E A T E   T A B L E   [ d b o ] . [ a c _ U s e r G r o u p s ] (  
 	 [ U s e r I d ]   [ i n t ]   N O T   N U L L ,  
 	 [ G r o u p I d ]   [ i n t ]   N O T   N U L L ,  
 	 [ S u b s c r i p t i o n I d ]   [ i n t ]   N U L L ,  
   C O N S T R A I N T   [ a c _ U s e r G r o u p s _ P K ]   P R I M A R Y   K E Y   C L U S T E R E D    
 (  
 	 [ G r o u p I d ]   A S C ,  
 	 [ U s e r I d ]   A S C  
 ) W I T H   ( P A D _ I N D E X     =   O F F ,   S T A T I S T I C S _ N O R E C O M P U T E     =   O F F ,   I G N O R E _ D U P _ K E Y   =   O F F ,   A L L O W _ R O W _ L O C K S     =   O N ,   A L L O W _ P A G E _ L O C K S     =   O N )   O N   [ P R I M A R Y ]  
 )   O N   [ P R I M A R Y ]  
 G O  
 / * * * * * *   O b j e c t :     S t o r e d P r o c e d u r e   [ d b o ] . [ a c s p _ M e r g e U s e r G r o u p M e m b e r s ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 6   * * * * * * /  
 S E T   A N S I _ N U L L S   O N  
 G O  
 S E T   Q U O T E D _ I D E N T I F I E R   O N  
 G O  
 c r e a t e   p r o c e d u r e   [ d b o ] . [ a c s p _ M e r g e U s e r G r o u p M e m b e r s ]  
 	 @ s o u r c e G r o u p I d   i n t ,  
 	 @ t a r g e t G r o u p I d   i n t  
 a s  
 b e g i n  
 	  
 	 S E L E C T   U G . U s e r I d ,   U G . G r o u p I d ,   S . S u b s c r i p t i o n I d ,   S . E x p i r a t i o n D a t e  
 	 I N T O   # s o u r c e G r o u p  
 	 F R O M   a c _ U s e r G r o u p s   A S   U G   L E F T   J O I N   a c _ S u b s c r i p t i o n s   A S   S  
 	 O N   U G . S u b s c r i p t i o n I d   =   S . S u b s c r i p t i o n I d  
 	 W H E R E   U G . G r o u p I d   =   @ s o u r c e G r o u p I d ;  
  
 	  
 	 S E L E C T   U G . U s e r I d ,   U G . G r o u p I d ,   S . S u b s c r i p t i o n I d ,   S . E x p i r a t i o n D a t e  
 	 I N T O   # t a r g e t G r o u p  
 	 F R O M   a c _ U s e r G r o u p s   A S   U G   L E F T   J O I N   a c _ S u b s c r i p t i o n s   A S   S  
 	 O N   U G . S u b s c r i p t i o n I d   =   S . S u b s c r i p t i o n I d  
 	 W H E R E   U G . G r o u p I d   =   @ t a r g e t G r o u p I d ;  
  
 	  
 	 D E L E T E   # s o u r c e G r o u p  
 	 F R O M   # s o u r c e G r o u p   I N N E R   J O I N   # t a r g e t G r o u p   O N   # s o u r c e G r o u p . U s e r I d   =   # t a r g e t G r o u p . U s e r I d  
 	 W H E R E   # s o u r c e G r o u p . E x p i r a t i o n D a t e   I S   N U L L   A N D   # t a r g e t G r o u p . E x p i r a t i o n D a t e   I S   N U L L ;  
  
 	  
 	 D E L E T E   # s o u r c e G r o u p  
 	 F R O M   # s o u r c e G r o u p   I N N E R   J O I N   # t a r g e t G r o u p   O N   # s o u r c e G r o u p . U s e r I d   =   # t a r g e t G r o u p . U s e r I d  
 	 W H E R E   # s o u r c e G r o u p . E x p i r a t i o n D a t e   I S   N O T   N U L L    
 	 A N D   ( # t a r g e t G r o u p . E x p i r a t i o n D a t e   I S   N U L L   O R   # s o u r c e G r o u p . E x p i r a t i o n D a t e   <   # t a r g e t G r o u p . E x p i r a t i o n D a t e ) ;  
  
 	  
 	 D E L E T E   # t a r g e t G r o u p  
 	 F R O M   # t a r g e t G r o u p   I N N E R   J O I N   # s o u r c e G r o u p   O N   # t a r g e t G r o u p . U s e r I d   =   # s o u r c e G r o u p . U s e r I d  
 	 W H E R E   # t a r g e t G r o u p . E x p i r a t i o n D a t e   I S   N O T   N U L L    
 	 A N D   ( # s o u r c e G r o u p . E x p i r a t i o n D a t e   I S   N U L L   O R   # t a r g e t G r o u p . E x p i r a t i o n D a t e   <   # s o u r c e G r o u p . E x p i r a t i o n D a t e ) ;  
  
 	  
 	 D E L E T E   F R O M   a c _ U s e r G r o u p s  
 	 W H E R E   U s e r I d   N O T   I N   ( S E L E C T   U s e r I d   F R O M   # s o u r c e G r o u p )  
 	 A N D   G r o u p I D   =   @ s o u r c e G r o u p I d ;  
  
 	  
 	 D E L E T E   F R O M   a c _ U s e r G r o u p s  
 	 W H E R E   U s e r I d   N O T   I N   ( S E L E C T   U s e r I d   F R O M   # t a r g e t G r o u p )  
 	 A N D   G r o u p I D   =   @ t a r g e t G r o u p I d ;  
  
 	  
 	 U P D A T E   a c _ U s e r G r o u p s  
 	 S E T   G r o u p I d   =   @ t a r g e t G r o u p I d  
 	 W H E R E   G r o u p I d   =   @ s o u r c e G r o u p I d ;  
  
 	  
 	 D R O P   T A B L E   # s o u r c e G r o u p ;  
 	 D R O P   T A B L E   # t a r g e t G r o u p ;  
 e n d  
 G O  
 / * * * * * *   O b j e c t :     T a b l e   [ d b o ] . [ p r o d u c t s ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 4   * * * * * * /  
 S E T   A N S I _ N U L L S   O N  
 G O  
 S E T   Q U O T E D _ I D E N T I F I E R   O N  
 G O  
 C R E A T E   T A B L E   [ d b o ] . [ p r o d u c t s ] (  
 	 [ s k u ]   [ n v a r c h a r ] ( 5 0 )   N U L L ,  
 	 [ i n s t o c k ]   [ n v a r c h a r ] ( 5 0 )   N U L L  
 )   O N   [ P R I M A R Y ]  
 G O  
 / * * * * * *   O b j e c t :     S t o r e d P r o c e d u r e   [ d b o ] . [ s p _ s p a c e ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 6   * * * * * * /  
 S E T   A N S I _ N U L L S   O N  
 G O  
 S E T   Q U O T E D _ I D E N T I F I E R   O N  
 G O  
 C R E A T E   P R O C E D U R E   [ d b o ] . [ s p _ s p a c e ]  
                                 @ s o r t b y r o w s   B I T     =   0  
 A S  
     S E T   N O C O U N T     O N  
      
     - - h t t p : / / w w w . s q l t e a m . c o m / f o r u m s / t o p i c . a s p ? T O P I C _ I D = 5 3 8 4 3  
     - - E X E C   s p _ s p a c e   - - s h o w   s t a t s   s o r t e d   b y   r e s e r v e d   s p a c e   s i z e  
     - - E X E C   s p _ s p a c e   1   - - s h o w   s t a t s   s o r t e d   b y   r o w   c o u n t  
     S E L E C T   C A S T ( O B J E C T _ N A M E ( i d )   A S   V A R C H A R ( 5 0 ) )   A S   n a m e ,  
                   S U M ( C A S E    
                               W H E N   i n d i d   <   2  
                               T H E N   R O W S  
                           E N D )   A S   R O W S ,  
                   S U M ( r e s e r v e d )   *   8                                         A S   r e s e r v e d ,  
                   S U M ( d p a g e s )   *   8                                             A S   d a t a ,  
                   S U M ( u s e d   -   d p a g e s )   *   8                               A S   i n d e x _ s i z e ,  
                   S U M ( r e s e r v e d   -   u s e d )   *   8                           A S   u n u s e d  
     F R O M           s y s i n d e x e s   W I T H   ( N O L O C K )  
     W H E R E         i n d i d   I N   ( 0 , 1 , 2 5 5 )  
                       A N D   i d   >   1 0 0  
     G R O U P   B Y   i d   W I T H   R O L L U P  
     O R D E R   B Y   C A S E    
                           W H E N   @ s o r t b y r o w s   =   1  
                           T H E N   S U M ( C A S E    
                                                 W H E N   i n d i d   <   2  
                                                 T H E N   R O W S  
                                             E N D )  
                           E L S E   S U M ( r e s e r v e d )   *   8  
                       E N D   D E S C  
 G O  
 / * * * * * *   O b j e c t :     T a b l e   [ d b o ] . [ a c _ O p t i o n s ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 4   * * * * * * /  
 S E T   A N S I _ N U L L S   O N  
 G O  
 S E T   Q U O T E D _ I D E N T I F I E R   O N  
 G O  
 C R E A T E   T A B L E   [ d b o ] . [ a c _ O p t i o n s ] (  
 	 [ O p t i o n I d ]   [ i n t ]   I D E N T I T Y ( 1 , 1 )   N O T   N U L L ,  
 	 [ N a m e ]   [ n v a r c h a r ] ( 1 0 0 )   N O T   N U L L ,  
 	 [ S h o w T h u m b n a i l s ]   [ b i t ]   N O T   N U L L ,  
 	 [ T h u m b n a i l C o l u m n s ]   [ t i n y i n t ]   N O T   N U L L ,  
 	 [ T h u m b n a i l W i d t h ]   [ s m a l l i n t ]   N O T   N U L L ,  
 	 [ T h u m b n a i l H e i g h t ]   [ s m a l l i n t ]   N O T   N U L L ,  
 	 [ C r e a t e d D a t e ]   [ d a t e t i m e ]   N O T   N U L L ,  
 	 [ H e a d e r T e x t ]   [ n v a r c h a r ] ( 1 0 0 )   N U L L ,  
   C O N S T R A I N T   [ a c _ P r o d u c t A t t r i b u t e s _ P K ]   P R I M A R Y   K E Y   C L U S T E R E D    
 (  
 	 [ O p t i o n I d ]   A S C  
 ) W I T H   ( P A D _ I N D E X     =   O F F ,   S T A T I S T I C S _ N O R E C O M P U T E     =   O F F ,   I G N O R E _ D U P _ K E Y   =   O F F ,   A L L O W _ R O W _ L O C K S     =   O N ,   A L L O W _ P A G E _ L O C K S     =   O N )   O N   [ P R I M A R Y ]  
 )   O N   [ P R I M A R Y ]  
 G O  
 / * * * * * *   O b j e c t :     S t o r e d P r o c e d u r e   [ d b o ] . [ _ T a b l e _ S i z e s 2 ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 6   * * * * * * /  
 S E T   A N S I _ N U L L S   O N  
 G O  
 S E T   Q U O T E D _ I D E N T I F I E R   O N  
 G O  
 C R E A T E   P R O C E D U R E   [ d b o ] . [ _ T a b l e _ S i z e s 2 ]   @ s o r t b y r o w s   b i t   =   0  
 A S  
 S E T   N O C O U N T   O N  
  
 - -   h t t p : / / w w w . d a t a b a s e j o u r n a l . c o m / f e a t u r e s / m s s q l / a r t i c l e . p h p / 3 4 1 4 1 1 1 / G a t h e r i n g - S p a c e - U s a g e - S t a t i s t i c s . h t m  
  
 B E G I N   t r y      
 D E C L A R E   @ t a b l e _ n a m e   V A R C H A R ( 5 0 0 )   ;      
 D E C L A R E   @ s c h e m a _ n a m e   V A R C H A R ( 5 0 0 )   ;      
 D E C L A R E   @ t a b 1   T A B L E (    
                 t a b l e n a m e   V A R C H A R   ( 5 0 0 )   c o l l a t e   d a t a b a s e _ d e f a u l t    
 ,               s c h e m a n a m e   V A R C H A R ( 5 0 0 )   c o l l a t e   d a t a b a s e _ d e f a u l t    
 ) ;      
 D E C L A R E     @ t e m p _ t a b l e   T A B L E   (            
                 t a b l e n a m e   s y s n a m e    
 ,               r o w _ c o u n t   I N T    
 ,               r e s e r v e d   V A R C H A R ( 5 0 )   c o l l a t e   d a t a b a s e _ d e f a u l t    
 ,               d a t a   V A R C H A R ( 5 0 )   c o l l a t e   d a t a b a s e _ d e f a u l t    
 ,               i n d e x _ s i z e   V A R C H A R ( 5 0 )   c o l l a t e   d a t a b a s e _ d e f a u l t    
 ,               u n u s e d   V A R C H A R ( 5 0 )   c o l l a t e   d a t a b a s e _ d e f a u l t      
 ) ;      
  
 I N S E R T   I N T O   @ t a b 1      
 S E L E C T   t 1 . n a m e    
 ,               t 2 . n a m e      
 F R O M   s y s . t a b l e s   t 1      
 I N N E R   J O I N   s y s . s c h e m a s   t 2   O N   (   t 1 . s c h e m a _ i d   =   t 2 . s c h e m a _ i d   ) ;          
  
 D E C L A R E   c 1   C U R S O R   F O R      
 S E L E C T   t 2 . n a m e   +   ' . '   +   t 1 . n a m e        
 F R O M   s y s . t a b l e s   t 1      
 I N N E R   J O I N   s y s . s c h e m a s   t 2   O N   (   t 1 . s c h e m a _ i d   =   t 2 . s c h e m a _ i d   ) ;          
  
 O P E N   c 1 ;      
 F E T C H   N E X T   F R O M   c 1   I N T O   @ t a b l e _ n a m e ;    
 W H I L E   @ @ F E T C H _ S T A T U S   =   0      
 B E G I N        
                 S E T   @ t a b l e _ n a m e   =   R E P L A C E ( @ t a b l e _ n a m e ,   ' [ ' , ' ' ) ;      
                 S E T   @ t a b l e _ n a m e   =   R E P L A C E ( @ t a b l e _ n a m e ,   ' ] ' , ' ' ) ;      
  
                 - -   m a k e   s u r e   t h e   o b j e c t   e x i s t s   b e f o r e   c a l l i n g   s p _ s p a c e d u s e d    
                 I F   E X I S T S ( S E L E C T   O B J E C T _ I D   F R O M   s y s . o b j e c t s   W H E R E   O B J E C T _ I D   =   O B J E C T _ I D ( @ t a b l e _ n a m e ) )    
                 B E G I N    
                                 I N S E R T   I N T O   @ t e m p _ t a b l e   E X E C   s p _ s p a c e u s e d   @ t a b l e _ n a m e ,   f a l s e   ;    
                 E N D    
                    
                 F E T C H   N E X T   F R O M   c 1   I N T O   @ t a b l e _ n a m e ;      
 E N D ;      
 C L O S E   c 1 ;      
 D E A L L O C A T E   c 1 ;      
 S E L E C T   t 1 . *    
 ,               t 2 . s c h e m a n a m e      
 F R O M   @ t e m p _ t a b l e   t 1      
 I N N E R   J O I N   @ t a b 1   t 2   O N   ( t 1 . t a b l e n a m e   =   t 2 . t a b l e n a m e   )    
 O R D E R   B Y     r o w _ c o u n t   d e s c ,   s c h e m a n a m e , t a b l e n a m e ;    
 E N D   t r y      
 B E G I N   c a t c h      
 S E L E C T   - 1 0 0   A S   l 1    
 ,               E R R O R _ N U M B E R ( )   A S   t a b l e n a m e    
 ,               E R R O R _ S E V E R I T Y ( )   A S   r o w _ c o u n t    
 ,               E R R O R _ S T A T E ( )   A S   r e s e r v e d    
 ,               E R R O R _ M E S S A G E ( )   A S   d a t a    
 ,               1   A S   i n d e x _ s i z e ,   1   A S   u n u s e d ,   1   A S   s c h e m a n a m e      
 E N D   c a t c h  
 G O  
 / * * * * * *   O b j e c t :     S t o r e d P r o c e d u r e   [ d b o ] . [ _ T a b l e _ S i z e s ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 6   * * * * * * /  
 S E T   A N S I _ N U L L S   O N  
 G O  
 S E T   Q U O T E D _ I D E N T I F I E R   O N  
 G O  
 C R E A T E   P R O C E D U R E   [ d b o ] . [ _ T a b l e _ S i z e s ]  
                                 @ s o r t b y r o w s   B I T     =   0  
 A S  
     S E T   N O C O U N T     O N  
      
     - - h t t p : / / w w w . s q l t e a m . c o m / f o r u m s / t o p i c . a s p ? T O P I C _ I D = 5 3 8 4 3  
     - - E X E C   s p _ s p a c e   - - s h o w   s t a t s   s o r t e d   b y   r e s e r v e d   s p a c e   s i z e  
     - - E X E C   s p _ s p a c e   1   - - s h o w   s t a t s   s o r t e d   b y   r o w   c o u n t  
     S E L E C T   C A S T ( O B J E C T _ N A M E ( i d )   A S   V A R C H A R ( 5 0 ) )   A S   n a m e ,  
                   S U M ( C A S E    
                               W H E N   i n d i d   <   2  
                               T H E N   R O W S  
                           E N D )   A S   R O W S ,  
                   S U M ( r e s e r v e d )   *   8                                         A S   r e s e r v e d ,  
                   S U M ( d p a g e s )   *   8                                             A S   d a t a ,  
                   S U M ( u s e d   -   d p a g e s )   *   8                               A S   i n d e x _ s i z e ,  
                   S U M ( r e s e r v e d   -   u s e d )   *   8                           A S   u n u s e d  
     F R O M           s y s i n d e x e s   W I T H   ( N O L O C K )  
     W H E R E         i n d i d   I N   ( 0 , 1 , 2 5 5 )  
                       A N D   i d   >   1 0 0  
     G R O U P   B Y   i d   W I T H   R O L L U P  
     O R D E R   B Y   C A S E    
                           W H E N   @ s o r t b y r o w s   =   1  
                           T H E N   S U M ( C A S E    
                                                 W H E N   i n d i d   <   2  
                                                 T H E N   R O W S  
                                             E N D )  
                           E L S E   S U M ( r e s e r v e d )   *   8  
                       E N D   D E S C  
 G O  
 / * * * * * *   O b j e c t :     S t o r e d P r o c e d u r e   [ d b o ] . [ _ S e a r c h A n d R e p l a c e ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 6   * * * * * * /  
 S E T   A N S I _ N U L L S   O N  
 G O  
 S E T   Q U O T E D _ I D E N T I F I E R   O N  
 G O  
 C R E A T E   P R O C E D U R E   [ d b o ] . [ _ S e a r c h A n d R e p l a c e ] (  
                                 @ S e a r c h S t r     N V A R C H A R ( 1 0 0 ) ,  
                                 @ R e p l a c e S t r   N V A R C H A R ( 1 0 0 ) )  
 A S  
     B E G I N  
         - -   C o p y r i g h t   ©   2 0 0 2   N a r a y a n a   V y a s   K o n d r e d d i .   A l l   r i g h t s   r e s e r v e d .  
         - -   P u r p o s e :   T o   s e a r c h   a l l   c o l u m n s   o f   a l l   t a b l e s   f o r   a   g i v e n   s e a r c h   s t r i n g   a n d   r e p l a c e   i t   w i t h   a n o t h e r   s t r i n g  
         - -   W r i t t e n   b y :   N a r a y a n a   V y a s   K o n d r e d d i  
         - -   S i t e :   h t t p : / / v y a s k n . t r i p o d . c o m  
         - -   T e s t e d   o n :   S Q L   S e r v e r   7 . 0   a n d   S Q L   S e r v e r   2 0 0 0  
         - -   D a t e   m o d i f i e d :   2 n d   N o v e m b e r   2 0 0 2   1 3 : 5 0   G M T  
         S E T   N O C O U N T     O N  
          
         D E C L A R E     @ T a b l e N a m e     N V A R C H A R ( 2 5 6 ) ,  
                           @ C o l u m n N a m e   N V A R C H A R ( 1 2 8 ) ,  
                           @ S e a r c h S t r 2   N V A R C H A R ( 1 1 0 ) ,  
                           @ S Q L                 N V A R C H A R ( 4 0 0 0 ) ,  
                           @ R C T R               I N T  
          
         S E T   @ T a b l e N a m e   =   ' '  
          
         S E T   @ S e a r c h S t r 2   =   Q U O T E N A M E ( ' % '   +   @ S e a r c h S t r   +   ' % ' , ' ' ' ' )  
          
         S E T   @ R C T R   =   0  
          
         W H I L E   @ T a b l e N a m e   I S   N O T   N U L L  
             B E G I N  
                 S E T   @ C o l u m n N a m e   =   ' '  
                  
                 S E T   @ T a b l e N a m e   =   ( S E L E C T   M I N ( Q U O T E N A M E ( T A B L E _ S C H E M A )   +   ' . '   +   Q U O T E N A M E ( T A B L E _ N A M E ) )  
                                                     F R O M       I N F O R M A T I O N _ S C H E M A . T A B L E S  
                                                     W H E R E     T A B L E _ T Y P E   =   ' B A S E   T A B L E '  
                                                                   A N D   Q U O T E N A M E ( T A B L E _ S C H E M A )   +   ' . '   +   Q U O T E N A M E ( T A B L E _ N A M E )   >   @ T a b l e N a m e  
                                                                   A N D   O B J E C T P R O P E R T Y ( O B J E C T _ I D ( Q U O T E N A M E ( T A B L E _ S C H E M A )   +   ' . '   +   Q U O T E N A M E ( T A B L E _ N A M E ) ) ,  
                                                                                                         ' I s M S S h i p p e d ' )   =   0 )  
                  
                 W H I L E   ( @ T a b l e N a m e   I S   N O T   N U L L )  
                             A N D   ( @ C o l u m n N a m e   I S   N O T   N U L L )  
                     B E G I N  
                         S E T   @ C o l u m n N a m e   =   ( S E L E C T   M I N ( Q U O T E N A M E ( C O L U M N _ N A M E ) )  
                                                               F R O M       I N F O R M A T I O N _ S C H E M A . C O L U M N S  
                                                               W H E R E     T A B L E _ S C H E M A   =   P A R S E N A M E ( @ T a b l e N a m e , 2 )  
                                                                             A N D   T A B L E _ N A M E   =   P A R S E N A M E ( @ T a b l e N a m e , 1 )  
                                                                             A N D   D A T A _ T Y P E   I N   ( ' c h a r ' , ' v a r c h a r ' , ' n c h a r ' , ' n v a r c h a r ' )  
                                                                             A N D   Q U O T E N A M E ( C O L U M N _ N A M E )   >   @ C o l u m n N a m e )  
                          
                         I F   @ C o l u m n N a m e   I S   N O T   N U L L  
                             B E G I N  
                                 S E T   @ S Q L   =   ' U P D A T E   '   +   @ T a b l e N a m e   +   '   S E T   '   +   @ C o l u m n N a m e   +   '   =     R E P L A C E ( '   +   @ C o l u m n N a m e   +   ' ,   '   +   Q U O T E N A M E ( @ S e a r c h S t r , ' ' ' ' )   +   ' ,   '   +   Q U O T E N A M E ( @ R e p l a c e S t r , ' ' ' ' )   +   ' )   W H E R E   '   +   @ C o l u m n N a m e   +   '   L I K E   '   +   @ S e a r c h S t r 2  
                                  
                                 E X E C (   @ S Q L )  
                                  
                                 S E T   @ R C T R   =   @ R C T R   +   @ @ R O W C O U N T  
                             E N D  
                     E N D  
             E N D  
          
         S E L E C T   ' R e p l a c e d   '   +   C A S T ( @ R C T R   A S   V A R C H A R )   +   '   o c c u r e n c e ( s ) '   A S   ' O u t c o m e '  
     E N D  
 G O  
 / * * * * * *   O b j e c t :     T a b l e   [ d b o ] . [ a c _ I P L o c a t i o n s ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 4   * * * * * * /  
 S E T   A N S I _ N U L L S   O N  
 G O  
 S E T   Q U O T E D _ I D E N T I F I E R   O N  
 G O  
 S E T   A N S I _ P A D D I N G   O N  
 G O  
 C R E A T E   T A B L E   [ d b o ] . [ a c _ I P L o c a t i o n s ] (  
 	 [ I P R a n g e S t a r t ]   [ b i g i n t ]   N O T   N U L L ,  
 	 [ I P R a n g e E n d ]   [ b i g i n t ]   N O T   N U L L ,  
 	 [ C o u n t r y C o d e ]   [ c h a r ] ( 2 )   N O T   N U L L ,  
 	 [ R e g i o n ]   [ v a r c h a r ] ( 1 2 8 )   N U L L ,  
 	 [ C i t y ]   [ v a r c h a r ] ( 1 2 8 )   N U L L ,  
   C O N S T R A I N T   [ a c _ I P L o c a t i o n s _ P K ]   P R I M A R Y   K E Y   C L U S T E R E D    
 (  
 	 [ I P R a n g e S t a r t ]   A S C ,  
 	 [ I P R a n g e E n d ]   A S C  
 ) W I T H   ( P A D _ I N D E X     =   O F F ,   S T A T I S T I C S _ N O R E C O M P U T E     =   O F F ,   I G N O R E _ D U P _ K E Y   =   O F F ,   A L L O W _ R O W _ L O C K S     =   O N ,   A L L O W _ P A G E _ L O C K S     =   O N )   O N   [ P R I M A R Y ]  
 )   O N   [ P R I M A R Y ]  
 G O  
 S E T   A N S I _ P A D D I N G   O F F  
 G O  
 / * * * * * *   O b j e c t :     T a b l e   [ d b o ] . [ a c _ R o l e s ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 4   * * * * * * /  
 S E T   A N S I _ N U L L S   O N  
 G O  
 S E T   Q U O T E D _ I D E N T I F I E R   O N  
 G O  
 C R E A T E   T A B L E   [ d b o ] . [ a c _ R o l e s ] (  
 	 [ R o l e I d ]   [ i n t ]   I D E N T I T Y ( 1 , 1 )   N O T   N U L L ,  
 	 [ N a m e ]   [ n v a r c h a r ] ( 1 0 0 )   N O T   N U L L ,  
 	 [ L o w e r e d N a m e ]   [ n v a r c h a r ] ( 1 0 0 )   N O T   N U L L ,  
   C O N S T R A I N T   [ a c _ R o l e s _ P K ]   P R I M A R Y   K E Y   C L U S T E R E D    
 (  
 	 [ R o l e I d ]   A S C  
 ) W I T H   ( P A D _ I N D E X     =   O F F ,   S T A T I S T I C S _ N O R E C O M P U T E     =   O F F ,   I G N O R E _ D U P _ K E Y   =   O F F ,   A L L O W _ R O W _ L O C K S     =   O N ,   A L L O W _ P A G E _ L O C K S     =   O N )   O N   [ P R I M A R Y ]  
 )   O N   [ P R I M A R Y ]  
 G O  
 / * * * * * *   O b j e c t :     T a b l e   [ d b o ] . [ a c _ R e v i e w e r P r o f i l e s ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 4   * * * * * * /  
 S E T   A N S I _ N U L L S   O N  
 G O  
 S E T   Q U O T E D _ I D E N T I F I E R   O N  
 G O  
 C R E A T E   T A B L E   [ d b o ] . [ a c _ R e v i e w e r P r o f i l e s ] (  
 	 [ R e v i e w e r P r o f i l e I d ]   [ i n t ]   I D E N T I T Y ( 1 , 1 )   N O T   N U L L ,  
 	 [ E m a i l ]   [ n v a r c h a r ] ( 2 5 5 )   N O T   N U L L ,  
 	 [ D i s p l a y N a m e ]   [ n v a r c h a r ] ( 1 0 0 )   N O T   N U L L ,  
 	 [ L o c a t i o n ]   [ n v a r c h a r ] ( 5 0 )   N U L L ,  
 	 [ E m a i l V e r i f i e d ]   [ b i t ]   N O T   N U L L ,  
 	 [ E m a i l V e r i f i c a t i o n C o d e ]   [ u n i q u e i d e n t i f i e r ]   N U L L ,  
   C O N S T R A I N T   [ a c _ R e v i e w e r P r o f i l e s _ P K ]   P R I M A R Y   K E Y   C L U S T E R E D    
 (  
 	 [ R e v i e w e r P r o f i l e I d ]   A S C  
 ) W I T H   ( P A D _ I N D E X     =   O F F ,   S T A T I S T I C S _ N O R E C O M P U T E     =   O F F ,   I G N O R E _ D U P _ K E Y   =   O F F ,   A L L O W _ R O W _ L O C K S     =   O N ,   A L L O W _ P A G E _ L O C K S     =   O N )   O N   [ P R I M A R Y ]  
 )   O N   [ P R I M A R Y ]  
 G O  
 / * * * * * *   O b j e c t :     T a b l e   [ d b o ] . [ a c _ U p s O r i g i n ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 4   * * * * * * /  
 S E T   A N S I _ N U L L S   O N  
 G O  
 S E T   Q U O T E D _ I D E N T I F I E R   O N  
 G O  
 S E T   A N S I _ P A D D I N G   O N  
 G O  
 C R E A T E   T A B L E   [ d b o ] . [ a c _ U p s O r i g i n ] (  
 	 [ C o u n t r y C o d e ]   [ c h a r ] ( 2 )   N O T   N U L L ,  
 	 [ C o u n t r y N a m e ]   [ n v a r c h a r ] ( 1 0 0 )   N U L L ,  
 	 [ C u r r e n c y N a m e ]   [ n v a r c h a r ] ( 5 0 )   N U L L ,  
 	 [ C u r r e n c y C o d e ]   [ n v a r c h a r ] ( 3 )   N U L L ,  
 	 [ E u r o A l l o w e d ]   [ s m a l l i n t ]   N U L L ,  
 	 [ M I V D o l l a r ]   [ d e c i m a l ] ( 1 2 ,   4 )   N U L L ,  
 	 [ M I V E u r o ]   [ d e c i m a l ] ( 1 2 ,   4 )   N U L L ,  
 	 [ U O M ]   [ s m a l l i n t ]   N U L L ,  
 	 [ M a x W e i g h t ]   [ d e c i m a l ] ( 1 2 ,   4 )   N U L L ,  
 	 [ M a x M e t r i c W e i g h t ]   [ d e c i m a l ] ( 1 2 ,   4 )   N U L L ,  
 	 [ E U M e m b e r ]   [ s m a l l i n t ]   N U L L ,  
   C O N S T R A I N T   [ a c _ U p s O r i g i n _ P K ]   P R I M A R Y   K E Y   C L U S T E R E D    
 (  
 	 [ C o u n t r y C o d e ]   A S C  
 ) W I T H   ( P A D _ I N D E X     =   O F F ,   S T A T I S T I C S _ N O R E C O M P U T E     =   O F F ,   I G N O R E _ D U P _ K E Y   =   O F F ,   A L L O W _ R O W _ L O C K S     =   O N ,   A L L O W _ P A G E _ L O C K S     =   O N )   O N   [ P R I M A R Y ]  
 )   O N   [ P R I M A R Y ]  
 G O  
 S E T   A N S I _ P A D D I N G   O F F  
 G O  
 / * * * * * *   O b j e c t :     T a b l e   [ d b o ] . [ a c _ P r i n t e d C a t a l o g ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 4   * * * * * * /  
 S E T   A N S I _ N U L L S   O N  
 G O  
 S E T   Q U O T E D _ I D E N T I F I E R   O N  
 G O  
 C R E A T E   T A B L E   [ d b o ] . [ a c _ P r i n t e d C a t a l o g ] (  
 	 [ U s e r I D ]   [ i n t ]   I D E N T I T Y ( 1 , 1 )   N O T   N U L L ,  
 	 [ F i r s t N a m e ]   [ n v a r c h a r ] ( 2 5 5 )   N U L L ,  
 	 [ L a s t N a m e ]   [ n v a r c h a r ] ( 2 5 5 )   N U L L ,  
 	 [ A d d r e s s 1 ]   [ n v a r c h a r ] ( 2 5 5 )   N U L L ,  
 	 [ A d d r e s s 2 ]   [ n v a r c h a r ] ( 2 5 5 )   N U L L ,  
 	 [ C i t y ]   [ n v a r c h a r ] ( 2 5 5 )   N U L L ,  
 	 [ S t a t e ]   [ n v a r c h a r ] ( 2 5 5 )   N U L L ,  
 	 [ Z i p ]   [ n v a r c h a r ] ( 2 5 5 )   N U L L ,  
 	 [ C o u n t r y ]   [ n v a r c h a r ] ( 2 5 5 )   N U L L ,  
 	 [ C r e a t e d D a t e ]   [ d a t e t i m e ]   N O T   N U L L ,  
   C O N S T R A I N T   [ P K _ a c _ P r i n t e d C a t e l o g ]   P R I M A R Y   K E Y   C L U S T E R E D    
 (  
 	 [ U s e r I D ]   A S C  
 ) W I T H   ( P A D _ I N D E X     =   O F F ,   S T A T I S T I C S _ N O R E C O M P U T E     =   O F F ,   I G N O R E _ D U P _ K E Y   =   O F F ,   A L L O W _ R O W _ L O C K S     =   O N ,   A L L O W _ P A G E _ L O C K S     =   O N )   O N   [ P R I M A R Y ]  
 )   O N   [ P R I M A R Y ]  
 G O  
 / * * * * * *   O b j e c t :     T a b l e   [ d b o ] . [ a c _ P a y m e n t G a t e w a y s ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 4   * * * * * * /  
 S E T   A N S I _ N U L L S   O N  
 G O  
 S E T   Q U O T E D _ I D E N T I F I E R   O N  
 G O  
 S E T   A N S I _ P A D D I N G   O N  
 G O  
 C R E A T E   T A B L E   [ d b o ] . [ a c _ P a y m e n t G a t e w a y s ] (  
 	 [ P a y m e n t G a t e w a y I d ]   [ i n t ]   I D E N T I T Y ( 1 , 1 )   N O T   N U L L ,  
 	 [ S t o r e I d ]   [ i n t ]   N O T   N U L L ,  
 	 [ N a m e ]   [ n v a r c h a r ] ( 1 0 0 )   N O T   N U L L ,  
 	 [ C l a s s I d ]   [ v a r c h a r ] ( 2 5 5 )   N O T   N U L L ,  
 	 [ C o n f i g D a t a ]   [ n v a r c h a r ] ( m a x )   N U L L ,  
 	 [ R e C r y p t ]   [ b i t ]   N O T   N U L L ,  
   C O N S T R A I N T   [ a c _ P a y m e n t G a t w a y s _ P K ]   P R I M A R Y   K E Y   C L U S T E R E D    
 (  
 	 [ P a y m e n t G a t e w a y I d ]   A S C  
 ) W I T H   ( P A D _ I N D E X     =   O F F ,   S T A T I S T I C S _ N O R E C O M P U T E     =   O F F ,   I G N O R E _ D U P _ K E Y   =   O F F ,   A L L O W _ R O W _ L O C K S     =   O N ,   A L L O W _ P A G E _ L O C K S     =   O N )   O N   [ P R I M A R Y ]  
 )   O N   [ P R I M A R Y ]  
 G O  
 S E T   A N S I _ P A D D I N G   O F F  
 G O  
 / * * * * * *   O b j e c t :     T a b l e   [ d b o ] . [ a c _ P a y m e n t M e t h o d s ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 4   * * * * * * /  
 S E T   A N S I _ N U L L S   O N  
 G O  
 S E T   Q U O T E D _ I D E N T I F I E R   O N  
 G O  
 C R E A T E   T A B L E   [ d b o ] . [ a c _ P a y m e n t M e t h o d s ] (  
 	 [ P a y m e n t M e t h o d I d ]   [ i n t ]   I D E N T I T Y ( 1 , 1 )   N O T   N U L L ,  
 	 [ S t o r e I d ]   [ i n t ]   N O T   N U L L ,  
 	 [ N a m e ]   [ n v a r c h a r ] ( 1 0 0 )   N O T   N U L L ,  
 	 [ P a y m e n t I n s t r u m e n t I d ]   [ s m a l l i n t ]   N O T   N U L L ,  
 	 [ P a y m e n t G a t e w a y I d ]   [ i n t ]   N U L L ,  
 	 [ O r d e r B y ]   [ s m a l l i n t ]   N O T   N U L L ,  
   C O N S T R A I N T   [ a c _ P a y m e n t M e t h o d s _ P K ]   P R I M A R Y   K E Y   C L U S T E R E D    
 (  
 	 [ P a y m e n t M e t h o d I d ]   A S C  
 ) W I T H   ( P A D _ I N D E X     =   O F F ,   S T A T I S T I C S _ N O R E C O M P U T E     =   O F F ,   I G N O R E _ D U P _ K E Y   =   O F F ,   A L L O W _ R O W _ L O C K S     =   O N ,   A L L O W _ P A G E _ L O C K S     =   O N )   O N   [ P R I M A R Y ]  
 )   O N   [ P R I M A R Y ]  
 G O  
 / * * * * * *   O b j e c t :     T a b l e   [ d b o ] . [ a c _ P a y m e n t s ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 4   * * * * * * /  
 S E T   A N S I _ N U L L S   O N  
 G O  
 S E T   Q U O T E D _ I D E N T I F I E R   O N  
 G O  
 C R E A T E   T A B L E   [ d b o ] . [ a c _ P a y m e n t s ] (  
 	 [ P a y m e n t I d ]   [ i n t ]   I D E N T I T Y ( 1 , 1 )   N O T   N U L L ,  
 	 [ O r d e r I d ]   [ i n t ]   N O T   N U L L ,  
 	 [ S u b s c r i p t i o n I d ]   [ i n t ]   N U L L ,  
 	 [ P a y m e n t M e t h o d I d ]   [ i n t ]   N U L L ,  
 	 [ P a y m e n t M e t h o d N a m e ]   [ n v a r c h a r ] ( 1 0 0 )   N U L L ,  
 	 [ R e f e r e n c e N u m b e r ]   [ n v a r c h a r ] ( 5 0 )   N U L L ,  
 	 [ A m o u n t ]   [ d e c i m a l ] ( 1 2 ,   4 )   N O T   N U L L ,  
 	 [ C u r r e n c y C o d e ]   [ n v a r c h a r ] ( 3 )   N O T   N U L L ,  
 	 [ P a y m e n t D a t e ]   [ d a t e t i m e ]   N O T   N U L L ,  
 	 [ P a y m e n t S t a t u s I d ]   [ s m a l l i n t ]   N O T   N U L L ,  
 	 [ P a y m e n t S t a t u s R e a s o n ]   [ n v a r c h a r ] ( 2 5 5 )   N U L L ,  
 	 [ C o m p l e t e d D a t e ]   [ d a t e t i m e ]   N U L L ,  
 	 [ E n c r y p t e d A c c o u n t D a t a ]   [ n v a r c h a r ] ( m a x )   N U L L ,  
 	 [ R e C r y p t ]   [ b i t ]   N O T   N U L L ,  
   C O N S T R A I N T   [ a c _ P a y m e n t s _ P K ]   P R I M A R Y   K E Y   C L U S T E R E D    
 (  
 	 [ P a y m e n t I d ]   A S C  
 ) W I T H   ( P A D _ I N D E X     =   O F F ,   S T A T I S T I C S _ N O R E C O M P U T E     =   O F F ,   I G N O R E _ D U P _ K E Y   =   O F F ,   A L L O W _ R O W _ L O C K S     =   O N ,   A L L O W _ P A G E _ L O C K S     =   O N )   O N   [ P R I M A R Y ]  
 )   O N   [ P R I M A R Y ]  
 G O  
 / * * * * * *   O b j e c t :     T a b l e   [ d b o ] . [ a c _ T r a n s a c t i o n s ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 4   * * * * * * /  
 S E T   A N S I _ N U L L S   O N  
 G O  
 S E T   Q U O T E D _ I D E N T I F I E R   O N  
 G O  
 S E T   A N S I _ P A D D I N G   O N  
 G O  
 C R E A T E   T A B L E   [ d b o ] . [ a c _ T r a n s a c t i o n s ] (  
 	 [ T r a n s a c t i o n I d ]   [ i n t ]   I D E N T I T Y ( 1 , 1 )   N O T   N U L L ,  
 	 [ T r a n s a c t i o n T y p e I d ]   [ s m a l l i n t ]   N O T   N U L L ,  
 	 [ P a y m e n t I d ]   [ i n t ]   N O T   N U L L ,  
 	 [ P a y m e n t G a t e w a y I d ]   [ i n t ]   N U L L ,  
 	 [ P r o v i d e r T r a n s a c t i o n I d ]   [ n v a r c h a r ] ( 5 0 )   N U L L ,  
 	 [ T r a n s a c t i o n D a t e ]   [ d a t e t i m e ]   N O T   N U L L ,  
 	 [ A m o u n t ]   [ d e c i m a l ] ( 1 2 ,   4 )   N O T   N U L L ,  
 	 [ T r a n s a c t i o n S t a t u s I d ]   [ s m a l l i n t ]   N O T   N U L L ,  
 	 [ R e s p o n s e C o d e ]   [ n v a r c h a r ] ( 5 0 )   N U L L ,  
 	 [ R e s p o n s e M e s s a g e ]   [ n v a r c h a r ] ( 2 5 5 )   N U L L ,  
 	 [ A u t h o r i z a t i o n C o d e ]   [ n v a r c h a r ] ( 2 5 5 )   N U L L ,  
 	 [ A V S R e s u l t C o d e ]   [ c h a r ] ( 1 )   N U L L ,  
 	 [ C V V R e s u l t C o d e ]   [ c h a r ] ( 1 )   N U L L ,  
 	 [ C A V R e s u l t C o d e ]   [ c h a r ] ( 1 )   N U L L ,  
 	 [ R e m o t e I P ]   [ v a r c h a r ] ( 3 9 )   N U L L ,  
 	 [ R e f e r r e r ]   [ n v a r c h a r ] ( 2 5 5 )   N U L L ,  
 	 [ A d d i t i o n a l D a t a ]   [ n v a r c h a r ] ( 2 5 5 )   N U L L ,  
   C O N S T R A I N T   [ a c _ T r a n s a c t i o n s _ P K ]   P R I M A R Y   K E Y   C L U S T E R E D    
 (  
 	 [ T r a n s a c t i o n I d ]   A S C  
 ) W I T H   ( P A D _ I N D E X     =   O F F ,   S T A T I S T I C S _ N O R E C O M P U T E     =   O F F ,   I G N O R E _ D U P _ K E Y   =   O F F ,   A L L O W _ R O W _ L O C K S     =   O N ,   A L L O W _ P A G E _ L O C K S     =   O N )   O N   [ P R I M A R Y ]  
 )   O N   [ P R I M A R Y ]  
 G O  
 S E T   A N S I _ P A D D I N G   O F F  
 G O  
 / * * * * * *   O b j e c t :     T a b l e   [ d b o ] . [ a c _ K i t C o m p o n e n t s ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 4   * * * * * * /  
 S E T   A N S I _ N U L L S   O N  
 G O  
 S E T   Q U O T E D _ I D E N T I F I E R   O N  
 G O  
 C R E A T E   T A B L E   [ d b o ] . [ a c _ K i t C o m p o n e n t s ] (  
 	 [ K i t C o m p o n e n t I d ]   [ i n t ]   I D E N T I T Y ( 1 , 1 )   N O T   N U L L ,  
 	 [ S t o r e I d ]   [ i n t ]   N O T   N U L L ,  
 	 [ N a m e ]   [ n v a r c h a r ] ( 1 0 0 )   N O T   N U L L ,  
 	 [ U s e r P r o m p t ]   [ n v a r c h a r ] ( 2 5 5 )   N U L L ,  
 	 [ I n p u t T y p e I d ]   [ s m a l l i n t ]   N O T   N U L L ,  
 	 [ C o l u m n s ]   [ t i n y i n t ]   N O T   N U L L ,  
 	 [ H e a d e r O p t i o n ]   [ n v a r c h a r ] ( 1 0 0 )   N U L L ,  
   C O N S T R A I N T   [ a c _ K i t C o m p o n e n t s _ P K ]   P R I M A R Y   K E Y   C L U S T E R E D    
 (  
 	 [ K i t C o m p o n e n t I d ]   A S C  
 ) W I T H   ( P A D _ I N D E X     =   O F F ,   S T A T I S T I C S _ N O R E C O M P U T E     =   O F F ,   I G N O R E _ D U P _ K E Y   =   O F F ,   A L L O W _ R O W _ L O C K S     =   O N ,   A L L O W _ P A G E _ L O C K S     =   O N )   O N   [ P R I M A R Y ]  
 )   O N   [ P R I M A R Y ]  
 G O  
 / * * * * * *   O b j e c t :     T a b l e   [ d b o ] . [ a c _ P e r s o n a l i z a t i o n P a t h s ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 4   * * * * * * /  
 S E T   A N S I _ N U L L S   O N  
 G O  
 S E T   Q U O T E D _ I D E N T I F I E R   O N  
 G O  
 C R E A T E   T A B L E   [ d b o ] . [ a c _ P e r s o n a l i z a t i o n P a t h s ] (  
 	 [ P e r s o n a l i z a t i o n P a t h I d ]   [ i n t ]   I D E N T I T Y ( 1 , 1 )   N O T   N U L L ,  
 	 [ S t o r e I d ]   [ i n t ]   N O T   N U L L ,  
 	 [ P a t h ]   [ n v a r c h a r ] ( 2 5 5 )   N O T   N U L L ,  
 	 [ L o w e r e d P a t h ]   [ n v a r c h a r ] ( 2 5 5 )   N O T   N U L L ,  
   C O N S T R A I N T   [ a c _ P e r s o n a l i z a t i o n P a t h s _ P K ]   P R I M A R Y   K E Y   C L U S T E R E D    
 (  
 	 [ P e r s o n a l i z a t i o n P a t h I d ]   A S C  
 ) W I T H   ( P A D _ I N D E X     =   O F F ,   S T A T I S T I C S _ N O R E C O M P U T E     =   O F F ,   I G N O R E _ D U P _ K E Y   =   O F F ,   A L L O W _ R O W _ L O C K S     =   O N ,   A L L O W _ P A G E _ L O C K S     =   O N )   O N   [ P R I M A R Y ]  
 )   O N   [ P R I M A R Y ]  
 G O  
 / * * * * * *   O b j e c t :     T a b l e   [ d b o ] . [ a c _ P r o d u c t T e m p l a t e s ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 4   * * * * * * /  
 S E T   A N S I _ N U L L S   O N  
 G O  
 S E T   Q U O T E D _ I D E N T I F I E R   O N  
 G O  
 C R E A T E   T A B L E   [ d b o ] . [ a c _ P r o d u c t T e m p l a t e s ] (  
 	 [ P r o d u c t T e m p l a t e I d ]   [ i n t ]   I D E N T I T Y ( 1 , 1 )   N O T   N U L L ,  
 	 [ S t o r e I d ]   [ i n t ]   N O T   N U L L ,  
 	 [ N a m e ]   [ n v a r c h a r ] ( 1 0 0 )   N O T   N U L L ,  
   C O N S T R A I N T   [ a c _ P r o d u c t T e m p l a t e s _ P K ]   P R I M A R Y   K E Y   C L U S T E R E D    
 (  
 	 [ P r o d u c t T e m p l a t e I d ]   A S C  
 ) W I T H   ( P A D _ I N D E X     =   O F F ,   S T A T I S T I C S _ N O R E C O M P U T E     =   O F F ,   I G N O R E _ D U P _ K E Y   =   O F F ,   A L L O W _ R O W _ L O C K S     =   O N ,   A L L O W _ P A G E _ L O C K S     =   O N )   O N   [ P R I M A R Y ]  
 )   O N   [ P R I M A R Y ]  
 G O  
 / * * * * * *   O b j e c t :     T a b l e   [ d b o ] . [ a c _ R e d i r e c t s ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 4   * * * * * * /  
 S E T   A N S I _ N U L L S   O N  
 G O  
 S E T   Q U O T E D _ I D E N T I F I E R   O N  
 G O  
 C R E A T E   T A B L E   [ d b o ] . [ a c _ R e d i r e c t s ] (  
 	 [ R e d i r e c t I d ]   [ i n t ]   I D E N T I T Y ( 1 , 1 )   N O T   N U L L ,  
 	 [ S t o r e I d ]   [ i n t ]   N O T   N U L L ,  
 	 [ S o u r c e U r l ]   [ n v a r c h a r ] ( 2 5 5 )   N O T   N U L L ,  
 	 [ L o w e r e d S o u r c e U r l ]   [ n v a r c h a r ] ( 2 5 5 )   N O T   N U L L ,  
 	 [ T a r g e t U r l ]   [ n v a r c h a r ] ( 2 5 5 )   N O T   N U L L ,  
 	 [ U s e R e g E x ]   [ b i t ]   N O T   N U L L ,  
 	 [ C r e a t e d D a t e ]   [ d a t e t i m e ]   N O T   N U L L ,  
 	 [ L a s t V i s i t e d D a t e ]   [ d a t e t i m e ]   N U L L ,  
 	 [ V i s i t C o u n t ]   [ i n t ]   N U L L ,  
 	 [ O r d e r B y ]   [ s m a l l i n t ]   N O T   N U L L ,  
   C O N S T R A I N T   [ a c _ R e d i r e c t s _ P K ]   P R I M A R Y   K E Y   N O N C L U S T E R E D    
 (  
 	 [ R e d i r e c t I d ]   A S C  
 ) W I T H   ( P A D _ I N D E X     =   O F F ,   S T A T I S T I C S _ N O R E C O M P U T E     =   O F F ,   I G N O R E _ D U P _ K E Y   =   O F F ,   A L L O W _ R O W _ L O C K S     =   O N ,   A L L O W _ P A G E _ L O C K S     =   O N )   O N   [ P R I M A R Y ]  
 )   O N   [ P R I M A R Y ]  
 G O  
 / * * * * * *   O b j e c t :     T a b l e   [ d b o ] . [ a c _ R e a d m e s ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 4   * * * * * * /  
 S E T   A N S I _ N U L L S   O N  
 G O  
 S E T   Q U O T E D _ I D E N T I F I E R   O N  
 G O  
 C R E A T E   T A B L E   [ d b o ] . [ a c _ R e a d m e s ] (  
 	 [ R e a d m e I d ]   [ i n t ]   I D E N T I T Y ( 1 , 1 )   N O T   N U L L ,  
 	 [ S t o r e I d ]   [ i n t ]   N O T   N U L L ,  
 	 [ D i s p l a y N a m e ]   [ n v a r c h a r ] ( 1 0 0 )   N O T   N U L L ,  
 	 [ R e a d m e T e x t ]   [ n v a r c h a r ] ( m a x )   N O T   N U L L ,  
 	 [ I s H T M L ]   [ b i t ]   N O T   N U L L ,  
   C O N S T R A I N T   [ a c _ R e a d m e s _ P K ]   P R I M A R Y   K E Y   C L U S T E R E D    
 (  
 	 [ R e a d m e I d ]   A S C  
 ) W I T H   ( P A D _ I N D E X     =   O F F ,   S T A T I S T I C S _ N O R E C O M P U T E     =   O F F ,   I G N O R E _ D U P _ K E Y   =   O F F ,   A L L O W _ R O W _ L O C K S     =   O N ,   A L L O W _ P A G E _ L O C K S     =   O N )   O N   [ P R I M A R Y ]  
 )   O N   [ P R I M A R Y ]  
 G O  
 / * * * * * *   O b j e c t :     T a b l e   [ d b o ] . [ a c _ T a x R u l e s ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 4   * * * * * * /  
 S E T   A N S I _ N U L L S   O N  
 G O  
 S E T   Q U O T E D _ I D E N T I F I E R   O N  
 G O  
 C R E A T E   T A B L E   [ d b o ] . [ a c _ T a x R u l e s ] (  
 	 [ T a x R u l e I d ]   [ i n t ]   I D E N T I T Y ( 1 , 1 )   N O T   N U L L ,  
 	 [ S t o r e I d ]   [ i n t ]   N O T   N U L L ,  
 	 [ N a m e ]   [ n v a r c h a r ] ( 1 0 0 )   N O T   N U L L ,  
 	 [ T a x R a t e ]   [ d e c i m a l ] ( 9 ,   4 )   N O T   N U L L ,  
 	 [ U s e B i l l i n g A d d r e s s ]   [ b i t ]   N O T   N U L L ,  
 	 [ G r o u p R u l e I d ]   [ t i n y i n t ]   N O T   N U L L ,  
 	 [ T a x C o d e I d ]   [ i n t ]   N U L L ,  
 	 [ P r i o r i t y ]   [ s m a l l i n t ]   N O T   N U L L ,  
 	 [ R o u n d i n g R u l e I d ]   [ t i n y i n t ]   N O T   N U L L ,  
 	 [ U s e P e r I t e m T a x ]   [ b i t ]   N O T   N U L L ,  
   C O N S T R A I N T   [ a c _ T a x R u l e s _ P K ]   P R I M A R Y   K E Y   C L U S T E R E D    
 (  
 	 [ T a x R u l e I d ]   A S C  
 ) W I T H   ( P A D _ I N D E X     =   O F F ,   S T A T I S T I C S _ N O R E C O M P U T E     =   O F F ,   I G N O R E _ D U P _ K E Y   =   O F F ,   A L L O W _ R O W _ L O C K S     =   O N ,   A L L O W _ P A G E _ L O C K S     =   O N )   O N   [ P R I M A R Y ]  
 )   O N   [ P R I M A R Y ]  
 G O  
 / * * * * * *   O b j e c t :     T a b l e   [ d b o ] . [ a c _ T a x G a t e w a y s ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 4   * * * * * * /  
 S E T   A N S I _ N U L L S   O N  
 G O  
 S E T   Q U O T E D _ I D E N T I F I E R   O N  
 G O  
 S E T   A N S I _ P A D D I N G   O N  
 G O  
 C R E A T E   T A B L E   [ d b o ] . [ a c _ T a x G a t e w a y s ] (  
 	 [ T a x G a t e w a y I d ]   [ i n t ]   I D E N T I T Y ( 1 , 1 )   N O T   N U L L ,  
 	 [ S t o r e I d ]   [ i n t ]   N O T   N U L L ,  
 	 [ N a m e ]   [ n v a r c h a r ] ( 1 0 0 )   N O T   N U L L ,  
 	 [ C l a s s I d ]   [ v a r c h a r ] ( 2 5 5 )   N O T   N U L L ,  
 	 [ C o n f i g D a t a ]   [ n v a r c h a r ] ( m a x )   N U L L ,  
 	 [ R e C r y p t ]   [ b i t ]   N O T   N U L L ,  
   C O N S T R A I N T   [ a c _ T a x G a t e w a y s _ P K ]   P R I M A R Y   K E Y   C L U S T E R E D    
 (  
 	 [ T a x G a t e w a y I d ]   A S C  
 ) W I T H   ( P A D _ I N D E X     =   O F F ,   S T A T I S T I C S _ N O R E C O M P U T E     =   O F F ,   I G N O R E _ D U P _ K E Y   =   O F F ,   A L L O W _ R O W _ L O C K S     =   O N ,   A L L O W _ P A G E _ L O C K S     =   O N )   O N   [ P R I M A R Y ]  
 )   O N   [ P R I M A R Y ]  
 G O  
 S E T   A N S I _ P A D D I N G   O F F  
 G O  
 / * * * * * *   O b j e c t :     T a b l e   [ d b o ] . [ a c _ S h i p Z o n e s ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 4   * * * * * * /  
 S E T   A N S I _ N U L L S   O N  
 G O  
 S E T   Q U O T E D _ I D E N T I F I E R   O N  
 G O  
 C R E A T E   T A B L E   [ d b o ] . [ a c _ S h i p Z o n e s ] (  
 	 [ S h i p Z o n e I d ]   [ i n t ]   I D E N T I T Y ( 1 , 1 )   N O T   N U L L ,  
 	 [ S t o r e I d ]   [ i n t ]   N O T   N U L L ,  
 	 [ N a m e ]   [ n v a r c h a r ] ( 2 5 5 )   N O T   N U L L ,  
 	 [ P o s t a l C o d e F i l t e r ]   [ n v a r c h a r ] ( 2 5 5 )   N U L L ,  
 	 [ C o u n t r y R u l e I d ]   [ t i n y i n t ]   N O T   N U L L ,  
 	 [ P r o v i n c e R u l e I d ]   [ t i n y i n t ]   N O T   N U L L ,  
 	 [ E x c l u d e P o s t a l C o d e F i l t e r ]   [ n v a r c h a r ] ( 2 5 5 )   N U L L ,  
 	 [ U s e P C P M ]   [ b i t ]   N O T   N U L L ,  
   C O N S T R A I N T   [ a c _ S h i p Z o n e s _ P K ]   P R I M A R Y   K E Y   C L U S T E R E D    
 (  
 	 [ S h i p Z o n e I d ]   A S C  
 ) W I T H   ( P A D _ I N D E X     =   O F F ,   S T A T I S T I C S _ N O R E C O M P U T E     =   O F F ,   I G N O R E _ D U P _ K E Y   =   O F F ,   A L L O W _ R O W _ L O C K S     =   O N ,   A L L O W _ P A G E _ L O C K S     =   O N )   O N   [ P R I M A R Y ]  
 )   O N   [ P R I M A R Y ]  
 G O  
 / * * * * * *   O b j e c t :     T a b l e   [ d b o ] . [ a c _ E r r o r M e s s a g e s ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 4   * * * * * * /  
 S E T   A N S I _ N U L L S   O N  
 G O  
 S E T   Q U O T E D _ I D E N T I F I E R   O N  
 G O  
 C R E A T E   T A B L E   [ d b o ] . [ a c _ E r r o r M e s s a g e s ] (  
 	 [ E r r o r M e s s a g e I d ]   [ i n t ]   I D E N T I T Y ( 1 , 1 )   N O T   N U L L ,  
 	 [ E n t r y D a t e ]   [ d a t e t i m e ]   N O T   N U L L ,  
 	 [ S t o r e I d ]   [ i n t ]   N O T   N U L L ,  
 	 [ M e s s a g e S e v e r i t y I d ]   [ t i n y i n t ]   N O T   N U L L ,  
 	 [ T e x t ]   [ n v a r c h a r ] ( 2 5 5 )   N O T   N U L L ,  
 	 [ D e b u g D a t a ]   [ n v a r c h a r ] ( m a x )   N U L L ,  
   C O N S T R A I N T   [ a c _ E r r o r M e s s a g e s _ P K ]   P R I M A R Y   K E Y   C L U S T E R E D    
 (  
 	 [ E r r o r M e s s a g e I d ]   A S C  
 ) W I T H   ( P A D _ I N D E X     =   O F F ,   S T A T I S T I C S _ N O R E C O M P U T E     =   O F F ,   I G N O R E _ D U P _ K E Y   =   O F F ,   A L L O W _ R O W _ L O C K S     =   O N ,   A L L O W _ P A G E _ L O C K S     =   O N )   O N   [ P R I M A R Y ]  
 )   O N   [ P R I M A R Y ]  
 G O  
 / * * * * * *   O b j e c t :     T a b l e   [ d b o ] . [ a c _ C u s t o m U r l s ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 4   * * * * * * /  
 S E T   A N S I _ N U L L S   O N  
 G O  
 S E T   Q U O T E D _ I D E N T I F I E R   O N  
 G O  
 C R E A T E   T A B L E   [ d b o ] . [ a c _ C u s t o m U r l s ] (  
 	 [ C u s t o m U r l I d ]   [ i n t ]   I D E N T I T Y ( 1 , 1 )   N O T   N U L L ,  
 	 [ S t o r e I d ]   [ i n t ]   N O T   N U L L ,  
 	 [ C a t a l o g N o d e I d ]   [ i n t ]   N O T   N U L L ,  
 	 [ C a t a l o g N o d e T y p e I d ]   [ t i n y i n t ]   N O T   N U L L ,  
 	 [ U r l ]   [ n v a r c h a r ] ( 3 0 0 )   N O T   N U L L ,  
 	 [ L o w e r e d U r l ]   [ n v a r c h a r ] ( 3 0 0 )   N O T   N U L L ,  
   C O N S T R A I N T   [ a c _ C u s t o m U r l s _ P K ]   P R I M A R Y   K E Y   N O N C L U S T E R E D    
 (  
 	 [ C u s t o m U r l I d ]   A S C  
 ) W I T H   ( P A D _ I N D E X     =   O F F ,   S T A T I S T I C S _ N O R E C O M P U T E     =   O F F ,   I G N O R E _ D U P _ K E Y   =   O F F ,   A L L O W _ R O W _ L O C K S     =   O N ,   A L L O W _ P A G E _ L O C K S     =   O N )   O N   [ P R I M A R Y ]  
 )   O N   [ P R I M A R Y ]  
 G O  
 / * * * * * *   O b j e c t :     T a b l e   [ d b o ] . [ a c _ C u s t o m F i e l d s ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 4   * * * * * * /  
 S E T   A N S I _ N U L L S   O N  
 G O  
 S E T   Q U O T E D _ I D E N T I F I E R   O N  
 G O  
 C R E A T E   T A B L E   [ d b o ] . [ a c _ C u s t o m F i e l d s ] (  
 	 [ C u s t o m F i e l d I d ]   [ i n t ]   I D E N T I T Y ( 1 , 1 )   N O T   N U L L ,  
 	 [ S t o r e I d ]   [ i n t ]   N O T   N U L L ,  
 	 [ T a b l e N a m e ]   [ n v a r c h a r ] ( 5 0 )   N O T   N U L L ,  
 	 [ F o r e i g n K e y I d ]   [ i n t ]   N O T   N U L L ,  
 	 [ F i e l d N a m e ]   [ n v a r c h a r ] ( 2 5 5 )   N O T   N U L L ,  
 	 [ F i e l d V a l u e ]   [ n v a r c h a r ] ( m a x )   N O T   N U L L ,  
   C O N S T R A I N T   [ a c _ C u s t o m F i e l d s _ P K ]   P R I M A R Y   K E Y   C L U S T E R E D    
 (  
 	 [ C u s t o m F i e l d I d ]   A S C  
 ) W I T H   ( P A D _ I N D E X     =   O F F ,   S T A T I S T I C S _ N O R E C O M P U T E     =   O F F ,   I G N O R E _ D U P _ K E Y   =   O F F ,   A L L O W _ R O W _ L O C K S     =   O N ,   A L L O W _ P A G E _ L O C K S     =   O N )   O N   [ P R I M A R Y ]  
 )   O N   [ P R I M A R Y ]  
 G O  
 / * * * * * *   O b j e c t :     T a b l e   [ d b o ] . [ a c _ C u r r e n c i e s ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 4   * * * * * * /  
 S E T   A N S I _ N U L L S   O N  
 G O  
 S E T   Q U O T E D _ I D E N T I F I E R   O N  
 G O  
 S E T   A N S I _ P A D D I N G   O N  
 G O  
 C R E A T E   T A B L E   [ d b o ] . [ a c _ C u r r e n c i e s ] (  
 	 [ C u r r e n c y I d ]   [ i n t ]   I D E N T I T Y ( 1 , 1 )   N O T   N U L L ,  
 	 [ S t o r e I d ]   [ i n t ]   N O T   N U L L ,  
 	 [ N a m e ]   [ n v a r c h a r ] ( 5 0 )   N O T   N U L L ,  
 	 [ C u r r e n c y S y m b o l ]   [ n v a r c h a r ] ( 4 0 )   N U L L ,  
 	 [ D e c i m a l D i g i t s ]   [ i n t ]   N O T   N U L L ,  
 	 [ D e c i m a l S e p a r a t o r ]   [ n v a r c h a r ] ( 4 )   N U L L ,  
 	 [ G r o u p S e p a r a t o r ]   [ n v a r c h a r ] ( 4 )   N U L L ,  
 	 [ G r o u p S i z e s ]   [ v a r c h a r ] ( 8 )   N U L L ,  
 	 [ N e g a t i v e P a t t e r n ]   [ t i n y i n t ]   N O T   N U L L ,  
 	 [ N e g a t i v e S i g n ]   [ v a r c h a r ] ( 4 )   N U L L ,  
 	 [ P o s i t i v e P a t t e r n ]   [ t i n y i n t ]   N O T   N U L L ,  
 	 [ I S O C o d e ]   [ v a r c h a r ] ( 3 )   N O T   N U L L ,  
 	 [ I S O C o d e P a t t e r n ]   [ t i n y i n t ]   N U L L ,  
 	 [ E x c h a n g e R a t e ]   [ d e c i m a l ] ( 1 2 ,   4 )   N O T   N U L L ,  
 	 [ A u t o U p d a t e ]   [ b i t ]   N O T   N U L L ,  
 	 [ L a s t U p d a t e ]   [ d a t e t i m e ]   N U L L ,  
   C O N S T R A I N T   [ a c _ C u r r e n c i e s _ P K ]   P R I M A R Y   K E Y   C L U S T E R E D    
 (  
 	 [ C u r r e n c y I d ]   A S C  
 ) W I T H   ( P A D _ I N D E X     =   O F F ,   S T A T I S T I C S _ N O R E C O M P U T E     =   O F F ,   I G N O R E _ D U P _ K E Y   =   O F F ,   A L L O W _ R O W _ L O C K S     =   O N ,   A L L O W _ P A G E _ L O C K S     =   O N )   O N   [ P R I M A R Y ]  
 )   O N   [ P R I M A R Y ]  
 G O  
 S E T   A N S I _ P A D D I N G   O F F  
 G O  
 / * * * * * *   O b j e c t :     T a b l e   [ d b o ] . [ a c _ C o u p o n s ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 4   * * * * * * /  
 S E T   A N S I _ N U L L S   O N  
 G O  
 S E T   Q U O T E D _ I D E N T I F I E R   O N  
 G O  
 C R E A T E   T A B L E   [ d b o ] . [ a c _ C o u p o n s ] (  
 	 [ C o u p o n I d ]   [ i n t ]   I D E N T I T Y ( 1 , 1 )   N O T   N U L L ,  
 	 [ S t o r e I d ]   [ i n t ]   N O T   N U L L ,  
 	 [ C o u p o n T y p e I d ]   [ t i n y i n t ]   N U L L ,  
 	 [ N a m e ]   [ n v a r c h a r ] ( 1 0 0 )   N O T   N U L L ,  
 	 [ C o u p o n C o d e ]   [ n v a r c h a r ] ( 5 0 )   N O T   N U L L ,  
 	 [ D i s c o u n t A m o u n t ]   [ d e c i m a l ] ( 1 2 ,   4 )   N O T   N U L L ,  
 	 [ I s P e r c e n t ]   [ b i t ]   N O T   N U L L ,  
 	 [ M a x V a l u e ]   [ d e c i m a l ] ( 1 2 ,   4 )   N O T   N U L L ,  
 	 [ M i n P u r c h a s e ]   [ d e c i m a l ] ( 1 2 ,   4 )   N O T   N U L L ,  
 	 [ M i n Q u a n t i t y ]   [ s m a l l i n t ]   N O T   N U L L ,  
 	 [ M a x Q u a n t i t y ]   [ s m a l l i n t ]   N O T   N U L L ,  
 	 [ Q u a n t i t y I n t e r v a l ]   [ s m a l l i n t ]   N O T   N U L L ,  
 	 [ M a x U s e s ]   [ s m a l l i n t ]   N O T   N U L L ,  
 	 [ M a x U s e s P e r C u s t o m e r ]   [ s m a l l i n t ]   N O T   N U L L ,  
 	 [ S t a r t D a t e ]   [ d a t e t i m e ]   N U L L ,  
 	 [ E n d D a t e ]   [ d a t e t i m e ]   N U L L ,  
 	 [ P r o d u c t R u l e I d ]   [ t i n y i n t ]   N O T   N U L L ,  
 	 [ A l l o w C o m b i n e ]   [ b i t ]   N O T   N U L L ,  
   C O N S T R A I N T   [ a c _ C o u p o n s _ P K ]   P R I M A R Y   K E Y   C L U S T E R E D    
 (  
 	 [ C o u p o n I d ]   A S C  
 ) W I T H   ( P A D _ I N D E X     =   O F F ,   S T A T I S T I C S _ N O R E C O M P U T E     =   O F F ,   I G N O R E _ D U P _ K E Y   =   O F F ,   A L L O W _ R O W _ L O C K S     =   O N ,   A L L O W _ P A G E _ L O C K S     =   O N )   O N   [ P R I M A R Y ]  
 )   O N   [ P R I M A R Y ]  
 G O  
 / * * * * * *   O b j e c t :     T a b l e   [ d b o ] . [ a c _ B a n n e d I P s ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 4   * * * * * * /  
 S E T   A N S I _ N U L L S   O N  
 G O  
 S E T   Q U O T E D _ I D E N T I F I E R   O N  
 G O  
 C R E A T E   T A B L E   [ d b o ] . [ a c _ B a n n e d I P s ] (  
 	 [ B a n n e d I P I d ]   [ i n t ]   I D E N T I T Y ( 1 , 1 )   N O T   N U L L ,  
 	 [ S t o r e I d ]   [ i n t ]   N O T   N U L L ,  
 	 [ I P R a n g e S t a r t ]   [ b i g i n t ]   N O T   N U L L ,  
 	 [ I P R a n g e E n d ]   [ b i g i n t ]   N O T   N U L L ,  
 	 [ C o m m e n t ]   [ n v a r c h a r ] ( 1 0 0 )   N U L L ,  
   C O N S T R A I N T   [ a c _ B a n n e d I P s _ P K ]   P R I M A R Y   K E Y   C L U S T E R E D    
 (  
 	 [ B a n n e d I P I d ]   A S C  
 ) W I T H   ( P A D _ I N D E X     =   O F F ,   S T A T I S T I C S _ N O R E C O M P U T E     =   O F F ,   I G N O R E _ D U P _ K E Y   =   O F F ,   A L L O W _ R O W _ L O C K S     =   O N ,   A L L O W _ P A G E _ L O C K S     =   O N )   O N   [ P R I M A R Y ]  
 )   O N   [ P R I M A R Y ]  
 G O  
 / * * * * * *   O b j e c t :     T a b l e   [ d b o ] . [ a c _ C a t e g o r i e s ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 4   * * * * * * /  
 S E T   A N S I _ N U L L S   O N  
 G O  
 S E T   Q U O T E D _ I D E N T I F I E R   O N  
 G O  
 S E T   A N S I _ P A D D I N G   O N  
 G O  
 C R E A T E   T A B L E   [ d b o ] . [ a c _ C a t e g o r i e s ] (  
 	 [ C a t e g o r y I d ]   [ i n t ]   I D E N T I T Y ( 1 , 1 )   N O T   N U L L ,  
 	 [ S t o r e I d ]   [ i n t ]   N O T   N U L L ,  
 	 [ P a r e n t I d ]   [ i n t ]   N O T   N U L L ,  
 	 [ N a m e ]   [ n v a r c h a r ] ( 1 0 0 )   N O T   N U L L ,  
 	 [ S u m m a r y ]   [ n v a r c h a r ] ( m a x )   N U L L ,  
 	 [ D e s c r i p t i o n ]   [ n v a r c h a r ] ( m a x )   N U L L ,  
 	 [ T h u m b n a i l U r l ]   [ v a r c h a r ] ( 2 5 5 )   N U L L ,  
 	 [ T h u m b n a i l A l t T e x t ]   [ n v a r c h a r ] ( 2 5 5 )   N U L L ,  
 	 [ D i s p l a y P a g e ]   [ v a r c h a r ] ( 1 0 0 )   N U L L ,  
 	 [ T h e m e ]   [ v a r c h a r ] ( 1 0 0 )   N U L L ,  
 	 [ H t m l H e a d ]   [ n v a r c h a r ] ( m a x )   N U L L ,  
 	 [ V i s i b i l i t y I d ]   [ t i n y i n t ]   N O T   N U L L ,  
   C O N S T R A I N T   [ a c _ C a t e g o r i e s _ P K ]   P R I M A R Y   K E Y   C L U S T E R E D    
 (  
 	 [ C a t e g o r y I d ]   A S C  
 ) W I T H   ( P A D _ I N D E X     =   O F F ,   S T A T I S T I C S _ N O R E C O M P U T E     =   O F F ,   I G N O R E _ D U P _ K E Y   =   O F F ,   A L L O W _ R O W _ L O C K S     =   O N ,   A L L O W _ P A G E _ L O C K S     =   O N )   O N   [ P R I M A R Y ]  
 )   O N   [ P R I M A R Y ]  
 G O  
 S E T   A N S I _ P A D D I N G   O F F  
 G O  
 / * * * * * *   O b j e c t :     T a b l e   [ d b o ] . [ a c _ O p t i o n C h o i c e s ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 4   * * * * * * /  
 S E T   A N S I _ N U L L S   O N  
 G O  
 S E T   Q U O T E D _ I D E N T I F I E R   O N  
 G O  
 S E T   A N S I _ P A D D I N G   O N  
 G O  
 C R E A T E   T A B L E   [ d b o ] . [ a c _ O p t i o n C h o i c e s ] (  
 	 [ O p t i o n C h o i c e I d ]   [ i n t ]   I D E N T I T Y ( 1 , 1 )   N O T   N U L L ,  
 	 [ O p t i o n I d ]   [ i n t ]   N O T   N U L L ,  
 	 [ N a m e ]   [ n v a r c h a r ] ( 1 0 0 )   N O T   N U L L ,  
 	 [ T h u m b n a i l U r l ]   [ v a r c h a r ] ( 2 5 5 )   N U L L ,  
 	 [ I m a g e U r l ]   [ v a r c h a r ] ( 2 5 5 )   N U L L ,  
 	 [ P r i c e M o d i f i e r ]   [ d e c i m a l ] ( 1 0 ,   2 )   N U L L ,  
 	 [ C o g s M o d i f i e r ]   [ d e c i m a l ] ( 1 0 ,   2 )   N U L L ,  
 	 [ W e i g h t M o d i f i e r ]   [ d e c i m a l ] ( 1 0 ,   2 )   N U L L ,  
 	 [ S k u M o d i f i e r ]   [ n v a r c h a r ] ( 2 0 )   N U L L ,  
 	 [ O r d e r B y ]   [ s m a l l i n t ]   N O T   N U L L ,  
   C O N S T R A I N T   [ a c _ A t t r i b u t e O p t i o n s _ P K ]   P R I M A R Y   K E Y   C L U S T E R E D    
 (  
 	 [ O p t i o n C h o i c e I d ]   A S C  
 ) W I T H   ( P A D _ I N D E X     =   O F F ,   S T A T I S T I C S _ N O R E C O M P U T E     =   O F F ,   I G N O R E _ D U P _ K E Y   =   O F F ,   A L L O W _ R O W _ L O C K S     =   O N ,   A L L O W _ P A G E _ L O C K S     =   O N )   O N   [ P R I M A R Y ]  
 )   O N   [ P R I M A R Y ]  
 G O  
 S E T   A N S I _ P A D D I N G   O F F  
 G O  
 / * * * * * *   O b j e c t :     T a b l e   [ d b o ] . [ a c _ L i n k s ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 4   * * * * * * /  
 S E T   A N S I _ N U L L S   O N  
 G O  
 S E T   Q U O T E D _ I D E N T I F I E R   O N  
 G O  
 S E T   A N S I _ P A D D I N G   O N  
 G O  
 C R E A T E   T A B L E   [ d b o ] . [ a c _ L i n k s ] (  
 	 [ L i n k I d ]   [ i n t ]   I D E N T I T Y ( 1 , 1 )   N O T   N U L L ,  
 	 [ S t o r e I d ]   [ i n t ]   N O T   N U L L ,  
 	 [ N a m e ]   [ n v a r c h a r ] ( 1 0 0 )   N O T   N U L L ,  
 	 [ T a r g e t U r l ]   [ v a r c h a r ] ( 2 5 5 )   N O T   N U L L ,  
 	 [ T a r g e t W i n d o w ]   [ v a r c h a r ] ( 4 0 )   N U L L ,  
 	 [ S u m m a r y ]   [ n v a r c h a r ] ( m a x )   N U L L ,  
 	 [ D e s c r i p t i o n ]   [ n v a r c h a r ] ( m a x )   N U L L ,  
 	 [ T h u m b n a i l U r l ]   [ v a r c h a r ] ( 2 5 5 )   N U L L ,  
 	 [ T h u m b n a i l A l t T e x t ]   [ n v a r c h a r ] ( 2 5 5 )   N U L L ,  
 	 [ D i s p l a y P a g e ]   [ v a r c h a r ] ( 1 0 0 )   N U L L ,  
 	 [ T h e m e ]   [ v a r c h a r ] ( 1 0 0 )   N U L L ,  
 	 [ H t m l H e a d ]   [ n v a r c h a r ] ( m a x )   N U L L ,  
 	 [ V i s i b i l i t y I d ]   [ t i n y i n t ]   N O T   N U L L ,  
   C O N S T R A I N T   [ a c _ L i n k s _ P K ]   P R I M A R Y   K E Y   C L U S T E R E D    
 (  
 	 [ L i n k I d ]   A S C  
 ) W I T H   ( P A D _ I N D E X     =   O F F ,   S T A T I S T I C S _ N O R E C O M P U T E     =   O F F ,   I G N O R E _ D U P _ K E Y   =   O F F ,   A L L O W _ R O W _ L O C K S     =   O N ,   A L L O W _ P A G E _ L O C K S     =   O N )   O N   [ P R I M A R Y ]  
 )   O N   [ P R I M A R Y ]  
 G O  
 S E T   A N S I _ P A D D I N G   O F F  
 G O  
 / * * * * * *   O b j e c t :     T a b l e   [ d b o ] . [ a c _ L i c e n s e A g r e e m e n t s ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 4   * * * * * * /  
 S E T   A N S I _ N U L L S   O N  
 G O  
 S E T   Q U O T E D _ I D E N T I F I E R   O N  
 G O  
 C R E A T E   T A B L E   [ d b o ] . [ a c _ L i c e n s e A g r e e m e n t s ] (  
 	 [ L i c e n s e A g r e e m e n t I d ]   [ i n t ]   I D E N T I T Y ( 1 , 1 )   N O T   N U L L ,  
 	 [ S t o r e I d ]   [ i n t ]   N O T   N U L L ,  
 	 [ D i s p l a y N a m e ]   [ n v a r c h a r ] ( 1 0 0 )   N O T   N U L L ,  
 	 [ A g r e e m e n t T e x t ]   [ n v a r c h a r ] ( m a x )   N O T   N U L L ,  
 	 [ I s H T M L ]   [ b i t ]   N O T   N U L L ,  
   C O N S T R A I N T   [ a c _ L i c e n s e A g r e e m e n t s _ P K ]   P R I M A R Y   K E Y   C L U S T E R E D    
 (  
 	 [ L i c e n s e A g r e e m e n t I d ]   A S C  
 ) W I T H   ( P A D _ I N D E X     =   O F F ,   S T A T I S T I C S _ N O R E C O M P U T E     =   O F F ,   I G N O R E _ D U P _ K E Y   =   O F F ,   A L L O W _ R O W _ L O C K S     =   O N ,   A L L O W _ P A G E _ L O C K S     =   O N )   O N   [ P R I M A R Y ]  
 )   O N   [ P R I M A R Y ]  
 G O  
 / * * * * * *   O b j e c t :     T a b l e   [ d b o ] . [ a c _ E m a i l L i s t s ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 4   * * * * * * /  
 S E T   A N S I _ N U L L S   O N  
 G O  
 S E T   Q U O T E D _ I D E N T I F I E R   O N  
 G O  
 C R E A T E   T A B L E   [ d b o ] . [ a c _ E m a i l L i s t s ] (  
 	 [ E m a i l L i s t I d ]   [ i n t ]   I D E N T I T Y ( 1 , 1 )   N O T   N U L L ,  
 	 [ S t o r e I d ]   [ i n t ]   N O T   N U L L ,  
 	 [ N a m e ]   [ n v a r c h a r ] ( 1 0 0 )   N O T   N U L L ,  
 	 [ D e s c r i p t i o n ]   [ n v a r c h a r ] ( 2 5 5 )   N U L L ,  
 	 [ I s P u b l i c ]   [ b i t ]   N O T   N U L L ,  
 	 [ S i g n u p R u l e I d ]   [ s m a l l i n t ]   N O T   N U L L ,  
 	 [ S i g n u p E m a i l T e m p l a t e I d ]   [ i n t ]   N U L L ,  
 	 [ L a s t S e n d D a t e ]   [ d a t e t i m e ]   N U L L ,  
   C O N S T R A I N T   [ a c _ E m a i l L i s t s _ P K ]   P R I M A R Y   K E Y   C L U S T E R E D    
 (  
 	 [ E m a i l L i s t I d ]   A S C  
 ) W I T H   ( P A D _ I N D E X     =   O F F ,   S T A T I S T I C S _ N O R E C O M P U T E     =   O F F ,   I G N O R E _ D U P _ K E Y   =   O F F ,   A L L O W _ R O W _ L O C K S     =   O N ,   A L L O W _ P A G E _ L O C K S     =   O N )   O N   [ P R I M A R Y ]  
 )   O N   [ P R I M A R Y ]  
 G O  
 / * * * * * *   O b j e c t :     T a b l e   [ d b o ] . [ a c _ E m a i l T e m p l a t e s ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 4   * * * * * * /  
 S E T   A N S I _ N U L L S   O N  
 G O  
 S E T   Q U O T E D _ I D E N T I F I E R   O N  
 G O  
 C R E A T E   T A B L E   [ d b o ] . [ a c _ E m a i l T e m p l a t e s ] (  
 	 [ E m a i l T e m p l a t e I d ]   [ i n t ]   I D E N T I T Y ( 1 , 1 )   N O T   N U L L ,  
 	 [ S t o r e I d ]   [ i n t ]   N O T   N U L L ,  
 	 [ N a m e ]   [ n v a r c h a r ] ( 1 0 0 )   N O T   N U L L ,  
 	 [ T o A d d r e s s ]   [ n v a r c h a r ] ( 2 5 5 )   N O T   N U L L ,  
 	 [ F r o m A d d r e s s ]   [ n v a r c h a r ] ( 2 5 5 )   N O T   N U L L ,  
 	 [ R e p l y T o A d d r e s s ]   [ n v a r c h a r ] ( 2 5 5 )   N U L L ,  
 	 [ C C L i s t ]   [ n v a r c h a r ] ( 2 5 5 )   N U L L ,  
 	 [ B C C L i s t ]   [ n v a r c h a r ] ( 2 5 5 )   N U L L ,  
 	 [ S u b j e c t ]   [ n v a r c h a r ] ( 2 5 5 )   N U L L ,  
 	 [ I s H T M L ]   [ b i t ]   N O T   N U L L ,  
 	 [ C o n t e n t F i l e N a m e ]   [ n v a r c h a r ] ( 1 0 0 )   N U L L ,  
   C O N S T R A I N T   [ a c _ E m a i l T e m p l a t e s _ P K ]   P R I M A R Y   K E Y   C L U S T E R E D    
 (  
 	 [ E m a i l T e m p l a t e I d ]   A S C  
 ) W I T H   ( P A D _ I N D E X     =   O F F ,   S T A T I S T I C S _ N O R E C O M P U T E     =   O F F ,   I G N O R E _ D U P _ K E Y   =   O F F ,   A L L O W _ R O W _ L O C K S     =   O N ,   A L L O W _ P A G E _ L O C K S     =   O N )   O N   [ P R I M A R Y ]  
 )   O N   [ P R I M A R Y ]  
 G O  
 / * * * * * *   O b j e c t :     T a b l e   [ d b o ] . [ a c _ S t o r e S e t t i n g s ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 4   * * * * * * /  
 S E T   A N S I _ N U L L S   O N  
 G O  
 S E T   Q U O T E D _ I D E N T I F I E R   O N  
 G O  
 C R E A T E   T A B L E   [ d b o ] . [ a c _ S t o r e S e t t i n g s ] (  
 	 [ S t o r e S e t t i n g I d ]   [ i n t ]   I D E N T I T Y ( 1 , 1 )   N O T   N U L L ,  
 	 [ S t o r e I d ]   [ i n t ]   N O T   N U L L ,  
 	 [ F i e l d N a m e ]   [ n v a r c h a r ] ( 2 5 5 )   N O T   N U L L ,  
 	 [ F i e l d V a l u e ]   [ n v a r c h a r ] ( m a x )   N O T   N U L L ,  
   C O N S T R A I N T   [ a c _ S t o r e S e t t i n g s _ P K ]   P R I M A R Y   K E Y   C L U S T E R E D    
 (  
 	 [ S t o r e S e t t i n g I d ]   A S C  
 ) W I T H   ( P A D _ I N D E X     =   O F F ,   S T A T I S T I C S _ N O R E C O M P U T E     =   O F F ,   I G N O R E _ D U P _ K E Y   =   O F F ,   A L L O W _ R O W _ L O C K S     =   O N ,   A L L O W _ P A G E _ L O C K S     =   O N )   O N   [ P R I M A R Y ]  
 )   O N   [ P R I M A R Y ]  
 G O  
 / * * * * * *   O b j e c t :     T a b l e   [ d b o ] . [ a c _ V o l u m e D i s c o u n t s ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 4   * * * * * * /  
 S E T   A N S I _ N U L L S   O N  
 G O  
 S E T   Q U O T E D _ I D E N T I F I E R   O N  
 G O  
 C R E A T E   T A B L E   [ d b o ] . [ a c _ V o l u m e D i s c o u n t s ] (  
 	 [ V o l u m e D i s c o u n t I d ]   [ i n t ]   I D E N T I T Y ( 1 , 1 )   N O T   N U L L ,  
 	 [ S t o r e I d ]   [ i n t ]   N O T   N U L L ,  
 	 [ N a m e ]   [ n v a r c h a r ] ( 1 0 0 )   N O T   N U L L ,  
 	 [ I s V a l u e B a s e d ]   [ b i t ]   N O T   N U L L ,  
 	 [ I s G l o b a l ]   [ b i t ]   N O T   N U L L ,  
   C O N S T R A I N T   [ a c _ V o l u m e D i s c o u n t s _ P K ]   P R I M A R Y   K E Y   C L U S T E R E D    
 (  
 	 [ V o l u m e D i s c o u n t I d ]   A S C  
 ) W I T H   ( P A D _ I N D E X     =   O F F ,   S T A T I S T I C S _ N O R E C O M P U T E     =   O F F ,   I G N O R E _ D U P _ K E Y   =   O F F ,   A L L O W _ R O W _ L O C K S     =   O N ,   A L L O W _ P A G E _ L O C K S     =   O N )   O N   [ P R I M A R Y ]  
 )   O N   [ P R I M A R Y ]  
 G O  
 / * * * * * *   O b j e c t :     T a b l e   [ d b o ] . [ a c _ W e b p a g e s ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 4   * * * * * * /  
 S E T   A N S I _ N U L L S   O N  
 G O  
 S E T   Q U O T E D _ I D E N T I F I E R   O N  
 G O  
 S E T   A N S I _ P A D D I N G   O N  
 G O  
 C R E A T E   T A B L E   [ d b o ] . [ a c _ W e b p a g e s ] (  
 	 [ W e b p a g e I d ]   [ i n t ]   I D E N T I T Y ( 1 , 1 )   N O T   N U L L ,  
 	 [ S t o r e I d ]   [ i n t ]   N O T   N U L L ,  
 	 [ N a m e ]   [ n v a r c h a r ] ( 1 0 0 )   N U L L ,  
 	 [ S u m m a r y ]   [ n v a r c h a r ] ( m a x )   N U L L ,  
 	 [ D e s c r i p t i o n ]   [ n v a r c h a r ] ( m a x )   N U L L ,  
 	 [ T h u m b n a i l U r l ]   [ v a r c h a r ] ( 2 5 5 )   N U L L ,  
 	 [ T h u m b n a i l A l t T e x t ]   [ n v a r c h a r ] ( 2 5 5 )   N U L L ,  
 	 [ D i s p l a y P a g e ]   [ v a r c h a r ] ( 1 0 0 )   N U L L ,  
 	 [ T h e m e ]   [ v a r c h a r ] ( 1 0 0 )   N U L L ,  
 	 [ H t m l H e a d ]   [ n v a r c h a r ] ( m a x )   N U L L ,  
 	 [ V i s i b i l i t y I d ]   [ t i n y i n t ]   N O T   N U L L ,  
   C O N S T R A I N T   [ a c _ W e b p a g e s _ P K ]   P R I M A R Y   K E Y   C L U S T E R E D    
 (  
 	 [ W e b p a g e I d ]   A S C  
 ) W I T H   ( P A D _ I N D E X     =   O F F ,   S T A T I S T I C S _ N O R E C O M P U T E     =   O F F ,   I G N O R E _ D U P _ K E Y   =   O F F ,   A L L O W _ R O W _ L O C K S     =   O N ,   A L L O W _ P A G E _ L O C K S     =   O N )   O N   [ P R I M A R Y ]  
 )   O N   [ P R I M A R Y ]  
 G O  
 S E T   A N S I _ P A D D I N G   O F F  
 G O  
 / * * * * * *   O b j e c t :     T a b l e   [ d b o ] . [ a c _ V o l u m e D i s c o u n t L e v e l s ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 4   * * * * * * /  
 S E T   A N S I _ N U L L S   O N  
 G O  
 S E T   Q U O T E D _ I D E N T I F I E R   O N  
 G O  
 C R E A T E   T A B L E   [ d b o ] . [ a c _ V o l u m e D i s c o u n t L e v e l s ] (  
 	 [ V o l u m e D i s c o u n t L e v e l I d ]   [ i n t ]   I D E N T I T Y ( 1 , 1 )   N O T   N U L L ,  
 	 [ V o l u m e D i s c o u n t I d ]   [ i n t ]   N O T   N U L L ,  
 	 [ M i n V a l u e ]   [ d e c i m a l ] ( 1 2 ,   4 )   N O T   N U L L ,  
 	 [ M a x V a l u e ]   [ d e c i m a l ] ( 1 2 ,   4 )   N O T   N U L L ,  
 	 [ D i s c o u n t A m o u n t ]   [ d e c i m a l ] ( 1 2 ,   4 )   N O T   N U L L ,  
 	 [ I s P e r c e n t ]   [ b i t ]   N O T   N U L L ,  
   C O N S T R A I N T   [ a c _ V o l u m e D i s c o u n t L e v e l s _ P K ]   P R I M A R Y   K E Y   C L U S T E R E D    
 (  
 	 [ V o l u m e D i s c o u n t L e v e l I d ]   A S C  
 ) W I T H   ( P A D _ I N D E X     =   O F F ,   S T A T I S T I C S _ N O R E C O M P U T E     =   O F F ,   I G N O R E _ D U P _ K E Y   =   O F F ,   A L L O W _ R O W _ L O C K S     =   O N ,   A L L O W _ P A G E _ L O C K S     =   O N )   O N   [ P R I M A R Y ]  
 )   O N   [ P R I M A R Y ]  
 G O  
 / * * * * * *   O b j e c t :     T a b l e   [ d b o ] . [ a c _ V o l u m e D i s c o u n t G r o u p s ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 4   * * * * * * /  
 S E T   A N S I _ N U L L S   O N  
 G O  
 S E T   Q U O T E D _ I D E N T I F I E R   O N  
 G O  
 C R E A T E   T A B L E   [ d b o ] . [ a c _ V o l u m e D i s c o u n t G r o u p s ] (  
 	 [ V o l u m e D i s c o u n t I d ]   [ i n t ]   N O T   N U L L ,  
 	 [ G r o u p I d ]   [ i n t ]   N O T   N U L L ,  
   C O N S T R A I N T   [ a c _ V o l u m e D i s c o u n t G r o u p s _ P K ]   P R I M A R Y   K E Y   C L U S T E R E D    
 (  
 	 [ G r o u p I d ]   A S C ,  
 	 [ V o l u m e D i s c o u n t I d ]   A S C  
 ) W I T H   ( P A D _ I N D E X     =   O F F ,   S T A T I S T I C S _ N O R E C O M P U T E     =   O F F ,   I G N O R E _ D U P _ K E Y   =   O F F ,   A L L O W _ R O W _ L O C K S     =   O N ,   A L L O W _ P A G E _ L O C K S     =   O N )   O N   [ P R I M A R Y ]  
 )   O N   [ P R I M A R Y ]  
 G O  
 / * * * * * *   O b j e c t :     T a b l e   [ d b o ] . [ a c _ V e n d o r G r o u p s ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 4   * * * * * * /  
 S E T   A N S I _ N U L L S   O N  
 G O  
 S E T   Q U O T E D _ I D E N T I F I E R   O N  
 G O  
 C R E A T E   T A B L E   [ d b o ] . [ a c _ V e n d o r G r o u p s ] (  
 	 [ V e n d o r I d ]   [ i n t ]   N O T   N U L L ,  
 	 [ G r o u p I d ]   [ i n t ]   N O T   N U L L ,  
   C O N S T R A I N T   [ a c _ V e n d o r G r o u p s _ P K ]   P R I M A R Y   K E Y   C L U S T E R E D    
 (  
 	 [ G r o u p I d ]   A S C ,  
 	 [ V e n d o r I d ]   A S C  
 ) W I T H   ( P A D _ I N D E X     =   O F F ,   S T A T I S T I C S _ N O R E C O M P U T E     =   O F F ,   I G N O R E _ D U P _ K E Y   =   O F F ,   A L L O W _ R O W _ L O C K S     =   O N ,   A L L O W _ P A G E _ L O C K S     =   O N )   O N   [ P R I M A R Y ]  
 )   O N   [ P R I M A R Y ]  
 G O  
 / * * * * * *   O b j e c t :     T a b l e   [ d b o ] . [ a c _ E m a i l L i s t U s e r s ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 4   * * * * * * /  
 S E T   A N S I _ N U L L S   O N  
 G O  
 S E T   Q U O T E D _ I D E N T I F I E R   O N  
 G O  
 S E T   A N S I _ P A D D I N G   O N  
 G O  
 C R E A T E   T A B L E   [ d b o ] . [ a c _ E m a i l L i s t U s e r s ] (  
 	 [ E m a i l L i s t I d ]   [ i n t ]   N O T   N U L L ,  
 	 [ E m a i l ]   [ n v a r c h a r ] ( 2 5 5 )   N O T   N U L L ,  
 	 [ S i g n u p D a t e ]   [ d a t e t i m e ]   N O T   N U L L ,  
 	 [ S i g n u p I P ]   [ v a r c h a r ] ( 3 9 )   N U L L ,  
 	 [ L a s t S e n d D a t e ]   [ d a t e t i m e ]   N U L L ,  
 	 [ F a i l u r e C o u n t ]   [ s m a l l i n t ]   N O T   N U L L ,  
   C O N S T R A I N T   [ a c _ E m a i l L i s t U s e r s _ P K ]   P R I M A R Y   K E Y   C L U S T E R E D    
 (  
 	 [ E m a i l L i s t I d ]   A S C ,  
 	 [ E m a i l ]   A S C  
 ) W I T H   ( P A D _ I N D E X     =   O F F ,   S T A T I S T I C S _ N O R E C O M P U T E     =   O F F ,   I G N O R E _ D U P _ K E Y   =   O F F ,   A L L O W _ R O W _ L O C K S     =   O N ,   A L L O W _ P A G E _ L O C K S     =   O N )   O N   [ P R I M A R Y ]  
 )   O N   [ P R I M A R Y ]  
 G O  
 S E T   A N S I _ P A D D I N G   O F F  
 G O  
 / * * * * * *   O b j e c t :     T a b l e   [ d b o ] . [ a c _ E m a i l L i s t S i g n u p s ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 4   * * * * * * /  
 S E T   A N S I _ N U L L S   O N  
 G O  
 S E T   Q U O T E D _ I D E N T I F I E R   O N  
 G O  
 C R E A T E   T A B L E   [ d b o ] . [ a c _ E m a i l L i s t S i g n u p s ] (  
 	 [ E m a i l L i s t S i g n u p I d ]   [ i n t ]   I D E N T I T Y ( 1 , 1 )   N O T   N U L L ,  
 	 [ E m a i l L i s t I d ]   [ i n t ]   N O T   N U L L ,  
 	 [ E m a i l ]   [ n v a r c h a r ] ( 2 5 5 )   N O T   N U L L ,  
 	 [ S i g n u p D a t e ]   [ d a t e t i m e ]   N O T   N U L L ,  
   C O N S T R A I N T   [ a c _ E m a i l L i s t S i g n u p s _ P K ]   P R I M A R Y   K E Y   C L U S T E R E D    
 (  
 	 [ E m a i l L i s t S i g n u p I d ]   A S C  
 ) W I T H   ( P A D _ I N D E X     =   O F F ,   S T A T I S T I C S _ N O R E C O M P U T E     =   O F F ,   I G N O R E _ D U P _ K E Y   =   O F F ,   A L L O W _ R O W _ L O C K S     =   O N ,   A L L O W _ P A G E _ L O C K S     =   O N )   O N   [ P R I M A R Y ]  
 )   O N   [ P R I M A R Y ]  
 G O  
 / * * * * * *   O b j e c t :     T a b l e   [ d b o ] . [ a c _ G r o u p R o l e s ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 4   * * * * * * /  
 S E T   A N S I _ N U L L S   O N  
 G O  
 S E T   Q U O T E D _ I D E N T I F I E R   O N  
 G O  
 C R E A T E   T A B L E   [ d b o ] . [ a c _ G r o u p R o l e s ] (  
 	 [ G r o u p I d ]   [ i n t ]   N O T   N U L L ,  
 	 [ R o l e I d ]   [ i n t ]   N O T   N U L L ,  
   C O N S T R A I N T   [ a c _ G r o u p R o l e s _ P K ]   P R I M A R Y   K E Y   C L U S T E R E D    
 (  
 	 [ G r o u p I d ]   A S C ,  
 	 [ R o l e I d ]   A S C  
 ) W I T H   ( P A D _ I N D E X     =   O F F ,   S T A T I S T I C S _ N O R E C O M P U T E     =   O F F ,   I G N O R E _ D U P _ K E Y   =   O F F ,   A L L O W _ R O W _ L O C K S     =   O N ,   A L L O W _ P A G E _ L O C K S     =   O N )   O N   [ P R I M A R Y ]  
 )   O N   [ P R I M A R Y ]  
 G O  
 / * * * * * *   O b j e c t :     T a b l e   [ d b o ] . [ a c _ C a t a l o g N o d e s ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 4   * * * * * * /  
 S E T   A N S I _ N U L L S   O N  
 G O  
 S E T   Q U O T E D _ I D E N T I F I E R   O N  
 G O  
 C R E A T E   T A B L E   [ d b o ] . [ a c _ C a t a l o g N o d e s ] (  
 	 [ C a t e g o r y I d ]   [ i n t ]   N O T   N U L L ,  
 	 [ C a t a l o g N o d e I d ]   [ i n t ]   N O T   N U L L ,  
 	 [ C a t a l o g N o d e T y p e I d ]   [ t i n y i n t ]   N O T   N U L L ,  
 	 [ O r d e r B y ]   [ s m a l l i n t ]   N O T   N U L L ,  
   C O N S T R A I N T   [ a c _ C a t a l o g N o d e s _ P K ]   P R I M A R Y   K E Y   C L U S T E R E D    
 (  
 	 [ C a t a l o g N o d e I d ]   A S C ,  
 	 [ C a t e g o r y I d ]   A S C ,  
 	 [ C a t a l o g N o d e T y p e I d ]   A S C  
 ) W I T H   ( P A D _ I N D E X     =   O F F ,   S T A T I S T I C S _ N O R E C O M P U T E     =   O F F ,   I G N O R E _ D U P _ K E Y   =   O F F ,   A L L O W _ R O W _ L O C K S     =   O N ,   A L L O W _ P A G E _ L O C K S     =   O N )   O N   [ P R I M A R Y ]  
 )   O N   [ P R I M A R Y ]  
 G O  
 / * * * * * *   O b j e c t :     T a b l e   [ d b o ] . [ a c _ C a t e g o r y V o l u m e D i s c o u n t s ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 4   * * * * * * /  
 S E T   A N S I _ N U L L S   O N  
 G O  
 S E T   Q U O T E D _ I D E N T I F I E R   O N  
 G O  
 C R E A T E   T A B L E   [ d b o ] . [ a c _ C a t e g o r y V o l u m e D i s c o u n t s ] (  
 	 [ C a t e g o r y I d ]   [ i n t ]   N O T   N U L L ,  
 	 [ V o l u m e D i s c o u n t I d ]   [ i n t ]   N O T   N U L L ,  
   C O N S T R A I N T   [ a c _ C a t e g o r y V o l u m e D i s c o u n t s _ P K ]   P R I M A R Y   K E Y   N O N C L U S T E R E D    
 (  
 	 [ C a t e g o r y I d ]   A S C ,  
 	 [ V o l u m e D i s c o u n t I d ]   A S C  
 ) W I T H   ( P A D _ I N D E X     =   O F F ,   S T A T I S T I C S _ N O R E C O M P U T E     =   O F F ,   I G N O R E _ D U P _ K E Y   =   O F F ,   A L L O W _ R O W _ L O C K S     =   O N ,   A L L O W _ P A G E _ L O C K S     =   O N )   O N   [ P R I M A R Y ]  
 )   O N   [ P R I M A R Y ]  
 G O  
 / * * * * * *   O b j e c t :     T a b l e   [ d b o ] . [ a c _ C a t e g o r y P a r e n t s ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 4   * * * * * * /  
 S E T   A N S I _ N U L L S   O N  
 G O  
 S E T   Q U O T E D _ I D E N T I F I E R   O N  
 G O  
 C R E A T E   T A B L E   [ d b o ] . [ a c _ C a t e g o r y P a r e n t s ] (  
 	 [ C a t e g o r y I d ]   [ i n t ]   N O T   N U L L ,  
 	 [ P a r e n t I d ]   [ i n t ]   N O T   N U L L ,  
 	 [ P a r e n t L e v e l ]   [ t i n y i n t ]   N U L L ,  
 	 [ P a r e n t N u m b e r ]   [ t i n y i n t ]   N U L L ,  
   C O N S T R A I N T   [ a c _ C a t e g o r y P a r e n t s _ P K ]   P R I M A R Y   K E Y   C L U S T E R E D    
 (  
 	 [ C a t e g o r y I d ]   A S C ,  
 	 [ P a r e n t I d ]   A S C  
 ) W I T H   ( P A D _ I N D E X     =   O F F ,   S T A T I S T I C S _ N O R E C O M P U T E     =   O F F ,   I G N O R E _ D U P _ K E Y   =   O F F ,   A L L O W _ R O W _ L O C K S     =   O N ,   A L L O W _ P A G E _ L O C K S     =   O N )   O N   [ P R I M A R Y ]  
 )   O N   [ P R I M A R Y ]  
 G O  
 / * * * * * *   O b j e c t :     T a b l e   [ d b o ] . [ a c _ D i g i t a l G o o d s ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 4   * * * * * * /  
 S E T   A N S I _ N U L L S   O N  
 G O  
 S E T   Q U O T E D _ I D E N T I F I E R   O N  
 G O  
 S E T   A N S I _ P A D D I N G   O N  
 G O  
 C R E A T E   T A B L E   [ d b o ] . [ a c _ D i g i t a l G o o d s ] (  
 	 [ D i g i t a l G o o d I d ]   [ i n t ]   I D E N T I T Y ( 1 , 1 )   N O T   N U L L ,  
 	 [ S t o r e I d ]   [ i n t ]   N O T   N U L L ,  
 	 [ N a m e ]   [ n v a r c h a r ] ( 1 0 0 )   N O T   N U L L ,  
 	 [ F i l e N a m e ]   [ n v a r c h a r ] ( 1 0 0 )   N U L L ,  
 	 [ F i l e S i z e ]   [ b i g i n t ]   N O T   N U L L ,  
 	 [ M a x D o w n l o a d s ]   [ t i n y i n t ]   N U L L ,  
 	 [ D o w n l o a d T i m e o u t ]   [ n v a r c h a r ] ( 1 5 )   N U L L ,  
 	 [ A c t i v a t i o n T i m e o u t ]   [ n v a r c h a r ] ( 1 5 )   N U L L ,  
 	 [ M e d i a K e y ]   [ n v a r c h a r ] ( 1 0 0 )   N U L L ,  
 	 [ S e r v e r F i l e N a m e ]   [ v a r c h a r ] ( 2 5 5 )   N U L L ,  
 	 [ S e r i a l K e y P r o v i d e r I d ]   [ v a r c h a r ] ( 2 5 5 )   N U L L ,  
 	 [ S e r i a l K e y C o n f i g D a t a ]   [ n v a r c h a r ] ( m a x )   N U L L ,  
 	 [ A c t i v a t i o n M o d e I d ]   [ t i n y i n t ]   N O T   N U L L ,  
 	 [ A c t i v a t i o n E m a i l I d ]   [ i n t ]   N U L L ,  
 	 [ F u l f i l l m e n t E m a i l I d ]   [ i n t ]   N U L L ,  
 	 [ R e a d m e I d ]   [ i n t ]   N U L L ,  
 	 [ L i c e n s e A g r e e m e n t I d ]   [ i n t ]   N U L L ,  
 	 [ L i c e n s e A g r e e m e n t M o d e I d ]   [ t i n y i n t ]   N O T   N U L L ,  
 	 [ F u l f i l l m e n t M o d e I d ]   [ t i n y i n t ]   N O T   N U L L ,  
 	 [ E n a b l e S e r i a l K e y s ]   [ b i t ]   N O T   N U L L ,  
   C O N S T R A I N T   [ a c _ D i g i t a l G o o d s _ P K ]   P R I M A R Y   K E Y   C L U S T E R E D    
 (  
 	 [ D i g i t a l G o o d I d ]   A S C  
 ) W I T H   ( P A D _ I N D E X     =   O F F ,   S T A T I S T I C S _ N O R E C O M P U T E     =   O F F ,   I G N O R E _ D U P _ K E Y   =   O F F ,   A L L O W _ R O W _ L O C K S     =   O N ,   A L L O W _ P A G E _ L O C K S     =   O N )   O N   [ P R I M A R Y ]  
 )   O N   [ P R I M A R Y ]  
 G O  
 S E T   A N S I _ P A D D I N G   O F F  
 G O  
 / * * * * * *   O b j e c t :     T a b l e   [ d b o ] . [ a c _ O r d e r S t a t u s E m a i l s ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 4   * * * * * * /  
 S E T   A N S I _ N U L L S   O N  
 G O  
 S E T   Q U O T E D _ I D E N T I F I E R   O N  
 G O  
 C R E A T E   T A B L E   [ d b o ] . [ a c _ O r d e r S t a t u s E m a i l s ] (  
 	 [ O r d e r S t a t u s I d ]   [ i n t ]   N O T   N U L L ,  
 	 [ E m a i l T e m p l a t e I d ]   [ i n t ]   N O T   N U L L ,  
   C O N S T R A I N T   [ a c _ O r d e r S t a t u s E m a i l s _ P K ]   P R I M A R Y   K E Y   C L U S T E R E D    
 (  
 	 [ E m a i l T e m p l a t e I d ]   A S C ,  
 	 [ O r d e r S t a t u s I d ]   A S C  
 ) W I T H   ( P A D _ I N D E X     =   O F F ,   S T A T I S T I C S _ N O R E C O M P U T E     =   O F F ,   I G N O R E _ D U P _ K E Y   =   O F F ,   A L L O W _ R O W _ L O C K S     =   O N ,   A L L O W _ P A G E _ L O C K S     =   O N )   O N   [ P R I M A R Y ]  
 )   O N   [ P R I M A R Y ]  
 G O  
 / * * * * * *   O b j e c t :     T a b l e   [ d b o ] . [ a c _ O r d e r S t a t u s A c t i o n s ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 4   * * * * * * /  
 S E T   A N S I _ N U L L S   O N  
 G O  
 S E T   Q U O T E D _ I D E N T I F I E R   O N  
 G O  
 C R E A T E   T A B L E   [ d b o ] . [ a c _ O r d e r S t a t u s A c t i o n s ] (  
 	 [ O r d e r S t a t u s I d ]   [ i n t ]   N O T   N U L L ,  
 	 [ O r d e r A c t i o n I d ]   [ s m a l l i n t ]   N O T   N U L L ,  
   C O N S T R A I N T   [ a c _ O r d e r S t a t u s A c t i o n s _ P K ]   P R I M A R Y   K E Y   C L U S T E R E D    
 (  
 	 [ O r d e r A c t i o n I d ]   A S C ,  
 	 [ O r d e r S t a t u s I d ]   A S C  
 ) W I T H   ( P A D _ I N D E X     =   O F F ,   S T A T I S T I C S _ N O R E C O M P U T E     =   O F F ,   I G N O R E _ D U P _ K E Y   =   O F F ,   A L L O W _ R O W _ L O C K S     =   O N ,   A L L O W _ P A G E _ L O C K S     =   O N )   O N   [ P R I M A R Y ]  
 )   O N   [ P R I M A R Y ]  
 G O  
 / * * * * * *   O b j e c t :     T a b l e   [ d b o ] . [ a c _ E m a i l T e m p l a t e T r i g g e r s ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 4   * * * * * * /  
 S E T   A N S I _ N U L L S   O N  
 G O  
 S E T   Q U O T E D _ I D E N T I F I E R   O N  
 G O  
 C R E A T E   T A B L E   [ d b o ] . [ a c _ E m a i l T e m p l a t e T r i g g e r s ] (  
 	 [ E m a i l T e m p l a t e I d ]   [ i n t ]   N O T   N U L L ,  
 	 [ S t o r e E v e n t I d ]   [ i n t ]   N O T   N U L L ,  
   C O N S T R A I N T   [ a c _ E m a i l T e m p l a t e T r i g g e r s _ P K ]   P R I M A R Y   K E Y   C L U S T E R E D    
 (  
 	 [ E m a i l T e m p l a t e I d ]   A S C ,  
 	 [ S t o r e E v e n t I d ]   A S C  
 ) W I T H   ( P A D _ I N D E X     =   O F F ,   S T A T I S T I C S _ N O R E C O M P U T E     =   O F F ,   I G N O R E _ D U P _ K E Y   =   O F F ,   A L L O W _ R O W _ L O C K S     =   O N ,   A L L O W _ P A G E _ L O C K S     =   O N )   O N   [ P R I M A R Y ]  
 )   O N   [ P R I M A R Y ]  
 G O  
 / * * * * * *   O b j e c t :     T a b l e   [ d b o ] . [ a c _ C o u p o n G r o u p s ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 4   * * * * * * /  
 S E T   A N S I _ N U L L S   O N  
 G O  
 S E T   Q U O T E D _ I D E N T I F I E R   O N  
 G O  
 C R E A T E   T A B L E   [ d b o ] . [ a c _ C o u p o n G r o u p s ] (  
 	 [ C o u p o n I d ]   [ i n t ]   N O T   N U L L ,  
 	 [ G r o u p I d ]   [ i n t ]   N O T   N U L L ,  
   C O N S T R A I N T   [ a c _ C o u p o n G r o u p s _ P K ]   P R I M A R Y   K E Y   C L U S T E R E D    
 (  
 	 [ C o u p o n I d ]   A S C ,  
 	 [ G r o u p I d ]   A S C  
 ) W I T H   ( P A D _ I N D E X     =   O F F ,   S T A T I S T I C S _ N O R E C O M P U T E     =   O F F ,   I G N O R E _ D U P _ K E Y   =   O F F ,   A L L O W _ R O W _ L O C K S     =   O N ,   A L L O W _ P A G E _ L O C K S     =   O N )   O N   [ P R I M A R Y ]  
 )   O N   [ P R I M A R Y ]  
 G O  
 / * * * * * *   O b j e c t :     T a b l e   [ d b o ] . [ a c _ C o u p o n C o m b o s ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 4   * * * * * * /  
 S E T   A N S I _ N U L L S   O N  
 G O  
 S E T   Q U O T E D _ I D E N T I F I E R   O N  
 G O  
 C R E A T E   T A B L E   [ d b o ] . [ a c _ C o u p o n C o m b o s ] (  
 	 [ C o u p o n I d ]   [ i n t ]   N O T   N U L L ,  
 	 [ C o m b o C o u p o n I d ]   [ i n t ]   N O T   N U L L ,  
   C O N S T R A I N T   [ a c _ C o u p o n C o m b o s _ P K ]   P R I M A R Y   K E Y   C L U S T E R E D    
 (  
 	 [ C o u p o n I d ]   A S C ,  
 	 [ C o m b o C o u p o n I d ]   A S C  
 ) W I T H   ( P A D _ I N D E X     =   O F F ,   S T A T I S T I C S _ N O R E C O M P U T E     =   O F F ,   I G N O R E _ D U P _ K E Y   =   O F F ,   A L L O W _ R O W _ L O C K S     =   O N ,   A L L O W _ P A G E _ L O C K S     =   O N )   O N   [ P R I M A R Y ]  
 )   O N   [ P R I M A R Y ]  
 G O  
 / * * * * * *   O b j e c t :     T a b l e   [ d b o ] . [ a c _ I n p u t F i e l d s ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 4   * * * * * * /  
 S E T   A N S I _ N U L L S   O N  
 G O  
 S E T   Q U O T E D _ I D E N T I F I E R   O N  
 G O  
 C R E A T E   T A B L E   [ d b o ] . [ a c _ I n p u t F i e l d s ] (  
 	 [ I n p u t F i e l d I d ]   [ i n t ]   I D E N T I T Y ( 1 , 1 )   N O T   N U L L ,  
 	 [ P r o d u c t T e m p l a t e I d ]   [ i n t ]   N O T   N U L L ,  
 	 [ N a m e ]   [ n v a r c h a r ] ( 1 0 0 )   N O T   N U L L ,  
 	 [ U s e r P r o m p t ]   [ n v a r c h a r ] ( 2 5 5 )   N O T   N U L L ,  
 	 [ I n p u t T y p e I d ]   [ s m a l l i n t ]   N O T   N U L L ,  
 	 [ R o w s ]   [ t i n y i n t ]   N O T   N U L L ,  
 	 [ C o l u m n s ]   [ t i n y i n t ]   N O T   N U L L ,  
 	 [ M a x L e n g t h ]   [ s m a l l i n t ]   N O T   N U L L ,  
 	 [ I s R e q u i r e d ]   [ b i t ]   N O T   N U L L ,  
 	 [ R e q u i r e d M e s s a g e ]   [ n v a r c h a r ] ( m a x )   N U L L ,  
 	 [ I s M e r c h a n t F i e l d ]   [ b i t ]   N O T   N U L L ,  
 	 [ O r d e r B y ]   [ s m a l l i n t ]   N O T   N U L L ,  
 	 [ P e r s i s t W i t h O r d e r ]   [ b i t ]   N O T   N U L L ,  
 	 [ P r o m p t C s s C l a s s ]   [ n v a r c h a r ] ( 1 0 0 )   N U L L ,  
 	 [ C o n t r o l C s s C l a s s ]   [ n v a r c h a r ] ( 1 0 0 )   N U L L ,  
 	 [ A d d i t i o n a l D a t a ]   [ n v a r c h a r ] ( 2 5 5 )   N U L L ,  
   C O N S T R A I N T   [ a c _ I n p u t F i e l d s _ P K ]   P R I M A R Y   K E Y   C L U S T E R E D    
 (  
 	 [ I n p u t F i e l d I d ]   A S C  
 ) W I T H   ( P A D _ I N D E X     =   O F F ,   S T A T I S T I C S _ N O R E C O M P U T E     =   O F F ,   I G N O R E _ D U P _ K E Y   =   O F F ,   A L L O W _ R O W _ L O C K S     =   O N ,   A L L O W _ P A G E _ L O C K S     =   O N )   O N   [ P R I M A R Y ]  
 )   O N   [ P R I M A R Y ]  
 G O  
 / * * * * * *   O b j e c t :     T a b l e   [ d b o ] . [ a c _ S h a r e d P e r s o n a l i z a t i o n ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 4   * * * * * * /  
 S E T   A N S I _ N U L L S   O N  
 G O  
 S E T   Q U O T E D _ I D E N T I F I E R   O N  
 G O  
 S E T   A N S I _ P A D D I N G   O N  
 G O  
 C R E A T E   T A B L E   [ d b o ] . [ a c _ S h a r e d P e r s o n a l i z a t i o n ] (  
 	 [ P e r s o n a l i z a t i o n P a t h I d ]   [ i n t ]   N O T   N U L L ,  
 	 [ P a g e S e t t i n g s ]   [ i m a g e ]   N U L L ,  
 	 [ T h e m e ]   [ v a r c h a r ] ( 1 0 0 )   N U L L ,  
 	 [ M a s t e r P a g e F i l e ]   [ v a r c h a r ] ( 1 0 0 )   N U L L ,  
 	 [ L a s t U p d a t e d D a t e ]   [ d a t e t i m e ]   N O T   N U L L ,  
   C O N S T R A I N T   [ a c _ S h a r e d P e r s o n a l i z a t i o n _ P K ]   P R I M A R Y   K E Y   C L U S T E R E D    
 (  
 	 [ P e r s o n a l i z a t i o n P a t h I d ]   A S C  
 ) W I T H   ( P A D _ I N D E X     =   O F F ,   S T A T I S T I C S _ N O R E C O M P U T E     =   O F F ,   I G N O R E _ D U P _ K E Y   =   O F F ,   A L L O W _ R O W _ L O C K S     =   O N ,   A L L O W _ P A G E _ L O C K S     =   O N )   O N   [ P R I M A R Y ]  
 )   O N   [ P R I M A R Y ]   T E X T I M A G E _ O N   [ P R I M A R Y ]  
 G O  
 S E T   A N S I _ P A D D I N G   O F F  
 G O  
 / * * * * * *   O b j e c t :     T a b l e   [ d b o ] . [ a c _ S h i p Z o n e C o u n t r i e s ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 4   * * * * * * /  
 S E T   A N S I _ N U L L S   O N  
 G O  
 S E T   Q U O T E D _ I D E N T I F I E R   O N  
 G O  
 S E T   A N S I _ P A D D I N G   O N  
 G O  
 C R E A T E   T A B L E   [ d b o ] . [ a c _ S h i p Z o n e C o u n t r i e s ] (  
 	 [ S h i p Z o n e I d ]   [ i n t ]   N O T   N U L L ,  
 	 [ C o u n t r y C o d e ]   [ c h a r ] ( 2 )   N O T   N U L L ,  
   C O N S T R A I N T   [ a c _ S h i p Z o n e C o u n t r i e s _ P K ]   P R I M A R Y   K E Y   C L U S T E R E D    
 (  
 	 [ S h i p Z o n e I d ]   A S C ,  
 	 [ C o u n t r y C o d e ]   A S C  
 ) W I T H   ( P A D _ I N D E X     =   O F F ,   S T A T I S T I C S _ N O R E C O M P U T E     =   O F F ,   I G N O R E _ D U P _ K E Y   =   O F F ,   A L L O W _ R O W _ L O C K S     =   O N ,   A L L O W _ P A G E _ L O C K S     =   O N )   O N   [ P R I M A R Y ]  
 )   O N   [ P R I M A R Y ]  
 G O  
 S E T   A N S I _ P A D D I N G   O F F  
 G O  
 / * * * * * *   O b j e c t :     T a b l e   [ d b o ] . [ a c _ T a x R u l e T a x C o d e s ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 4   * * * * * * /  
 S E T   A N S I _ N U L L S   O N  
 G O  
 S E T   Q U O T E D _ I D E N T I F I E R   O N  
 G O  
 C R E A T E   T A B L E   [ d b o ] . [ a c _ T a x R u l e T a x C o d e s ] (  
 	 [ T a x R u l e I d ]   [ i n t ]   N O T   N U L L ,  
 	 [ T a x C o d e I d ]   [ i n t ]   N O T   N U L L ,  
   C O N S T R A I N T   [ a c _ T a x R u l e T a x C o d e s _ P K ]   P R I M A R Y   K E Y   C L U S T E R E D    
 (  
 	 [ T a x R u l e I d ]   A S C ,  
 	 [ T a x C o d e I d ]   A S C  
 ) W I T H   ( P A D _ I N D E X     =   O F F ,   S T A T I S T I C S _ N O R E C O M P U T E     =   O F F ,   I G N O R E _ D U P _ K E Y   =   O F F ,   A L L O W _ R O W _ L O C K S     =   O N ,   A L L O W _ P A G E _ L O C K S     =   O N )   O N   [ P R I M A R Y ]  
 )   O N   [ P R I M A R Y ]  
 G O  
 / * * * * * *   O b j e c t :     T a b l e   [ d b o ] . [ a c _ T a x R u l e S h i p Z o n e s ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 4   * * * * * * /  
 S E T   A N S I _ N U L L S   O N  
 G O  
 S E T   Q U O T E D _ I D E N T I F I E R   O N  
 G O  
 C R E A T E   T A B L E   [ d b o ] . [ a c _ T a x R u l e S h i p Z o n e s ] (  
 	 [ T a x R u l e I d ]   [ i n t ]   N O T   N U L L ,  
 	 [ S h i p Z o n e I d ]   [ i n t ]   N O T   N U L L ,  
   C O N S T R A I N T   [ a c _ T a x R u l e S h i p Z o n e s _ P K ]   P R I M A R Y   K E Y   C L U S T E R E D    
 (  
 	 [ T a x R u l e I d ]   A S C ,  
 	 [ S h i p Z o n e I d ]   A S C  
 ) W I T H   ( P A D _ I N D E X     =   O F F ,   S T A T I S T I C S _ N O R E C O M P U T E     =   O F F ,   I G N O R E _ D U P _ K E Y   =   O F F ,   A L L O W _ R O W _ L O C K S     =   O N ,   A L L O W _ P A G E _ L O C K S     =   O N )   O N   [ P R I M A R Y ]  
 )   O N   [ P R I M A R Y ]  
 G O  
 / * * * * * *   O b j e c t :     T a b l e   [ d b o ] . [ a c _ T a x R u l e G r o u p s ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 4   * * * * * * /  
 S E T   A N S I _ N U L L S   O N  
 G O  
 S E T   Q U O T E D _ I D E N T I F I E R   O N  
 G O  
 C R E A T E   T A B L E   [ d b o ] . [ a c _ T a x R u l e G r o u p s ] (  
 	 [ T a x R u l e I d ]   [ i n t ]   N O T   N U L L ,  
 	 [ G r o u p I d ]   [ i n t ]   N O T   N U L L ,  
   C O N S T R A I N T   [ a c _ T a x R u l e G r o u p s _ P K ]   P R I M A R Y   K E Y   C L U S T E R E D    
 (  
 	 [ G r o u p I d ]   A S C ,  
 	 [ T a x R u l e I d ]   A S C  
 ) W I T H   ( P A D _ I N D E X     =   O F F ,   S T A T I S T I C S _ N O R E C O M P U T E     =   O F F ,   I G N O R E _ D U P _ K E Y   =   O F F ,   A L L O W _ R O W _ L O C K S     =   O N ,   A L L O W _ P A G E _ L O C K S     =   O N )   O N   [ P R I M A R Y ]  
 )   O N   [ P R I M A R Y ]  
 G O  
 / * * * * * *   O b j e c t :     T a b l e   [ d b o ] . [ a c _ P r o v i n c e s ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 4   * * * * * * /  
 S E T   A N S I _ N U L L S   O N  
 G O  
 S E T   Q U O T E D _ I D E N T I F I E R   O N  
 G O  
 S E T   A N S I _ P A D D I N G   O N  
 G O  
 C R E A T E   T A B L E   [ d b o ] . [ a c _ P r o v i n c e s ] (  
 	 [ P r o v i n c e I d ]   [ i n t ]   I D E N T I T Y ( 1 , 1 )   N O T   N U L L ,  
 	 [ C o u n t r y C o d e ]   [ c h a r ] ( 2 )   N O T   N U L L ,  
 	 [ N a m e ]   [ n v a r c h a r ] ( 5 0 )   N O T   N U L L ,  
 	 [ L o w e r e d N a m e ]   [ n v a r c h a r ] ( 5 0 )   N O T   N U L L ,  
 	 [ P r o v i n c e C o d e ]   [ n v a r c h a r ] ( 1 0 )   N U L L ,  
   C O N S T R A I N T   [ a c _ P r o v i n c e s _ P K ]   P R I M A R Y   K E Y   C L U S T E R E D    
 (  
 	 [ P r o v i n c e I d ]   A S C  
 ) W I T H   ( P A D _ I N D E X     =   O F F ,   S T A T I S T I C S _ N O R E C O M P U T E     =   O F F ,   I G N O R E _ D U P _ K E Y   =   O F F ,   A L L O W _ R O W _ L O C K S     =   O N ,   A L L O W _ P A G E _ L O C K S     =   O N )   O N   [ P R I M A R Y ]  
 )   O N   [ P R I M A R Y ]  
 G O  
 S E T   A N S I _ P A D D I N G   O F F  
 G O  
 / * * * * * *   O b j e c t :     T a b l e   [ d b o ] . [ a c _ K i t P r o d u c t s ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 4   * * * * * * /  
 S E T   A N S I _ N U L L S   O N  
 G O  
 S E T   Q U O T E D _ I D E N T I F I E R   O N  
 G O  
 S E T   A N S I _ P A D D I N G   O N  
 G O  
 C R E A T E   T A B L E   [ d b o ] . [ a c _ K i t P r o d u c t s ] (  
 	 [ K i t P r o d u c t I d ]   [ i n t ]   I D E N T I T Y ( 1 , 1 )   N O T   N U L L ,  
 	 [ K i t C o m p o n e n t I d ]   [ i n t ]   N O T   N U L L ,  
 	 [ P r o d u c t I d ]   [ i n t ]   N O T   N U L L ,  
 	 [ O p t i o n L i s t ]   [ v a r c h a r ] ( 2 5 5 )   N U L L ,  
 	 [ N a m e ]   [ n v a r c h a r ] ( 2 5 5 )   N O T   N U L L ,  
 	 [ Q u a n t i t y ]   [ s m a l l i n t ]   N O T   N U L L ,  
 	 [ P r i c e ]   [ d e c i m a l ] ( 1 2 ,   4 )   N O T   N U L L ,  
 	 [ P r i c e M o d e I d ]   [ t i n y i n t ]   N O T   N U L L ,  
 	 [ W e i g h t ]   [ d e c i m a l ] ( 1 2 ,   4 )   N O T   N U L L ,  
 	 [ W e i g h t M o d e I d ]   [ t i n y i n t ]   N O T   N U L L ,  
 	 [ I s S e l e c t e d ]   [ b i t ]   N O T   N U L L ,  
 	 [ O r d e r B y ]   [ s m a l l i n t ]   N O T   N U L L ,  
   C O N S T R A I N T   [ a c _ K i t P r o d u c t s _ P K ]   P R I M A R Y   K E Y   C L U S T E R E D    
 (  
 	 [ K i t P r o d u c t I d ]   A S C  
 ) W I T H   ( P A D _ I N D E X     =   O F F ,   S T A T I S T I C S _ N O R E C O M P U T E     =   O F F ,   I G N O R E _ D U P _ K E Y   =   O F F ,   A L L O W _ R O W _ L O C K S     =   O N ,   A L L O W _ P A G E _ L O C K S     =   O N )   O N   [ P R I M A R Y ]  
 )   O N   [ P R I M A R Y ]  
 G O  
 S E T   A N S I _ P A D D I N G   O F F  
 G O  
 / * * * * * *   O b j e c t :     T a b l e   [ d b o ] . [ a c _ O r d e r S t a t u s T r i g g e r s ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 4   * * * * * * /  
 S E T   A N S I _ N U L L S   O N  
 G O  
 S E T   Q U O T E D _ I D E N T I F I E R   O N  
 G O  
 C R E A T E   T A B L E   [ d b o ] . [ a c _ O r d e r S t a t u s T r i g g e r s ] (  
 	 [ S t o r e E v e n t I d ]   [ i n t ]   N O T   N U L L ,  
 	 [ O r d e r S t a t u s I d ]   [ i n t ]   N O T   N U L L ,  
   C O N S T R A I N T   [ a c _ O r d e r S t a t u s T r i g g e r s _ P K ]   P R I M A R Y   K E Y   C L U S T E R E D    
 (  
 	 [ S t o r e E v e n t I d ]   A S C  
 ) W I T H   ( P A D _ I N D E X     =   O F F ,   S T A T I S T I C S _ N O R E C O M P U T E     =   O F F ,   I G N O R E _ D U P _ K E Y   =   O F F ,   A L L O W _ R O W _ L O C K S     =   O N ,   A L L O W _ P A G E _ L O C K S     =   O N )   O N   [ P R I M A R Y ]  
 )   O N   [ P R I M A R Y ]  
 G O  
 / * * * * * *   O b j e c t :     T a b l e   [ d b o ] . [ a c _ P a y m e n t M e t h o d G r o u p s ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 4   * * * * * * /  
 S E T   A N S I _ N U L L S   O N  
 G O  
 S E T   Q U O T E D _ I D E N T I F I E R   O N  
 G O  
 C R E A T E   T A B L E   [ d b o ] . [ a c _ P a y m e n t M e t h o d G r o u p s ] (  
 	 [ P a y m e n t M e t h o d I d ]   [ i n t ]   N O T   N U L L ,  
 	 [ G r o u p I d ]   [ i n t ]   N O T   N U L L ,  
   C O N S T R A I N T   [ a c _ P a y m e n t M e t h o d G r o u p s _ P K ]   P R I M A R Y   K E Y   C L U S T E R E D    
 (  
 	 [ P a y m e n t M e t h o d I d ]   A S C ,  
 	 [ G r o u p I d ]   A S C  
 ) W I T H   ( P A D _ I N D E X     =   O F F ,   S T A T I S T I C S _ N O R E C O M P U T E     =   O F F ,   I G N O R E _ D U P _ K E Y   =   O F F ,   A L L O W _ R O W _ L O C K S     =   O N ,   A L L O W _ P A G E _ L O C K S     =   O N )   O N   [ P R I M A R Y ]  
 )   O N   [ P R I M A R Y ]  
 G O  
 / * * * * * *   O b j e c t :     T a b l e   [ d b o ] . [ a c _ S h i p Z o n e P r o v i n c e s ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 4   * * * * * * /  
 S E T   A N S I _ N U L L S   O N  
 G O  
 S E T   Q U O T E D _ I D E N T I F I E R   O N  
 G O  
 C R E A T E   T A B L E   [ d b o ] . [ a c _ S h i p Z o n e P r o v i n c e s ] (  
 	 [ P r o v i n c e I d ]   [ i n t ]   N O T   N U L L ,  
 	 [ S h i p Z o n e I d ]   [ i n t ]   N O T   N U L L ,  
   C O N S T R A I N T   [ a c _ S h i p Z o n e P r o v i n c e s _ P K ]   P R I M A R Y   K E Y   C L U S T E R E D    
 (  
 	 [ P r o v i n c e I d ]   A S C ,  
 	 [ S h i p Z o n e I d ]   A S C  
 ) W I T H   ( P A D _ I N D E X     =   O F F ,   S T A T I S T I C S _ N O R E C O M P U T E     =   O F F ,   I G N O R E _ D U P _ K E Y   =   O F F ,   A L L O W _ R O W _ L O C K S     =   O N ,   A L L O W _ P A G E _ L O C K S     =   O N )   O N   [ P R I M A R Y ]  
 )   O N   [ P R I M A R Y ]  
 G O  
 / * * * * * *   O b j e c t :     T a b l e   [ d b o ] . [ a c _ S h i p R a t e M a t r i x ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 4   * * * * * * /  
 S E T   A N S I _ N U L L S   O N  
 G O  
 S E T   Q U O T E D _ I D E N T I F I E R   O N  
 G O  
 C R E A T E   T A B L E   [ d b o ] . [ a c _ S h i p R a t e M a t r i x ] (  
 	 [ S h i p R a t e M a t r i x I d ]   [ i n t ]   I D E N T I T Y ( 1 , 1 )   N O T   N U L L ,  
 	 [ S h i p M e t h o d I d ]   [ i n t ]   N O T   N U L L ,  
 	 [ R a n g e S t a r t ]   [ d e c i m a l ] ( 1 2 ,   4 )   N U L L ,  
 	 [ R a n g e E n d ]   [ d e c i m a l ] ( 1 2 ,   4 )   N U L L ,  
 	 [ R a t e ]   [ d e c i m a l ] ( 1 2 ,   4 )   N O T   N U L L ,  
 	 [ I s P e r c e n t ]   [ b i t ]   N O T   N U L L ,  
   C O N S T R A I N T   [ a c _ S h i p R a t e M a t r i x _ P K ]   P R I M A R Y   K E Y   C L U S T E R E D    
 (  
 	 [ S h i p R a t e M a t r i x I d ]   A S C  
 ) W I T H   ( P A D _ I N D E X     =   O F F ,   S T A T I S T I C S _ N O R E C O M P U T E     =   O F F ,   I G N O R E _ D U P _ K E Y   =   O F F ,   A L L O W _ R O W _ L O C K S     =   O N ,   A L L O W _ P A G E _ L O C K S     =   O N )   O N   [ P R I M A R Y ]  
 )   O N   [ P R I M A R Y ]  
 G O  
 / * * * * * *   O b j e c t :     T a b l e   [ d b o ] . [ a c _ S h i p M e t h o d W a r e h o u s e s ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 4   * * * * * * /  
 S E T   A N S I _ N U L L S   O N  
 G O  
 S E T   Q U O T E D _ I D E N T I F I E R   O N  
 G O  
 C R E A T E   T A B L E   [ d b o ] . [ a c _ S h i p M e t h o d W a r e h o u s e s ] (  
 	 [ S h i p M e t h o d I d ]   [ i n t ]   N O T   N U L L ,  
 	 [ W a r e h o u s e I d ]   [ i n t ]   N O T   N U L L ,  
   C O N S T R A I N T   [ a c _ S h i p M e t h o d W a r e h o u s e s _ P K ]   P R I M A R Y   K E Y   C L U S T E R E D    
 (  
 	 [ S h i p M e t h o d I d ]   A S C ,  
 	 [ W a r e h o u s e I d ]   A S C  
 ) W I T H   ( P A D _ I N D E X     =   O F F ,   S T A T I S T I C S _ N O R E C O M P U T E     =   O F F ,   I G N O R E _ D U P _ K E Y   =   O F F ,   A L L O W _ R O W _ L O C K S     =   O N ,   A L L O W _ P A G E _ L O C K S     =   O N )   O N   [ P R I M A R Y ]  
 )   O N   [ P R I M A R Y ]  
 G O  
 / * * * * * *   O b j e c t :     T a b l e   [ d b o ] . [ a c _ S h i p M e t h o d S h i p Z o n e s ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 4   * * * * * * /  
 S E T   A N S I _ N U L L S   O N  
 G O  
 S E T   Q U O T E D _ I D E N T I F I E R   O N  
 G O  
 C R E A T E   T A B L E   [ d b o ] . [ a c _ S h i p M e t h o d S h i p Z o n e s ] (  
 	 [ S h i p M e t h o d I d ]   [ i n t ]   N O T   N U L L ,  
 	 [ S h i p Z o n e I d ]   [ i n t ]   N O T   N U L L ,  
   C O N S T R A I N T   [ a c _ S h i p M e t h o d S h i p Z o n e s _ P K ]   P R I M A R Y   K E Y   C L U S T E R E D    
 (  
 	 [ S h i p M e t h o d I d ]   A S C ,  
 	 [ S h i p Z o n e I d ]   A S C  
 ) W I T H   ( P A D _ I N D E X     =   O F F ,   S T A T I S T I C S _ N O R E C O M P U T E     =   O F F ,   I G N O R E _ D U P _ K E Y   =   O F F ,   A L L O W _ R O W _ L O C K S     =   O N ,   A L L O W _ P A G E _ L O C K S     =   O N )   O N   [ P R I M A R Y ]  
 )   O N   [ P R I M A R Y ]  
 G O  
 / * * * * * *   O b j e c t :     T a b l e   [ d b o ] . [ a c _ S h i p M e t h o d G r o u p s ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 4   * * * * * * /  
 S E T   A N S I _ N U L L S   O N  
 G O  
 S E T   Q U O T E D _ I D E N T I F I E R   O N  
 G O  
 C R E A T E   T A B L E   [ d b o ] . [ a c _ S h i p M e t h o d G r o u p s ] (  
 	 [ S h i p M e t h o d I d ]   [ i n t ]   N O T   N U L L ,  
 	 [ G r o u p I d ]   [ i n t ]   N O T   N U L L ,  
   C O N S T R A I N T   [ a c _ S h i p M e t h o d G r o u p s _ P K ]   P R I M A R Y   K E Y   C L U S T E R E D    
 (  
 	 [ G r o u p I d ]   A S C ,  
 	 [ S h i p M e t h o d I d ]   A S C  
 ) W I T H   ( P A D _ I N D E X     =   O F F ,   S T A T I S T I C S _ N O R E C O M P U T E     =   O F F ,   I G N O R E _ D U P _ K E Y   =   O F F ,   A L L O W _ R O W _ L O C K S     =   O N ,   A L L O W _ P A G E _ L O C K S     =   O N )   O N   [ P R I M A R Y ]  
 )   O N   [ P R I M A R Y ]  
 G O  
 / * * * * * *   O b j e c t :     T a b l e   [ d b o ] . [ a c _ S e r i a l K e y s ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 4   * * * * * * /  
 S E T   A N S I _ N U L L S   O N  
 G O  
 S E T   Q U O T E D _ I D E N T I F I E R   O N  
 G O  
 C R E A T E   T A B L E   [ d b o ] . [ a c _ S e r i a l K e y s ] (  
 	 [ S e r i a l K e y I d ]   [ i n t ]   I D E N T I T Y ( 1 , 1 )   N O T   N U L L ,  
 	 [ D i g i t a l G o o d I d ]   [ i n t ]   N O T   N U L L ,  
 	 [ S e r i a l K e y D a t a ]   [ n v a r c h a r ] ( m a x )   N O T   N U L L ,  
   C O N S T R A I N T   [ a c _ L i c e n s e K e y s _ P K ]   P R I M A R Y   K E Y   C L U S T E R E D    
 (  
 	 [ S e r i a l K e y I d ]   A S C  
 ) W I T H   ( P A D _ I N D E X     =   O F F ,   S T A T I S T I C S _ N O R E C O M P U T E     =   O F F ,   I G N O R E _ D U P _ K E Y   =   O F F ,   A L L O W _ R O W _ L O C K S     =   O N ,   A L L O W _ P A G E _ L O C K S     =   O N )   O N   [ P R I M A R Y ]  
 )   O N   [ P R I M A R Y ]  
 G O  
 / * * * * * *   O b j e c t :     T a b l e   [ d b o ] . [ a c _ I n p u t C h o i c e s ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 4   * * * * * * /  
 S E T   A N S I _ N U L L S   O N  
 G O  
 S E T   Q U O T E D _ I D E N T I F I E R   O N  
 G O  
 C R E A T E   T A B L E   [ d b o ] . [ a c _ I n p u t C h o i c e s ] (  
 	 [ I n p u t C h o i c e I d ]   [ i n t ]   I D E N T I T Y ( 1 , 1 )   N O T   N U L L ,  
 	 [ I n p u t F i e l d I d ]   [ i n t ]   N O T   N U L L ,  
 	 [ C h o i c e T e x t ]   [ n v a r c h a r ] ( 1 0 0 )   N O T   N U L L ,  
 	 [ C h o i c e V a l u e ]   [ n v a r c h a r ] ( 1 0 0 )   N U L L ,  
 	 [ I s S e l e c t e d ]   [ b i t ]   N O T   N U L L ,  
 	 [ O r d e r B y ]   [ s m a l l i n t ]   N O T   N U L L ,  
   C O N S T R A I N T   [ a c _ I n p u t C h o i c e s _ P K ]   P R I M A R Y   K E Y   C L U S T E R E D    
 (  
 	 [ I n p u t C h o i c e I d ]   A S C  
 ) W I T H   ( P A D _ I N D E X     =   O F F ,   S T A T I S T I C S _ N O R E C O M P U T E     =   O F F ,   I G N O R E _ D U P _ K E Y   =   O F F ,   A L L O W _ R O W _ L O C K S     =   O N ,   A L L O W _ P A G E _ L O C K S     =   O N )   O N   [ P R I M A R Y ]  
 )   O N   [ P R I M A R Y ]  
 G O  
 / * * * * * *   O b j e c t :     T a b l e   [ d b o ] . [ a c _ C o u p o n S h i p M e t h o d s ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 4   * * * * * * /  
 S E T   A N S I _ N U L L S   O N  
 G O  
 S E T   Q U O T E D _ I D E N T I F I E R   O N  
 G O  
 C R E A T E   T A B L E   [ d b o ] . [ a c _ C o u p o n S h i p M e t h o d s ] (  
 	 [ C o u p o n I d ]   [ i n t ]   N O T   N U L L ,  
 	 [ S h i p M e t h o d I d ]   [ i n t ]   N O T   N U L L ,  
   C O N S T R A I N T   [ a c _ C o u p o n S h i p M e t h o d s _ P K ]   P R I M A R Y   K E Y   C L U S T E R E D    
 (  
 	 [ S h i p M e t h o d I d ]   A S C ,  
 	 [ C o u p o n I d ]   A S C  
 ) W I T H   ( P A D _ I N D E X     =   O F F ,   S T A T I S T I C S _ N O R E C O M P U T E     =   O F F ,   I G N O R E _ D U P _ K E Y   =   O F F ,   A L L O W _ R O W _ L O C K S     =   O N ,   A L L O W _ P A G E _ L O C K S     =   O N )   O N   [ P R I M A R Y ]  
 )   O N   [ P R I M A R Y ]  
 G O  
 / * * * * * *   O b j e c t :     T a b l e   [ d b o ] . [ a c _ K i t s ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 4   * * * * * * /  
 S E T   A N S I _ N U L L S   O N  
 G O  
 S E T   Q U O T E D _ I D E N T I F I E R   O N  
 G O  
 C R E A T E   T A B L E   [ d b o ] . [ a c _ K i t s ] (  
 	 [ P r o d u c t I d ]   [ i n t ]   N O T   N U L L ,  
 	 [ I t e m i z e D i s p l a y ]   [ b i t ]   N O T   N U L L ,  
   C O N S T R A I N T   [ a c _ K i t s _ P K ]   P R I M A R Y   K E Y   C L U S T E R E D    
 (  
 	 [ P r o d u c t I d ]   A S C  
 ) W I T H   ( P A D _ I N D E X     =   O F F ,   S T A T I S T I C S _ N O R E C O M P U T E     =   O F F ,   I G N O R E _ D U P _ K E Y   =   O F F ,   A L L O W _ R O W _ L O C K S     =   O N ,   A L L O W _ P A G E _ L O C K S     =   O N )   O N   [ P R I M A R Y ]  
 )   O N   [ P R I M A R Y ]  
 G O  
 / * * * * * *   O b j e c t :     T a b l e   [ d b o ] . [ a c _ C o u p o n P r o d u c t s ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 4   * * * * * * /  
 S E T   A N S I _ N U L L S   O N  
 G O  
 S E T   Q U O T E D _ I D E N T I F I E R   O N  
 G O  
 C R E A T E   T A B L E   [ d b o ] . [ a c _ C o u p o n P r o d u c t s ] (  
 	 [ C o u p o n I d ]   [ i n t ]   N O T   N U L L ,  
 	 [ P r o d u c t I d ]   [ i n t ]   N O T   N U L L ,  
   C O N S T R A I N T   [ a c _ C o u p o n P r o d u c t s _ P K ]   P R I M A R Y   K E Y   C L U S T E R E D    
 (  
 	 [ C o u p o n I d ]   A S C ,  
 	 [ P r o d u c t I d ]   A S C  
 ) W I T H   ( P A D _ I N D E X     =   O F F ,   S T A T I S T I C S _ N O R E C O M P U T E     =   O F F ,   I G N O R E _ D U P _ K E Y   =   O F F ,   A L L O W _ R O W _ L O C K S     =   O N ,   A L L O W _ P A G E _ L O C K S     =   O N )   O N   [ P R I M A R Y ]  
 )   O N   [ P R I M A R Y ]  
 G O  
 / * * * * * *   O b j e c t :     T a b l e   [ d b o ] . [ a c _ A u d i t E v e n t s ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 4   * * * * * * /  
 S E T   A N S I _ N U L L S   O N  
 G O  
 S E T   Q U O T E D _ I D E N T I F I E R   O N  
 G O  
 S E T   A N S I _ P A D D I N G   O N  
 G O  
 C R E A T E   T A B L E   [ d b o ] . [ a c _ A u d i t E v e n t s ] (  
 	 [ A u d i t E v e n t I d ]   [ i n t ]   I D E N T I T Y ( 1 , 1 )   N O T   N U L L ,  
 	 [ S t o r e I d ]   [ i n t ]   N O T   N U L L ,  
 	 [ E v e n t D a t e ]   [ d a t e t i m e ]   N O T   N U L L ,  
 	 [ E v e n t T y p e I d ]   [ i n t ]   N O T   N U L L ,  
 	 [ S u c c e s s f u l ]   [ b i t ]   N O T   N U L L ,  
 	 [ U s e r I d ]   [ i n t ]   N U L L ,  
 	 [ R e l a t e d I d ]   [ i n t ]   N U L L ,  
 	 [ R e m o t e I P ]   [ v a r c h a r ] ( 3 9 )   N U L L ,  
 	 [ C o m m e n t ]   [ n v a r c h a r ] ( m a x )   N U L L ,  
   C O N S T R A I N T   [ a c _ A u d i t L o g _ P K ]   P R I M A R Y   K E Y   N O N C L U S T E R E D    
 (  
 	 [ A u d i t E v e n t I d ]   A S C  
 ) W I T H   ( P A D _ I N D E X     =   O F F ,   S T A T I S T I C S _ N O R E C O M P U T E     =   O F F ,   I G N O R E _ D U P _ K E Y   =   O F F ,   A L L O W _ R O W _ L O C K S     =   O N ,   A L L O W _ P A G E _ L O C K S     =   O N )   O N   [ P R I M A R Y ]  
 )   O N   [ P R I M A R Y ]  
 G O  
 S E T   A N S I _ P A D D I N G   O F F  
 G O  
 / * * * * * *   O b j e c t :     T a b l e   [ d b o ] . [ a c _ A d d r e s s e s ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 4   * * * * * * /  
 S E T   A N S I _ N U L L S   O N  
 G O  
 S E T   Q U O T E D _ I D E N T I F I E R   O N  
 G O  
 S E T   A N S I _ P A D D I N G   O N  
 G O  
 C R E A T E   T A B L E   [ d b o ] . [ a c _ A d d r e s s e s ] (  
 	 [ A d d r e s s I d ]   [ i n t ]   I D E N T I T Y ( 1 , 1 )   N O T   N U L L ,  
 	 [ U s e r I d ]   [ i n t ]   N O T   N U L L ,  
 	 [ N i c k n a m e ]   [ n v a r c h a r ] ( 1 0 0 )   N U L L ,  
 	 [ F i r s t N a m e ]   [ n v a r c h a r ] ( 3 0 )   N U L L ,  
 	 [ L a s t N a m e ]   [ n v a r c h a r ] ( 5 0 )   N U L L ,  
 	 [ C o m p a n y ]   [ n v a r c h a r ] ( 5 0 )   N U L L ,  
 	 [ A d d r e s s 1 ]   [ n v a r c h a r ] ( 2 5 5 )   N U L L ,  
 	 [ A d d r e s s 2 ]   [ n v a r c h a r ] ( 2 5 5 )   N U L L ,  
 	 [ C i t y ]   [ n v a r c h a r ] ( 5 0 )   N U L L ,  
 	 [ P r o v i n c e ]   [ n v a r c h a r ] ( 5 0 )   N U L L ,  
 	 [ P o s t a l C o d e ]   [ n v a r c h a r ] ( 1 5 )   N U L L ,  
 	 [ C o u n t r y C o d e ]   [ c h a r ] ( 2 )   N U L L ,  
 	 [ P h o n e ]   [ n v a r c h a r ] ( 5 0 )   N U L L ,  
 	 [ F a x ]   [ n v a r c h a r ] ( 5 0 )   N U L L ,  
 	 [ E m a i l ]   [ n v a r c h a r ] ( 2 5 5 )   N U L L ,  
 	 [ R e s i d e n c e ]   [ b i t ]   N O T   N U L L ,  
 	 [ V a l i d a t e d ]   [ b i t ]   N O T   N U L L ,  
   C O N S T R A I N T   [ a c _ A d d r e s s e s _ P K ]   P R I M A R Y   K E Y   C L U S T E R E D    
 (  
 	 [ A d d r e s s I d ]   A S C  
 ) W I T H   ( P A D _ I N D E X     =   O F F ,   S T A T I S T I C S _ N O R E C O M P U T E     =   O F F ,   I G N O R E _ D U P _ K E Y   =   O F F ,   A L L O W _ R O W _ L O C K S     =   O N ,   A L L O W _ P A G E _ L O C K S     =   O N )   O N   [ P R I M A R Y ]  
 )   O N   [ P R I M A R Y ]  
 G O  
 S E T   A N S I _ P A D D I N G   O F F  
 G O  
 / * * * * * *   O b j e c t :     T a b l e   [ d b o ] . [ a c _ B a s k e t s ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 4   * * * * * * /  
 S E T   A N S I _ N U L L S   O N  
 G O  
 S E T   Q U O T E D _ I D E N T I F I E R   O N  
 G O  
 C R E A T E   T A B L E   [ d b o ] . [ a c _ B a s k e t s ] (  
 	 [ B a s k e t I d ]   [ i n t ]   I D E N T I T Y ( 1 , 1 )   N O T   N U L L ,  
 	 [ U s e r I d ]   [ i n t ]   N O T   N U L L ,  
 	 [ C o n t e n t H a s h ]   [ n v a r c h a r ] ( 3 2 )   N U L L ,  
   C O N S T R A I N T   [ a c _ B a s k e t s _ P K ]   P R I M A R Y   K E Y   C L U S T E R E D    
 (  
 	 [ B a s k e t I d ]   A S C  
 ) W I T H   ( P A D _ I N D E X     =   O F F ,   S T A T I S T I C S _ N O R E C O M P U T E     =   O F F ,   I G N O R E _ D U P _ K E Y   =   O F F ,   A L L O W _ R O W _ L O C K S     =   O N ,   A L L O W _ P A G E _ L O C K S     =   O N )   O N   [ P R I M A R Y ]  
 )   O N   [ P R I M A R Y ]  
 G O  
 / * * * * * *   O b j e c t :     T a b l e   [ d b o ] . [ a c _ P r o d u c t R e v i e w s ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 4   * * * * * * /  
 S E T   A N S I _ N U L L S   O N  
 G O  
 S E T   Q U O T E D _ I D E N T I F I E R   O N  
 G O  
 C R E A T E   T A B L E   [ d b o ] . [ a c _ P r o d u c t R e v i e w s ] (  
 	 [ P r o d u c t R e v i e w I d ]   [ i n t ]   I D E N T I T Y ( 1 , 1 )   N O T   N U L L ,  
 	 [ P r o d u c t I d ]   [ i n t ]   N O T   N U L L ,  
 	 [ R e v i e w e r P r o f i l e I d ]   [ i n t ]   N O T   N U L L ,  
 	 [ R e v i e w D a t e ]   [ d a t e t i m e ]   N O T   N U L L ,  
 	 [ R a t i n g ]   [ t i n y i n t ]   N O T   N U L L ,  
 	 [ R e v i e w T i t l e ]   [ n v a r c h a r ] ( 1 0 0 )   N O T   N U L L ,  
 	 [ R e v i e w B o d y ]   [ n v a r c h a r ] ( m a x )   N O T   N U L L ,  
 	 [ I s A p p r o v e d ]   [ b i t ]   N O T   N U L L ,  
   C O N S T R A I N T   [ a c _ P r o d u c t R e v i e w s _ P K ]   P R I M A R Y   K E Y   C L U S T E R E D    
 (  
 	 [ P r o d u c t R e v i e w I d ]   A S C  
 ) W I T H   ( P A D _ I N D E X     =   O F F ,   S T A T I S T I C S _ N O R E C O M P U T E     =   O F F ,   I G N O R E _ D U P _ K E Y   =   O F F ,   A L L O W _ R O W _ L O C K S     =   O N ,   A L L O W _ P A G E _ L O C K S     =   O N )   O N   [ P R I M A R Y ]  
 )   O N   [ P R I M A R Y ]  
 G O  
 / * * * * * *   O b j e c t :     T a b l e   [ d b o ] . [ a c _ P r o d u c t P r o d u c t T e m p l a t e s ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 4   * * * * * * /  
 S E T   A N S I _ N U L L S   O N  
 G O  
 S E T   Q U O T E D _ I D E N T I F I E R   O N  
 G O  
 C R E A T E   T A B L E   [ d b o ] . [ a c _ P r o d u c t P r o d u c t T e m p l a t e s ] (  
 	 [ P r o d u c t I d ]   [ i n t ]   N O T   N U L L ,  
 	 [ P r o d u c t T e m p l a t e I d ]   [ i n t ]   N O T   N U L L ,  
   C O N S T R A I N T   [ a c _ P r o d u c t P r o d u c t T e m p l a t e s _ P K ]   P R I M A R Y   K E Y   C L U S T E R E D    
 (  
 	 [ P r o d u c t I d ]   A S C ,  
 	 [ P r o d u c t T e m p l a t e I d ]   A S C  
 ) W I T H   ( P A D _ I N D E X     =   O F F ,   S T A T I S T I C S _ N O R E C O M P U T E     =   O F F ,   I G N O R E _ D U P _ K E Y   =   O F F ,   A L L O W _ R O W _ L O C K S     =   O N ,   A L L O W _ P A G E _ L O C K S     =   O N )   O N   [ P R I M A R Y ]  
 )   O N   [ P R I M A R Y ]  
 G O  
 / * * * * * *   O b j e c t :     T a b l e   [ d b o ] . [ a c _ P r o d u c t O p t i o n s ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 4   * * * * * * /  
 S E T   A N S I _ N U L L S   O N  
 G O  
 S E T   Q U O T E D _ I D E N T I F I E R   O N  
 G O  
 C R E A T E   T A B L E   [ d b o ] . [ a c _ P r o d u c t O p t i o n s ] (  
 	 [ P r o d u c t I d ]   [ i n t ]   N O T   N U L L ,  
 	 [ O p t i o n I d ]   [ i n t ]   N O T   N U L L ,  
 	 [ O r d e r B y ]   [ s m a l l i n t ]   N O T   N U L L ,  
   C O N S T R A I N T   [ a c _ P r o d u c t O p t i o n s _ P K ]   P R I M A R Y   K E Y   C L U S T E R E D    
 (  
 	 [ P r o d u c t I d ]   A S C ,  
 	 [ O p t i o n I d ]   A S C  
 ) W I T H   ( P A D _ I N D E X     =   O F F ,   S T A T I S T I C S _ N O R E C O M P U T E     =   O F F ,   I G N O R E _ D U P _ K E Y   =   O F F ,   A L L O W _ R O W _ L O C K S     =   O N ,   A L L O W _ P A G E _ L O C K S     =   O N )   O N   [ P R I M A R Y ]  
 )   O N   [ P R I M A R Y ]  
 G O  
 / * * * * * *   O b j e c t :     T a b l e   [ d b o ] . [ a c _ P r o d u c t K i t C o m p o n e n t s ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 4   * * * * * * /  
 S E T   A N S I _ N U L L S   O N  
 G O  
 S E T   Q U O T E D _ I D E N T I F I E R   O N  
 G O  
 C R E A T E   T A B L E   [ d b o ] . [ a c _ P r o d u c t K i t C o m p o n e n t s ] (  
 	 [ P r o d u c t I d ]   [ i n t ]   N O T   N U L L ,  
 	 [ K i t C o m p o n e n t I d ]   [ i n t ]   N O T   N U L L ,  
 	 [ O r d e r B y ]   [ s m a l l i n t ]   N O T   N U L L ,  
   C O N S T R A I N T   [ a c _ P r o d u c t K i t C o m p o n e n t s _ P K ]   P R I M A R Y   K E Y   C L U S T E R E D    
 (  
 	 [ P r o d u c t I d ]   A S C ,  
 	 [ K i t C o m p o n e n t I d ]   A S C  
 ) W I T H   ( P A D _ I N D E X     =   O F F ,   S T A T I S T I C S _ N O R E C O M P U T E     =   O F F ,   I G N O R E _ D U P _ K E Y   =   O F F ,   A L L O W _ R O W _ L O C K S     =   O N ,   A L L O W _ P A G E _ L O C K S     =   O N )   O N   [ P R I M A R Y ]  
 )   O N   [ P R I M A R Y ]  
 G O  
 / * * * * * *   O b j e c t :     T a b l e   [ d b o ] . [ a c _ P r o d u c t I m a g e s ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 4   * * * * * * /  
 S E T   A N S I _ N U L L S   O N  
 G O  
 S E T   Q U O T E D _ I D E N T I F I E R   O N  
 G O  
 S E T   A N S I _ P A D D I N G   O N  
 G O  
 C R E A T E   T A B L E   [ d b o ] . [ a c _ P r o d u c t I m a g e s ] (  
 	 [ P r o d u c t I m a g e I d ]   [ i n t ]   I D E N T I T Y ( 1 , 1 )   N O T   N U L L ,  
 	 [ P r o d u c t I d ]   [ i n t ]   N O T   N U L L ,  
 	 [ I m a g e U r l ]   [ v a r c h a r ] ( 2 5 5 )   N O T   N U L L ,  
 	 [ I m a g e A l t T e x t ]   [ n v a r c h a r ] ( 1 0 0 )   N U L L ,  
 	 [ O r d e r B y ]   [ s m a l l i n t ]   N O T   N U L L ,  
   C O N S T R A I N T   [ a c _ P r o d u c t I m a g e s _ P K ]   P R I M A R Y   K E Y   C L U S T E R E D    
 (  
 	 [ P r o d u c t I m a g e I d ]   A S C  
 ) W I T H   ( P A D _ I N D E X     =   O F F ,   S T A T I S T I C S _ N O R E C O M P U T E     =   O F F ,   I G N O R E _ D U P _ K E Y   =   O F F ,   A L L O W _ R O W _ L O C K S     =   O N ,   A L L O W _ P A G E _ L O C K S     =   O N )   O N   [ P R I M A R Y ]  
 )   O N   [ P R I M A R Y ]  
 G O  
 S E T   A N S I _ P A D D I N G   O F F  
 G O  
 / * * * * * *   O b j e c t :     T a b l e   [ d b o ] . [ a c _ P r o d u c t D i g i t a l G o o d s ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 4   * * * * * * /  
 S E T   A N S I _ N U L L S   O N  
 G O  
 S E T   Q U O T E D _ I D E N T I F I E R   O N  
 G O  
 S E T   A N S I _ P A D D I N G   O N  
 G O  
 C R E A T E   T A B L E   [ d b o ] . [ a c _ P r o d u c t D i g i t a l G o o d s ] (  
 	 [ P r o d u c t D i g i t a l G o o d I d ]   [ i n t ]   I D E N T I T Y ( 1 , 1 )   N O T   N U L L ,  
 	 [ P r o d u c t I d ]   [ i n t ]   N O T   N U L L ,  
 	 [ O p t i o n L i s t ]   [ v a r c h a r ] ( 2 5 5 )   N U L L ,  
 	 [ D i g i t a l G o o d I d ]   [ i n t ]   N O T   N U L L ,  
   C O N S T R A I N T   [ a c _ P r o d u c t D i g i t a l G o o d s _ P K ]   P R I M A R Y   K E Y   C L U S T E R E D    
 (  
 	 [ P r o d u c t D i g i t a l G o o d I d ]   A S C  
 ) W I T H   ( P A D _ I N D E X     =   O F F ,   S T A T I S T I C S _ N O R E C O M P U T E     =   O F F ,   I G N O R E _ D U P _ K E Y   =   O F F ,   A L L O W _ R O W _ L O C K S     =   O N ,   A L L O W _ P A G E _ L O C K S     =   O N )   O N   [ P R I M A R Y ]  
 )   O N   [ P R I M A R Y ]  
 G O  
 S E T   A N S I _ P A D D I N G   O F F  
 G O  
 / * * * * * *   O b j e c t :     T a b l e   [ d b o ] . [ a c _ P r o d u c t C u s t o m F i e l d s ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 4   * * * * * * /  
 S E T   A N S I _ N U L L S   O N  
 G O  
 S E T   Q U O T E D _ I D E N T I F I E R   O N  
 G O  
 C R E A T E   T A B L E   [ d b o ] . [ a c _ P r o d u c t C u s t o m F i e l d s ] (  
 	 [ P r o d u c t F i e l d I d ]   [ i n t ]   I D E N T I T Y ( 1 , 1 )   N O T   N U L L ,  
 	 [ P r o d u c t I d ]   [ i n t ]   N O T   N U L L ,  
 	 [ I s U s e r D e f i n e d ]   [ b i t ]   N O T   N U L L ,  
 	 [ I s V i s i b l e ]   [ b i t ]   N O T   N U L L ,  
 	 [ F i e l d N a m e ]   [ n v a r c h a r ] ( 1 0 0 )   N O T   N U L L ,  
 	 [ F i e l d V a l u e ]   [ n v a r c h a r ] ( m a x )   N U L L ,  
   C O N S T R A I N T   [ a c _ P r o d u c t C u s t o m F i e l d s _ P K ]   P R I M A R Y   K E Y   C L U S T E R E D    
 (  
 	 [ P r o d u c t F i e l d I d ]   A S C  
 ) W I T H   ( P A D _ I N D E X     =   O F F ,   S T A T I S T I C S _ N O R E C O M P U T E     =   O F F ,   I G N O R E _ D U P _ K E Y   =   O F F ,   A L L O W _ R O W _ L O C K S     =   O N ,   A L L O W _ P A G E _ L O C K S     =   O N )   O N   [ P R I M A R Y ]  
 )   O N   [ P R I M A R Y ]  
 G O  
 / * * * * * *   O b j e c t :     T a b l e   [ d b o ] . [ a c _ P r o d u c t A s s e t s ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 4   * * * * * * /  
 S E T   A N S I _ N U L L S   O N  
 G O  
 S E T   Q U O T E D _ I D E N T I F I E R   O N  
 G O  
 C R E A T E   T A B L E   [ d b o ] . [ a c _ P r o d u c t A s s e t s ] (  
 	 [ P r o d u c t A s s e t I d ]   [ i n t ]   I D E N T I T Y ( 1 , 1 )   N O T   N U L L ,  
 	 [ P r o d u c t I d ]   [ i n t ]   N O T   N U L L ,  
 	 [ A s s e t U r l ]   [ n v a r c h a r ] ( 2 5 5 )   N O T   N U L L ,  
 	 [ O r d e r B y ]   [ s m a l l i n t ]   N O T   N U L L ,  
   C O N S T R A I N T   [ a c _ P r o d u c t A s s e t s _ P K ]   P R I M A R Y   K E Y   C L U S T E R E D    
 (  
 	 [ P r o d u c t A s s e t I d ]   A S C  
 ) W I T H   ( P A D _ I N D E X     =   O F F ,   S T A T I S T I C S _ N O R E C O M P U T E     =   O F F ,   I G N O R E _ D U P _ K E Y   =   O F F ,   A L L O W _ R O W _ L O C K S     =   O N ,   A L L O W _ P A G E _ L O C K S     =   O N )   O N   [ P R I M A R Y ]  
 )   O N   [ P R I M A R Y ]  
 G O  
 / * * * * * *   O b j e c t :     T a b l e   [ d b o ] . [ a c _ R e l a t e d P r o d u c t s ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 4   * * * * * * /  
 S E T   A N S I _ N U L L S   O N  
 G O  
 S E T   Q U O T E D _ I D E N T I F I E R   O N  
 G O  
 C R E A T E   T A B L E   [ d b o ] . [ a c _ R e l a t e d P r o d u c t s ] (  
 	 [ P r o d u c t I d ]   [ i n t ]   N O T   N U L L ,  
 	 [ O r d e r B y ]   [ s m a l l i n t ]   N O T   N U L L ,  
 	 [ C h i l d P r o d u c t I d ]   [ i n t ]   N O T   N U L L ,  
   C O N S T R A I N T   [ a c _ R e l a t e d P r o d u c t s _ P K ]   P R I M A R Y   K E Y   C L U S T E R E D    
 (  
 	 [ P r o d u c t I d ]   A S C ,  
 	 [ C h i l d P r o d u c t I d ]   A S C  
 ) W I T H   ( P A D _ I N D E X     =   O F F ,   S T A T I S T I C S _ N O R E C O M P U T E     =   O F F ,   I G N O R E _ D U P _ K E Y   =   O F F ,   A L L O W _ R O W _ L O C K S     =   O N ,   A L L O W _ P A G E _ L O C K S     =   O N )   O N   [ P R I M A R Y ]  
 )   O N   [ P R I M A R Y ]  
 G O  
 / * * * * * *   O b j e c t :     T a b l e   [ d b o ] . [ a c _ U s e r P e r s o n a l i z a t i o n ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 4   * * * * * * /  
 S E T   A N S I _ N U L L S   O N  
 G O  
 S E T   Q U O T E D _ I D E N T I F I E R   O N  
 G O  
 S E T   A N S I _ P A D D I N G   O N  
 G O  
 C R E A T E   T A B L E   [ d b o ] . [ a c _ U s e r P e r s o n a l i z a t i o n ] (  
 	 [ P e r s o n a l i z a t i o n P a t h I d ]   [ i n t ]   N O T   N U L L ,  
 	 [ U s e r I d ]   [ i n t ]   N O T   N U L L ,  
 	 [ P a g e S e t t i n g s ]   [ i m a g e ]   N U L L ,  
 	 [ T h e m e ]   [ v a r c h a r ] ( 1 0 0 )   N U L L ,  
 	 [ M a s t e r P a g e F i l e ]   [ v a r c h a r ] ( 1 0 0 )   N U L L ,  
 	 [ L a s t U p d a t e d D a t e ]   [ d a t e t i m e ]   N O T   N U L L ,  
   C O N S T R A I N T   [ a c _ U s e r P e r s o n a l i z a t i o n _ P K ]   P R I M A R Y   K E Y   C L U S T E R E D    
 (  
 	 [ U s e r I d ]   A S C ,  
 	 [ P e r s o n a l i z a t i o n P a t h I d ]   A S C  
 ) W I T H   ( P A D _ I N D E X     =   O F F ,   S T A T I S T I C S _ N O R E C O M P U T E     =   O F F ,   I G N O R E _ D U P _ K E Y   =   O F F ,   A L L O W _ R O W _ L O C K S     =   O N ,   A L L O W _ P A G E _ L O C K S     =   O N )   O N   [ P R I M A R Y ]  
 )   O N   [ P R I M A R Y ]   T E X T I M A G E _ O N   [ P R I M A R Y ]  
 G O  
 S E T   A N S I _ P A D D I N G   O F F  
 G O  
 / * * * * * *   O b j e c t :     T a b l e   [ d b o ] . [ a c _ U s e r P a s s w o r d s ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 4   * * * * * * /  
 S E T   A N S I _ N U L L S   O N  
 G O  
 S E T   Q U O T E D _ I D E N T I F I E R   O N  
 G O  
 C R E A T E   T A B L E   [ d b o ] . [ a c _ U s e r P a s s w o r d s ] (  
 	 [ U s e r I d ]   [ i n t ]   N O T   N U L L ,  
 	 [ P a s s w o r d N u m b e r ]   [ t i n y i n t ]   N O T   N U L L ,  
 	 [ P a s s w o r d ]   [ n v a r c h a r ] ( 2 5 5 )   N O T   N U L L ,  
 	 [ P a s s w o r d F o r m a t ]   [ n v a r c h a r ] ( 1 0 )   N U L L ,  
 	 [ C r e a t e D a t e ]   [ d a t e t i m e ]   N O T   N U L L ,  
 	 [ F o r c e E x p i r a t i o n ]   [ b i t ]   N O T   N U L L ,  
   C O N S T R A I N T   [ a c _ U s e r P a s s w o r d s _ P K ]   P R I M A R Y   K E Y   C L U S T E R E D    
 (  
 	 [ U s e r I d ]   A S C ,  
 	 [ P a s s w o r d N u m b e r ]   A S C  
 ) W I T H   ( P A D _ I N D E X     =   O F F ,   S T A T I S T I C S _ N O R E C O M P U T E     =   O F F ,   I G N O R E _ D U P _ K E Y   =   O F F ,   A L L O W _ R O W _ L O C K S     =   O N ,   A L L O W _ P A G E _ L O C K S     =   O N )   O N   [ P R I M A R Y ]  
 )   O N   [ P R I M A R Y ]  
 G O  
 / * * * * * *   O b j e c t :     T a b l e   [ d b o ] . [ a c _ U p s e l l P r o d u c t s ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 4   * * * * * * /  
 S E T   A N S I _ N U L L S   O N  
 G O  
 S E T   Q U O T E D _ I D E N T I F I E R   O N  
 G O  
 C R E A T E   T A B L E   [ d b o ] . [ a c _ U p s e l l P r o d u c t s ] (  
 	 [ P r o d u c t I d ]   [ i n t ]   N O T   N U L L ,  
 	 [ C h i l d P r o d u c t I d ]   [ i n t ]   N O T   N U L L ,  
 	 [ O r d e r B y ]   [ s m a l l i n t ]   N O T   N U L L ,  
   C O N S T R A I N T   [ a c _ U p s e l l P r o d u c t s _ P K ]   P R I M A R Y   K E Y   C L U S T E R E D    
 (  
 	 [ P r o d u c t I d ]   A S C ,  
 	 [ C h i l d P r o d u c t I d ]   A S C  
 ) W I T H   ( P A D _ I N D E X     =   O F F ,   S T A T I S T I C S _ N O R E C O M P U T E     =   O F F ,   I G N O R E _ D U P _ K E Y   =   O F F ,   A L L O W _ R O W _ L O C K S     =   O N ,   A L L O W _ P A G E _ L O C K S     =   O N )   O N   [ P R I M A R Y ]  
 )   O N   [ P R I M A R Y ]  
 G O  
 / * * * * * *   O b j e c t :     T a b l e   [ d b o ] . [ a c _ P r o f i l e s ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 4   * * * * * * /  
 S E T   A N S I _ N U L L S   O N  
 G O  
 S E T   Q U O T E D _ I D E N T I F I E R   O N  
 G O  
 C R E A T E   T A B L E   [ d b o ] . [ a c _ P r o f i l e s ] (  
 	 [ U s e r I d ]   [ i n t ]   N O T   N U L L ,  
 	 [ P r o p e r t y N a m e s ]   [ n v a r c h a r ] ( m a x )   N U L L ,  
 	 [ P r o p e r t y V a l u e s S t r i n g ]   [ n v a r c h a r ] ( m a x )   N U L L ,  
 	 [ P r o p e r t y V a l u e s B i n a r y ]   [ i m a g e ]   N O T   N U L L ,  
 	 [ L a s t U p d a t e d D a t e ]   [ d a t e t i m e ]   N U L L ,  
   C O N S T R A I N T   [ a c _ P r o f i l e s _ P K ]   P R I M A R Y   K E Y   C L U S T E R E D    
 (  
 	 [ U s e r I d ]   A S C  
 ) W I T H   ( P A D _ I N D E X     =   O F F ,   S T A T I S T I C S _ N O R E C O M P U T E     =   O F F ,   I G N O R E _ D U P _ K E Y   =   O F F ,   A L L O W _ R O W _ L O C K S     =   O N ,   A L L O W _ P A G E _ L O C K S     =   O N )   O N   [ P R I M A R Y ]  
 )   O N   [ P R I M A R Y ]   T E X T I M A G E _ O N   [ P R I M A R Y ]  
 G O  
 / * * * * * *   O b j e c t :     T a b l e   [ d b o ] . [ a c _ P r o d u c t V o l u m e D i s c o u n t s ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 4   * * * * * * /  
 S E T   A N S I _ N U L L S   O N  
 G O  
 S E T   Q U O T E D _ I D E N T I F I E R   O N  
 G O  
 C R E A T E   T A B L E   [ d b o ] . [ a c _ P r o d u c t V o l u m e D i s c o u n t s ] (  
 	 [ P r o d u c t I d ]   [ i n t ]   N O T   N U L L ,  
 	 [ V o l u m e D i s c o u n t I d ]   [ i n t ]   N O T   N U L L ,  
   C O N S T R A I N T   [ a c _ P r o d u c t V o l u m e D i s c o u n t s _ P K ]   P R I M A R Y   K E Y   C L U S T E R E D    
 (  
 	 [ P r o d u c t I d ]   A S C ,  
 	 [ V o l u m e D i s c o u n t I d ]   A S C  
 ) W I T H   ( P A D _ I N D E X     =   O F F ,   S T A T I S T I C S _ N O R E C O M P U T E     =   O F F ,   I G N O R E _ D U P _ K E Y   =   O F F ,   A L L O W _ R O W _ L O C K S     =   O N ,   A L L O W _ P A G E _ L O C K S     =   O N )   O N   [ P R I M A R Y ]  
 )   O N   [ P R I M A R Y ]  
 G O  
 / * * * * * *   O b j e c t :     T a b l e   [ d b o ] . [ a c _ P r o d u c t V a r i a n t s ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 4   * * * * * * /  
 S E T   A N S I _ N U L L S   O N  
 G O  
 S E T   Q U O T E D _ I D E N T I F I E R   O N  
 G O  
 C R E A T E   T A B L E   [ d b o ] . [ a c _ P r o d u c t V a r i a n t s ] (  
 	 [ P r o d u c t V a r i a n t I d ]   [ i n t ]   I D E N T I T Y ( 1 , 1 )   N O T   N U L L ,  
 	 [ P r o d u c t I d ]   [ i n t ]   N O T   N U L L ,  
 	 [ O p t i o n 1 ]   [ i n t ]   N O T   N U L L ,  
 	 [ O p t i o n 2 ]   [ i n t ]   N O T   N U L L ,  
 	 [ O p t i o n 3 ]   [ i n t ]   N O T   N U L L ,  
 	 [ O p t i o n 4 ]   [ i n t ]   N O T   N U L L ,  
 	 [ O p t i o n 5 ]   [ i n t ]   N O T   N U L L ,  
 	 [ O p t i o n 6 ]   [ i n t ]   N O T   N U L L ,  
 	 [ O p t i o n 7 ]   [ i n t ]   N O T   N U L L ,  
 	 [ O p t i o n 8 ]   [ i n t ]   N O T   N U L L ,  
 	 [ V a r i a n t N a m e ]   [ n v a r c h a r ] ( 2 5 5 )   N U L L ,  
 	 [ S k u ]   [ n v a r c h a r ] ( 1 0 0 )   N U L L ,  
 	 [ P r i c e ]   [ d e c i m a l ] ( 1 2 ,   4 )   N U L L ,  
 	 [ P r i c e M o d e I d ]   [ t i n y i n t ]   N O T   N U L L ,  
 	 [ W e i g h t ]   [ d e c i m a l ] ( 1 2 ,   4 )   N U L L ,  
 	 [ W e i g h t M o d e I d ]   [ t i n y i n t ]   N O T   N U L L ,  
 	 [ C o s t O f G o o d s ]   [ d e c i m a l ] ( 1 2 ,   4 )   N U L L ,  
 	 [ I n S t o c k ]   [ i n t ]   N O T   N U L L ,  
 	 [ I n S t o c k W a r n i n g L e v e l ]   [ i n t ]   N O T   N U L L ,  
 	 [ A v a i l a b l e ]   [ b i t ]   N O T   N U L L ,  
   C O N S T R A I N T   [ a c _ P r o d u c t V a r i a n t s _ P K ]   P R I M A R Y   K E Y   C L U S T E R E D    
 (  
 	 [ P r o d u c t V a r i a n t I d ]   A S C  
 ) W I T H   ( P A D _ I N D E X     =   O F F ,   S T A T I S T I C S _ N O R E C O M P U T E     =   O F F ,   I G N O R E _ D U P _ K E Y   =   O F F ,   A L L O W _ R O W _ L O C K S     =   O N ,   A L L O W _ P A G E _ L O C K S     =   O N )   O N   [ P R I M A R Y ]  
 )   O N   [ P R I M A R Y ]  
 G O  
 / * * * * * *   O b j e c t :     T a b l e   [ d b o ] . [ a c _ P r o d u c t T e m p l a t e F i e l d s ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 4   * * * * * * /  
 S E T   A N S I _ N U L L S   O N  
 G O  
 S E T   Q U O T E D _ I D E N T I F I E R   O N  
 G O  
 C R E A T E   T A B L E   [ d b o ] . [ a c _ P r o d u c t T e m p l a t e F i e l d s ] (  
 	 [ P r o d u c t T e m p l a t e F i e l d I d ]   [ i n t ]   I D E N T I T Y ( 1 , 1 )   N O T   N U L L ,  
 	 [ P r o d u c t I d ]   [ i n t ]   N O T   N U L L ,  
 	 [ I n p u t F i e l d I d ]   [ i n t ]   N O T   N U L L ,  
 	 [ I n p u t V a l u e ]   [ n v a r c h a r ] ( m a x )   N O T   N U L L ,  
   C O N S T R A I N T   [ a c _ P r o d u c t T e m p l a t e F i e l d s _ P K ]   P R I M A R Y   K E Y   C L U S T E R E D    
 (  
 	 [ P r o d u c t T e m p l a t e F i e l d I d ]   A S C  
 ) W I T H   ( P A D _ I N D E X     =   O F F ,   S T A T I S T I C S _ N O R E C O M P U T E     =   O F F ,   I G N O R E _ D U P _ K E Y   =   O F F ,   A L L O W _ R O W _ L O C K S     =   O N ,   A L L O W _ P A G E _ L O C K S     =   O N )   O N   [ P R I M A R Y ]  
 )   O N   [ P R I M A R Y ]  
 G O  
 / * * * * * *   O b j e c t :     T a b l e   [ d b o ] . [ a c _ P a g e V i e w s ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 4   * * * * * * /  
 S E T   A N S I _ N U L L S   O N  
 G O  
 S E T   Q U O T E D _ I D E N T I F I E R   O N  
 G O  
 S E T   A N S I _ P A D D I N G   O N  
 G O  
 C R E A T E   T A B L E   [ d b o ] . [ a c _ P a g e V i e w s ] (  
 	 [ P a g e V i e w I d ]   [ i n t ]   I D E N T I T Y ( 1 , 1 )   N O T   N U L L ,  
 	 [ S t o r e I d ]   [ i n t ]   N O T   N U L L ,  
 	 [ A c t i v i t y D a t e ]   [ d a t e t i m e ]   N O T   N U L L ,  
 	 [ R e m o t e I P ]   [ v a r c h a r ] ( 3 9 )   N O T   N U L L ,  
 	 [ R e q u e s t M e t h o d ]   [ n v a r c h a r ] ( 4 )   N O T   N U L L ,  
 	 [ U s e r I d ]   [ i n t ]   N O T   N U L L ,  
 	 [ U r i S t e m ]   [ n v a r c h a r ] ( 2 5 5 )   N O T   N U L L ,  
 	 [ U r i Q u e r y ]   [ n v a r c h a r ] ( 2 5 5 )   N U L L ,  
 	 [ T i m e T a k e n ]   [ i n t ]   N O T   N U L L ,  
 	 [ U s e r A g e n t ]   [ n v a r c h a r ] ( 2 5 5 )   N U L L ,  
 	 [ R e f e r r e r ]   [ n v a r c h a r ] ( 2 5 5 )   N U L L ,  
 	 [ C a t a l o g N o d e I d ]   [ i n t ]   N U L L ,  
 	 [ C a t a l o g N o d e T y p e I d ]   [ s m a l l i n t ]   N U L L ,  
 	 [ B r o w s e r ]   [ n v a r c h a r ] ( 1 5 0 )   N O T   N U L L ,  
 	 [ B r o w s e r N a m e ]   [ n v a r c h a r ] ( 1 0 0 )   N O T   N U L L ,  
 	 [ B r o w s e r P l a t f o r m ]   [ n v a r c h a r ] ( 4 0 )   N O T   N U L L ,  
 	 [ B r o w s e r V e r s i o n ]   [ n v a r c h a r ] ( 4 0 )   N O T   N U L L ,  
 	 [ A f f i l i a t e I d ]   [ i n t ]   N O T   N U L L ,  
   C O N S T R A I N T   [ a c _ P a g e V i e w s _ P K ]   P R I M A R Y   K E Y   C L U S T E R E D    
 (  
 	 [ P a g e V i e w I d ]   A S C  
 ) W I T H   ( P A D _ I N D E X     =   O F F ,   S T A T I S T I C S _ N O R E C O M P U T E     =   O F F ,   I G N O R E _ D U P _ K E Y   =   O F F ,   A L L O W _ R O W _ L O C K S     =   O N ,   A L L O W _ P A G E _ L O C K S     =   O N )   O N   [ P R I M A R Y ]  
 )   O N   [ P R I M A R Y ]  
 G O  
 S E T   A N S I _ P A D D I N G   O F F  
 G O  
 / * * * * * *   O b j e c t :     T a b l e   [ d b o ] . [ a c _ S p e c i a l s ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 4   * * * * * * /  
 S E T   A N S I _ N U L L S   O N  
 G O  
 S E T   Q U O T E D _ I D E N T I F I E R   O N  
 G O  
 C R E A T E   T A B L E   [ d b o ] . [ a c _ S p e c i a l s ] (  
 	 [ S p e c i a l I d ]   [ i n t ]   I D E N T I T Y ( 1 , 1 )   N O T   N U L L ,  
 	 [ P r o d u c t I d ]   [ i n t ]   N O T   N U L L ,  
 	 [ P r i c e ]   [ d e c i m a l ] ( 1 2 ,   4 )   N O T   N U L L ,  
 	 [ S t a r t D a t e ]   [ d a t e t i m e ]   N U L L ,  
 	 [ E n d D a t e ]   [ d a t e t i m e ]   N U L L ,  
   C O N S T R A I N T   [ a c _ S p e c i a l s _ P K ]   P R I M A R Y   K E Y   C L U S T E R E D    
 (  
 	 [ S p e c i a l I d ]   A S C  
 ) W I T H   ( P A D _ I N D E X     =   O F F ,   S T A T I S T I C S _ N O R E C O M P U T E     =   O F F ,   I G N O R E _ D U P _ K E Y   =   O F F ,   A L L O W _ R O W _ L O C K S     =   O N ,   A L L O W _ P A G E _ L O C K S     =   O N )   O N   [ P R I M A R Y ]  
 )   O N   [ P R I M A R Y ]  
 G O  
 / * * * * * *   O b j e c t :     S t o r e d P r o c e d u r e   [ d b o ] . [ s p G e t R a n d o m P r o d u c t ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 6   * * * * * * /  
 S E T   A N S I _ N U L L S   O N  
 G O  
 S E T   Q U O T E D _ I D E N T I F I E R   O N  
 G O  
 C R E A T E   P R O C E D U R E   [ d b o ] . [ s p G e t R a n d o m P r o d u c t ]  
                                 @ I d   I N T     =   0  
 A S   - -   R a n d o m   P r o d u c t  
  
 I F   ( @ I d   > 0 )  
 B E G I N  
 	  
 	 S E L E C T   T O P   1   P r o d u c t I d ,  
                               [ a c _ P r o d u c t s ] . N a m e ,  
                               [ a c _ M a n u f a c t u r e r s ] . [ N a m e ]                       A S   A u t h o r ,  
                               [ a c _ M a n u f a c t u r e r s ] . [ M a n u f a c t u r e r I d ]   A S   A u t h o r I d ,  
                               I m a g e U r l   A S   [ T h u m b n a i l U r l ] ,  
                               [ T h u m b n a i l A l t T e x t ] ,  
                               [ S u m m a r y ] ,  
                               P r i c e ,  
                               M S R P  
     F R O M       a c _ P r o d u c t s   W I T H   ( N O L O C K )  
                   I N N E R   J O I N   [ a c _ M a n u f a c t u r e r s ]   W I T H   ( N O L O C K )  
                       O N   [ a c _ M a n u f a c t u r e r s ] . [ M a n u f a c t u r e r I d ]   =   [ a c _ P r o d u c t s ] . [ M a n u f a c t u r e r I d ]  
     W H E R E     P r o d u c t I d   =   @ I d  
 E N D    
  
   - -   S e l e c t   t h e   c o l u m n s   f r o m   t h e   t a b l e   j o i n e d   f o r   t h e   k e y    
     - -   s e l e c t e d   f r o m   t h e   c u r s o r  
     - - s e l e c t   t o p   1   P r o d u c t I d   F R O M   a c _ P r o d u c t s   W H E R E   A c t i v e   =   1   A N D   P r o d u c t I d   =   @ P r o d u c t  
     S E L E C T   T O P   1   P r o d u c t I d ,  
                               [ a c _ P r o d u c t s ] . N a m e ,  
                               [ a c _ M a n u f a c t u r e r s ] . [ N a m e ]                       A S   A u t h o r ,  
                               [ a c _ M a n u f a c t u r e r s ] . [ M a n u f a c t u r e r I d ]   A S   A u t h o r I d ,  
                               [ T h u m b n a i l U r l ] ,  
                               [ T h u m b n a i l A l t T e x t ] ,  
                               [ S u m m a r y ] ,  
                               P r i c e ,  
                               M S R P  
     F R O M       a c _ P r o d u c t s   W I T H   ( N O L O C K )  
                   I N N E R   J O I N   [ a c _ M a n u f a c t u r e r s ]   W I T H   ( N O L O C K )  
                       O N   [ a c _ M a n u f a c t u r e r s ] . [ M a n u f a c t u r e r I d ]   =   [ a c _ P r o d u c t s ] . [ M a n u f a c t u r e r I d ]  
     O R D E R   B Y   N E W I D ( )  
  
 - - s e l e c t   *   f r o m   a c _ P r o d u c t s   w h e r e   n a m e   l i k e   ' % l a d i e s % '  
 G O  
 / * * * * * *   O b j e c t :     S t o r e d P r o c e d u r e   [ d b o ] . [ s p G e t N e w P r o d u c t s ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 6   * * * * * * /  
 S E T   A N S I _ N U L L S   O N  
 G O  
 S E T   Q U O T E D _ I D E N T I F I E R   O N  
 G O  
 - -   = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =  
 - -   A u t h o r : 	 	 D a v i d V  
 - -   C r e a t e   d a t e :    
 - -   D e s c r i p t i o n : 	  
 - -   = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =  
 C R E A T E   P R O C E D U R E   [ d b o ] . [ s p G e t N e w P r o d u c t s ]  
                                 @ M a x I t e m s   I N T     =   5  
 A S  
     B E G I N  
         S E T   C O N C A T _ N U L L _ Y I E L D S _ N U L L     O F F  
          
         S E T   R O W C O U N T     @ M a x I t e m s  
          
         S E L E C T       a c _ P R O D U C T S . P r o d u c t I d ,  
                           a c _ P R O D U C T S . N a m e ,  
                           - - C A S T ( a c _ P R O D U C T S . D e s c r i p t i o n 1   A S   V A R C H A R ( M A X ) )   +   '   '   +  
                           C A S T ( a c _ P R O D U C T S . [ D e s c r i p t i o n ]   A S   V A R C H A R ( 5 0 0 ) )   +   ' . . . '   A S   D E S C R I P T I O N ,  
                           [ a c _ M a n u f a c t u r e r s ] . [ N a m e ]                                                                                               A S   A u t h o r N a m e ,  
                           [ a c _ M a n u f a c t u r e r s ] . [ M a n u f a c t u r e r I d ]                                                                           A S   M a n u f a c t u r e r I d ,  
                           a c _ P R O D U C T S . [ S k u ]                                                                                                               A S   G U I D ,  
                           ' p r o d u c t . a s p x ? P r o d u c t I d = '   +   C A S T ( a c _ P R O D U C T S . P r o d u c t I d   A S   V A R C H A R ( M A X ) )   A S   D i s p l a y P a g e ,  
                           [ a c _ P r o d u c t s ] . [ C r e a t e d D a t e ] ,  
                           [ a c _ P r o d u c t s ] . [ P r i c e ] ,  
                           a c _ P r o d u c t s . [ T h u m b n a i l U r l ] ,  
                           S u m m a r y  
         F R O M           a c _ P R O D U C T S   W I T H ( N O L O C K )  
                           I N N E R   J O I N   [ a c _ M a n u f a c t u r e r s ]  
                               O N   [ a c _ M a n u f a c t u r e r s ] . [ M a n u f a c t u r e r I d ]   =   [ a c _ P r o d u c t s ] . [ M a n u f a c t u r e r I d ]  
         W H E R E         a c _ P R O D U C T S . [ D i s a b l e P u r c h a s e ]   =   0   A N D   S K U   N O T   L I K E   ' % E P U B % '  
         O R D E R   B Y   [ C r e a t e d D a t e ]   D E S C  
     E N D  
 G O  
 / * * * * * *   O b j e c t :     S t o r e d P r o c e d u r e   [ d b o ] . [ s p G e t N e w B o o k s ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 6   * * * * * * /  
 S E T   A N S I _ N U L L S   O N  
 G O  
 S E T   Q U O T E D _ I D E N T I F I E R   O N  
 G O  
 - -   = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =  
 - -   A u t h o r : 	 	 D a v i d V  
 - -   C r e a t e   d a t e :    
 - -   D e s c r i p t i o n : 	  
 - -   = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =  
 C R E A T E   P R O C E D U R E   [ d b o ] . [ s p G e t N e w B o o k s ]  
 A S  
     B E G I N  
         S E T   C O N C A T _ N U L L _ Y I E L D S _ N U L L     O F F  
          
         S E L E C T       T O P   1 5   a c _ P R O D U C T S . P r o d u c t I d ,  
                                         a c _ P R O D U C T S . N a m e ,  
                                         - - C A S T ( a c _ P R O D U C T S . D e s c r i p t i o n 1   A S   V A R C H A R ( M A X ) )   +   '   '   +  
                                         C A S T ( a c _ P R O D U C T S . D E S C R I P T I O N   A S   V A R C H A R ( 1 5 0 0 ) )   +   ' . . . '   A S   D E S C R I P T I O N ,  
                                         [ a c _ M a n u f a c t u r e r s ] . [ N a m e ]                                                                                               A S   A u t h o r N a m e ,  
                                         a c _ P R O D U C T S . [ S k u ]                                                                                                               A S   G U I D ,  
                                         a c _ P R O D U C T S . [ S k u ] ,  
                                         ' p r o d u c t . a s p x ? P r o d u c t I d = '   +   C A S T ( a c _ P R O D U C T S . P r o d u c t I d   A S   V A R C H A R ( M A X ) )   A S   D i s p l a y P a g e ,  
                                         [ a c _ P r o d u c t s ] . [ C r e a t e d D a t e ]  
         F R O M           a c _ P R O D U C T S  
                           I N N E R   J O I N   [ a c _ M a n u f a c t u r e r s ]  
                               O N   [ a c _ M a n u f a c t u r e r s ] . [ M a n u f a c t u r e r I d ]   =   [ a c _ P r o d u c t s ] . [ M a n u f a c t u r e r I d ]  
         W H E R E         a c _ P R O D U C T S . [ D i s a b l e P u r c h a s e ]   =   0  
                           A N D   S K U   I S   N O T   N U L L   A N D   S K U   N O T   L I K E   ' % E P U B % '  
         O R D E R   B Y   [ C r e a t e d D a t e ]   D E S C  
     E N D  
 G O  
 / * * * * * *   O b j e c t :     T a b l e   [ d b o ] . [ b h _ P r o d u c t E x t e n d e d ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 4   * * * * * * /  
 S E T   A N S I _ N U L L S   O N  
 G O  
 S E T   Q U O T E D _ I D E N T I F I E R   O N  
 G O  
 C R E A T E   T A B L E   [ d b o ] . [ b h _ P r o d u c t E x t e n d e d ] (  
 	 [ P r o d u c t I D ]   [ i n t ]   I D E N T I T Y ( 1 , 1 )   N O T   N U L L ,  
 	 [ I S B N ]   [ n v a r c h a r ] ( 5 0 )   N U L L ,  
 	 [ B i n d i n g ]   [ n v a r c h a r ] ( 5 0 )   N U L L ,  
 	 [ P a g e s ]   [ n v a r c h a r ] ( 5 0 )   N U L L ,  
 	 [ E d i t i o n ]   [ n v a r c h a r ] ( 5 0 )   N U L L ,  
 	 [ P u b D a t e ]   [ n v a r c h a r ] ( 5 0 )   N U L L ,  
   C O N S T R A I N T   [ P K _ a c _ P r o d u c t E x t e n d e d ]   P R I M A R Y   K E Y   C L U S T E R E D    
 (  
 	 [ P r o d u c t I D ]   A S C  
 ) W I T H   ( P A D _ I N D E X     =   O F F ,   S T A T I S T I C S _ N O R E C O M P U T E     =   O F F ,   I G N O R E _ D U P _ K E Y   =   O F F ,   A L L O W _ R O W _ L O C K S     =   O N ,   A L L O W _ P A G E _ L O C K S     =   O N )   O N   [ P R I M A R Y ]  
 )   O N   [ P R I M A R Y ]  
 G O  
 / * * * * * *   O b j e c t :     T a b l e   [ d b o ] . [ a c _ U s e r S e t t i n g s ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 4   * * * * * * /  
 S E T   A N S I _ N U L L S   O N  
 G O  
 S E T   Q U O T E D _ I D E N T I F I E R   O N  
 G O  
 C R E A T E   T A B L E   [ d b o ] . [ a c _ U s e r S e t t i n g s ] (  
 	 [ U s e r S e t t i n g I d ]   [ i n t ]   I D E N T I T Y ( 1 , 1 )   N O T   N U L L ,  
 	 [ U s e r I d ]   [ i n t ]   N O T   N U L L ,  
 	 [ F i e l d N a m e ]   [ n v a r c h a r ] ( 2 5 5 )   N O T   N U L L ,  
 	 [ F i e l d V a l u e ]   [ n v a r c h a r ] ( m a x )   N O T   N U L L ,  
   C O N S T R A I N T   [ a c _ U s e r S e t t i n g s _ P K ]   P R I M A R Y   K E Y   C L U S T E R E D    
 (  
 	 [ U s e r S e t t i n g I d ]   A S C  
 ) W I T H   ( P A D _ I N D E X     =   O F F ,   S T A T I S T I C S _ N O R E C O M P U T E     =   O F F ,   I G N O R E _ D U P _ K E Y   =   O F F ,   A L L O W _ R O W _ L O C K S     =   O N ,   A L L O W _ P A G E _ L O C K S     =   O N )   O N   [ P R I M A R Y ]  
 )   O N   [ P R I M A R Y ]  
 G O  
 / * * * * * *   O b j e c t :     S t o r e d P r o c e d u r e   [ d b o ] . [ s p _ S n o w C a t I m a g e s T S h i r t s ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 6   * * * * * * /  
 S E T   A N S I _ N U L L S   O N  
 G O  
 S E T   Q U O T E D _ I D E N T I F I E R   O N  
 G O  
 C R E A T E   P R O C E D U R E   [ d b o ] . [ s p _ S n o w C a t I m a g e s T S h i r t s ]  
 A S  
  
 S E L E C T     ' < p h o t o   i m a g e = " h t t p : / / m i s e s . o r g / s t o r e / a s s e t s / p r o d u c t i m a g e s / ' +   C A S T ( S K U   A S   V A R C H A R ( M A X ) ) +   ' . j p g "   b i g i m a g e = " h t t p : / / m i s e s . o r g / s t o r e / a s s e t s / p r o d u c t i m a g e s / ' +   C A S T ( S K U   A S   V A R C H A R ( M A X ) ) +   ' . j p g "   u r l = " h t t p : / / m i s e s . o r g / s t o r e / P r o d u c t . a s p x ? P r o d u c t I d = ' +   C A S T ( P r o d u c t I d   A S   V A R C H A R ( M A X ) )   +   ' "   t a r g e t = " _ s e l f "   l i g h t b o x i n f o   =   " '   +   N A M E   +   '   & l t ; b r & g t ;   $ '   +   d b o . f o r m a t _ c u r r e n c y ( P r i c e )   +     '   & l t ; b r & g t ;   & l t ; a   h r e f = & q u o t ; h t t p : / / m i s e s . o r g / s t o r e / - P '   +   C A S T ( P r o d u c t I d   A S   V A R C H A R ( M A X ) )   +     ' . a s p x & q u o t ; & g t ; V i e w   P r o d u c t   P a g e & l t ; / a & g t ;   " >  
   < ! [ C D A T A [   < t o o l t i p >   < b r > < b > '   +   N a m e   +   ' < / b > < b r >   $ '   +   d b o . f o r m a t _ c u r r e n c y ( P r i c e )   +     ' < / t o o l t i p >  
 < d e s c r i p t i o n > '   +   C A S T ( S u m m a r y   A S   V A R C H A R ( 1 0 0 ) )   +   '  
 < a   h r e f = " h t t p : / / m i s e s . o r g / s t o r e / P r o d u c t . a s p x ? P r o d u c t I d = '   +   C A S T ( P r o d u c t I d   A S   V A R C H A R ( M A X ) )   + ' " > R e a d   M o r e < / a > < / d e s c r i p t i o n > ] ] > < / p h o t o > '  
  
 F R O M   a c _ P r o d u c t s   W H E R E   D i s a b l e P u r c h a s e   =   0   A N D   V i s i b i l i t y I d   =   0   A N D   ( N A M E   L I K E   ' % T - S h i r t % ' )  
  
         O R D E R   B Y   N a m e  
 G O  
 / * * * * * *   O b j e c t :     S t o r e d P r o c e d u r e   [ d b o ] . [ S n o w C a t I m a g e s G e t T s h i r t I n f o ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 6   * * * * * * /  
 S E T   A N S I _ N U L L S   O N  
 G O  
 S E T   Q U O T E D _ I D E N T I F I E R   O N  
 G O  
 C R E A T E   P R O C E D U R E   [ d b o ] . [ S n o w C a t I m a g e s G e t T s h i r t I n f o ]  
 A S  
  
 S E L E C T   S K U ,   N A M E ,   P r i c e ,   S u m m a r y     F R O M   a c _ P r o d u c t s   W H E R E     N A M E   L I K E   ' % T - S h i r t % '  
 O R D E R   B Y   N a m e  
 G O  
 / * * * * * *   O b j e c t :     S t o r e d P r o c e d u r e   [ d b o ] . [ P r o d u c t s G e t L i s t ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 6   * * * * * * /  
 S E T   A N S I _ N U L L S   O N  
 G O  
 S E T   Q U O T E D _ I D E N T I F I E R   O N  
 G O  
 - -   = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =  
 - -   A u t h o r : 	 	 N a m e  
 - -   C r e a t e   d a t e :    
 - -   D e s c r i p t i o n : 	  
 - -   = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =  
 C R E A T E   P R O C E D U R E   [ d b o ] . [ P r o d u c t s G e t L i s t ]    
 	  
 A S  
 B E G I N  
 	 - -   S E T   N O C O U N T   O N   a d d e d   t o   p r e v e n t   e x t r a   r e s u l t   s e t s   f r o m  
 	 - -   i n t e r f e r i n g   w i t h   S E L E C T   s t a t e m e n t s .  
 	 S E T   N O C O U N T   O N ;  
  
         S E L E C T   P r o d u c t I d ,   [ N a m e ] ,   R E P L A C E ( I S N U L L ( T h u m b n a i l U r l , ' ' ) , ' ~ ' , ' / s t o r e ' )   A S   T h u m b n a i l U r l ,   T h u m b n a i l A l t T e x t ,   V i s i b i l i t y I d  
         F R O M   a c _ P r o d u c t s   W H E R E   V i s i b i l i t y I d   =   0   A N D   T h u m b n a i l U r l   I S   N O T   N U L L  
         O R D E R   B Y   N a m e  
  
 E N D  
 G O  
 / * * * * * *   O b j e c t :     S t o r e d P r o c e d u r e   [ d b o ] . [ P r o d u c t I d F r o m S K U ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 6   * * * * * * /  
 S E T   A N S I _ N U L L S   O N  
 G O  
 S E T   Q U O T E D _ I D E N T I F I E R   O N  
 G O  
 - -   = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =  
 - -   A u t h o r : 	 	 N a m e  
 - -   C r e a t e   d a t e :    
 - -   D e s c r i p t i o n : 	  
 - -   = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =  
 C R E A T E   P R O C E D U R E   [ d b o ] . [ P r o d u c t I d F r o m S K U ]    
 	 - -   A d d   t h e   p a r a m e t e r s   f o r   t h e   s t o r e d   p r o c e d u r e   h e r e  
 	 @ S K U   V A R C H A R ( 1 5 0 )  
 A S  
 B E G I N  
 	  
 	 	 S E L E C T   P r o d u c t I d   F R O M   a c _ P r o d u c t s   W H E R E   s k u   =   @ s k u  
 	  
 E N D  
 G O  
 / * * * * * *   O b j e c t :     S t o r e d P r o c e d u r e   [ d b o ] . [ P r o d u c t G e t R a n d o m ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 6   * * * * * * /  
 S E T   A N S I _ N U L L S   O N  
 G O  
 S E T   Q U O T E D _ I D E N T I F I E R   O N  
 G O  
 C R E A T E   P R O C E D U R E   [ d b o ] . [ P r o d u c t G e t R a n d o m ]                                  
 A S    
    
     S E L E C T   T O P   1   P r o d u c t I d ,  
                               [ a c _ P r o d u c t s ] . N a m e ,  
                               [ a c _ M a n u f a c t u r e r s ] . [ N a m e ]                       A S   A u t h o r ,  
                               [ a c _ M a n u f a c t u r e r s ] . [ M a n u f a c t u r e r I d ]   A S   A u t h o r I d ,  
                               [ T h u m b n a i l U r l ] ,  
                               [ T h u m b n a i l A l t T e x t ] ,  
                               [ S u m m a r y ] ,  
                               P r i c e  
     F R O M       a c _ P r o d u c t s   W I T H   ( N O L O C K )  
                   I N N E R   J O I N   [ a c _ M a n u f a c t u r e r s ]   W I T H   ( N O L O C K )  
                       O N   [ a c _ M a n u f a c t u r e r s ] . [ M a n u f a c t u r e r I d ]   =   [ a c _ P r o d u c t s ] . [ M a n u f a c t u r e r I d ]  
     O R D E R   B Y   N E W I D ( )  
 G O  
 / * * * * * *   O b j e c t :     S t o r e d P r o c e d u r e   [ d b o ] . [ M o v e O r d e r T o U s e r ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 6   * * * * * * /  
 S E T   A N S I _ N U L L S   O N  
 G O  
 S E T   Q U O T E D _ I D E N T I F I E R   O N  
 G O  
 - -   = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =  
 - -   A u t h o r : 	 	 D a v i d V  
 - -   C r e a t e   d a t e :    
 - -   D e s c r i p t i o n : 	  
 - -   = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =  
 C R E A T E   P R O C E D U R E   [ d b o ] . [ M o v e O r d e r T o U s e r ]    
 	 - -   A d d   t h e   p a r a m e t e r s   f o r   t h e   s t o r e d   p r o c e d u r e   h e r e  
 	 @ N e w U s e r   i n t ,    
 	 @ O l d U s e r   i n t  
 A S  
 B E G I N  
 	 U P D A T E   a c _ o r d e r s   S E T   d b o . a c _ O r d e r s . U s e r I d   =   @ N e w U s e r   W H E R E   d b o . a c _ O r d e r s . U s e r I d   =   @ O l d U s e r  
 E N D  
 G O  
 / * * * * * *   O b j e c t :     T a b l e   [ d b o ] . [ a c _ S p e c i a l G r o u p s ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 4   * * * * * * /  
 S E T   A N S I _ N U L L S   O N  
 G O  
 S E T   Q U O T E D _ I D E N T I F I E R   O N  
 G O  
 C R E A T E   T A B L E   [ d b o ] . [ a c _ S p e c i a l G r o u p s ] (  
 	 [ S p e c i a l I d ]   [ i n t ]   N O T   N U L L ,  
 	 [ G r o u p I d ]   [ i n t ]   N O T   N U L L ,  
   C O N S T R A I N T   [ a c _ S p e c i a l G r o u p s _ P K ]   P R I M A R Y   K E Y   C L U S T E R E D    
 (  
 	 [ S p e c i a l I d ]   A S C ,  
 	 [ G r o u p I d ]   A S C  
 ) W I T H   ( P A D _ I N D E X     =   O F F ,   S T A T I S T I C S _ N O R E C O M P U T E     =   O F F ,   I G N O R E _ D U P _ K E Y   =   O F F ,   A L L O W _ R O W _ L O C K S     =   O N ,   A L L O W _ P A G E _ L O C K S     =   O N )   O N   [ P R I M A R Y ]  
 )   O N   [ P R I M A R Y ]  
 G O  
 / * * * * * *   O b j e c t :     T a b l e   [ d b o ] . [ a c _ O r d e r C o u p o n s ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 4   * * * * * * /  
 S E T   A N S I _ N U L L S   O N  
 G O  
 S E T   Q U O T E D _ I D E N T I F I E R   O N  
 G O  
 C R E A T E   T A B L E   [ d b o ] . [ a c _ O r d e r C o u p o n s ] (  
 	 [ O r d e r I d ]   [ i n t ]   N O T   N U L L ,  
 	 [ C o u p o n C o d e ]   [ n v a r c h a r ] ( 5 0 )   N O T   N U L L ,  
   C O N S T R A I N T   [ a c _ O r d e r C o u p o n s _ P K ]   P R I M A R Y   K E Y   C L U S T E R E D    
 (  
 	 [ C o u p o n C o d e ]   A S C ,  
 	 [ O r d e r I d ]   A S C  
 ) W I T H   ( P A D _ I N D E X     =   O F F ,   S T A T I S T I C S _ N O R E C O M P U T E     =   O F F ,   I G N O R E _ D U P _ K E Y   =   O F F ,   A L L O W _ R O W _ L O C K S     =   O N ,   A L L O W _ P A G E _ L O C K S     =   O N )   O N   [ P R I M A R Y ]  
 )   O N   [ P R I M A R Y ]  
 G O  
 / * * * * * *   O b j e c t :     T a b l e   [ d b o ] . [ a c _ B a s k e t C o u p o n s ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 4   * * * * * * /  
 S E T   A N S I _ N U L L S   O N  
 G O  
 S E T   Q U O T E D _ I D E N T I F I E R   O N  
 G O  
 C R E A T E   T A B L E   [ d b o ] . [ a c _ B a s k e t C o u p o n s ] (  
 	 [ B a s k e t I d ]   [ i n t ]   N O T   N U L L ,  
 	 [ C o u p o n I d ]   [ i n t ]   N O T   N U L L ,  
 	 [ A p p l i e d D a t e ]   [ d a t e t i m e ]   N O T   N U L L ,  
   C O N S T R A I N T   [ a c _ B a s k e t C o u p o n s _ P K ]   P R I M A R Y   K E Y   C L U S T E R E D    
 (  
 	 [ C o u p o n I d ]   A S C ,  
 	 [ B a s k e t I d ]   A S C  
 ) W I T H   ( P A D _ I N D E X     =   O F F ,   S T A T I S T I C S _ N O R E C O M P U T E     =   O F F ,   I G N O R E _ D U P _ K E Y   =   O F F ,   A L L O W _ R O W _ L O C K S     =   O N ,   A L L O W _ P A G E _ L O C K S     =   O N )   O N   [ P R I M A R Y ]  
 )   O N   [ P R I M A R Y ]  
 G O  
 / * * * * * *   O b j e c t :     T a b l e   [ d b o ] . [ a c _ O r d e r N o t e s ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 4   * * * * * * /  
 S E T   A N S I _ N U L L S   O N  
 G O  
 S E T   Q U O T E D _ I D E N T I F I E R   O N  
 G O  
 C R E A T E   T A B L E   [ d b o ] . [ a c _ O r d e r N o t e s ] (  
 	 [ O r d e r N o t e I d ]   [ i n t ]   I D E N T I T Y ( 1 , 1 )   N O T   N U L L ,  
 	 [ O r d e r I d ]   [ i n t ]   N O T   N U L L ,  
 	 [ U s e r I d ]   [ i n t ]   N U L L ,  
 	 [ C r e a t e d D a t e ]   [ d a t e t i m e ]   N O T   N U L L ,  
 	 [ C o m m e n t ]   [ n v a r c h a r ] ( m a x )   N O T   N U L L ,  
 	 [ N o t e T y p e I d ]   [ t i n y i n t ]   N O T   N U L L ,  
 	 [ I s R e a d ]   [ b i t ]   N O T   N U L L ,  
   C O N S T R A I N T   [ a c _ O r d e r N o t e s _ P K ]   P R I M A R Y   K E Y   C L U S T E R E D    
 (  
 	 [ O r d e r N o t e I d ]   A S C  
 ) W I T H   ( P A D _ I N D E X     =   O F F ,   S T A T I S T I C S _ N O R E C O M P U T E     =   O F F ,   I G N O R E _ D U P _ K E Y   =   O F F ,   A L L O W _ R O W _ L O C K S     =   O N ,   A L L O W _ P A G E _ L O C K S     =   O N )   O N   [ P R I M A R Y ]  
 )   O N   [ P R I M A R Y ]  
 G O  
 / * * * * * *   O b j e c t :     T a b l e   [ d b o ] . [ a c _ B a s k e t S h i p m e n t s ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 4   * * * * * * /  
 S E T   A N S I _ N U L L S   O N  
 G O  
 S E T   Q U O T E D _ I D E N T I F I E R   O N  
 G O  
 C R E A T E   T A B L E   [ d b o ] . [ a c _ B a s k e t S h i p m e n t s ] (  
 	 [ B a s k e t S h i p m e n t I d ]   [ i n t ]   I D E N T I T Y ( 1 , 1 )   N O T   N U L L ,  
 	 [ B a s k e t I d ]   [ i n t ]   N O T   N U L L ,  
 	 [ W a r e h o u s e I d ]   [ i n t ]   N U L L ,  
 	 [ S h i p M e t h o d I d ]   [ i n t ]   N U L L ,  
 	 [ A d d r e s s I d ]   [ i n t ]   N U L L ,  
 	 [ S h i p M e s s a g e ]   [ n v a r c h a r ] ( 2 5 5 )   N U L L ,  
   C O N S T R A I N T   [ a c _ B a s k e t S h i p m e n t s _ P K ]   P R I M A R Y   K E Y   C L U S T E R E D    
 (  
 	 [ B a s k e t S h i p m e n t I d ]   A S C  
 ) W I T H   ( P A D _ I N D E X     =   O F F ,   S T A T I S T I C S _ N O R E C O M P U T E     =   O F F ,   I G N O R E _ D U P _ K E Y   =   O F F ,   A L L O W _ R O W _ L O C K S     =   O N ,   A L L O W _ P A G E _ L O C K S     =   O N )   O N   [ P R I M A R Y ]  
 )   O N   [ P R I M A R Y ]  
 G O  
 / * * * * * *   O b j e c t :     T a b l e   [ d b o ] . [ a c _ B a s k e t I t e m s ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 4   * * * * * * /  
 S E T   A N S I _ N U L L S   O N  
 G O  
 S E T   Q U O T E D _ I D E N T I F I E R   O N  
 G O  
 S E T   A N S I _ P A D D I N G   O N  
 G O  
 C R E A T E   T A B L E   [ d b o ] . [ a c _ B a s k e t I t e m s ] (  
 	 [ B a s k e t I t e m I d ]   [ i n t ]   I D E N T I T Y ( 1 , 1 )   N O T   N U L L ,  
 	 [ P a r e n t I t e m I d ]   [ i n t ]   N O T   N U L L ,  
 	 [ B a s k e t I d ]   [ i n t ]   N O T   N U L L ,  
 	 [ B a s k e t S h i p m e n t I d ]   [ i n t ]   N U L L ,  
 	 [ P r o d u c t I d ]   [ i n t ]   N O T   N U L L ,  
 	 [ O p t i o n L i s t ]   [ v a r c h a r ] ( 2 5 5 )   N U L L ,  
 	 [ T a x C o d e I d ]   [ i n t ]   N U L L ,  
 	 [ N a m e ]   [ n v a r c h a r ] ( 2 5 5 )   N O T   N U L L ,  
 	 [ S k u ]   [ n v a r c h a r ] ( 1 0 0 )   N U L L ,  
 	 [ P r i c e ]   [ d e c i m a l ] ( 1 2 ,   4 )   N O T   N U L L ,  
 	 [ W e i g h t ]   [ d e c i m a l ] ( 1 2 ,   4 )   N O T   N U L L ,  
 	 [ Q u a n t i t y ]   [ s m a l l i n t ]   N O T   N U L L ,  
 	 [ L i n e M e s s a g e ]   [ n v a r c h a r ] ( 2 5 5 )   N U L L ,  
 	 [ O r d e r I t e m T y p e I d ]   [ s m a l l i n t ]   N O T   N U L L ,  
 	 [ O r d e r B y ]   [ s m a l l i n t ]   N O T   N U L L ,  
 	 [ W r a p S t y l e I d ]   [ i n t ]   N U L L ,  
 	 [ G i f t M e s s a g e ]   [ n v a r c h a r ] ( 2 5 5 )   N U L L ,  
 	 [ W i s h l i s t I t e m I d ]   [ i n t ]   N U L L ,  
 	 [ S h i p p a b l e I d ]   [ t i n y i n t ]   N O T   N U L L ,  
 	 [ L a s t M o d i f i e d D a t e ]   [ d a t e t i m e ]   N O T   N U L L ,  
 	 [ T a x R a t e ]   [ d e c i m a l ] ( 1 2 ,   4 )   N O T   N U L L ,  
 	 [ T a x A m o u n t ]   [ d e c i m a l ] ( 1 2 ,   4 )   N O T   N U L L ,  
 	 [ K i t L i s t ]   [ v a r c h a r ] ( 2 5 5 )   N U L L ,  
 	 [ C u s t o m F i e l d s ]   [ n v a r c h a r ] ( m a x )   N U L L ,  
   C O N S T R A I N T   [ a c _ B a s k e t I t e m s _ P K ]   P R I M A R Y   K E Y   C L U S T E R E D    
 (  
 	 [ B a s k e t I t e m I d ]   A S C  
 ) W I T H   ( P A D _ I N D E X     =   O F F ,   S T A T I S T I C S _ N O R E C O M P U T E     =   O F F ,   I G N O R E _ D U P _ K E Y   =   O F F ,   A L L O W _ R O W _ L O C K S     =   O N ,   A L L O W _ P A G E _ L O C K S     =   O N )   O N   [ P R I M A R Y ]  
 )   O N   [ P R I M A R Y ]  
 G O  
 S E T   A N S I _ P A D D I N G   O F F  
 G O  
 / * * * * * *   O b j e c t :     T a b l e   [ d b o ] . [ a c _ T r a c k i n g N u m b e r s ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 4   * * * * * * /  
 S E T   A N S I _ N U L L S   O N  
 G O  
 S E T   Q U O T E D _ I D E N T I F I E R   O N  
 G O  
 C R E A T E   T A B L E   [ d b o ] . [ a c _ T r a c k i n g N u m b e r s ] (  
 	 [ T r a c k i n g N u m b e r I d ]   [ i n t ]   I D E N T I T Y ( 1 , 1 )   N O T   N U L L ,  
 	 [ O r d e r S h i p m e n t I d ]   [ i n t ]   N O T   N U L L ,  
 	 [ S h i p G a t e w a y I d ]   [ i n t ]   N U L L ,  
 	 [ T r a c k i n g N u m b e r D a t a ]   [ n v a r c h a r ] ( 1 0 0 )   N O T   N U L L ,  
   C O N S T R A I N T   [ a c _ T r a c k i n g N u m b e r s _ P K ]   P R I M A R Y   K E Y   C L U S T E R E D    
 (  
 	 [ T r a c k i n g N u m b e r I d ]   A S C  
 ) W I T H   ( P A D _ I N D E X     =   O F F ,   S T A T I S T I C S _ N O R E C O M P U T E     =   O F F ,   I G N O R E _ D U P _ K E Y   =   O F F ,   A L L O W _ R O W _ L O C K S     =   O N ,   A L L O W _ P A G E _ L O C K S     =   O N )   O N   [ P R I M A R Y ]  
 )   O N   [ P R I M A R Y ]  
 G O  
 / * * * * * *   O b j e c t :     T a b l e   [ d b o ] . [ a c _ W i s h l i s t I t e m I n p u t s ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 4   * * * * * * /  
 S E T   A N S I _ N U L L S   O N  
 G O  
 S E T   Q U O T E D _ I D E N T I F I E R   O N  
 G O  
 C R E A T E   T A B L E   [ d b o ] . [ a c _ W i s h l i s t I t e m I n p u t s ] (  
 	 [ W i s h l i s t I t e m I n p u t I d ]   [ i n t ]   I D E N T I T Y ( 1 , 1 )   N O T   N U L L ,  
 	 [ W i s h l i s t I t e m I d ]   [ i n t ]   N O T   N U L L ,  
 	 [ I n p u t F i e l d I d ]   [ i n t ]   N O T   N U L L ,  
 	 [ I n p u t V a l u e ]   [ n v a r c h a r ] ( m a x )   N O T   N U L L ,  
   C O N S T R A I N T   [ a c _ W i s h l i s t I t e m I n p u t s _ P K ]   P R I M A R Y   K E Y   C L U S T E R E D    
 (  
 	 [ W i s h l i s t I t e m I n p u t I d ]   A S C  
 ) W I T H   ( P A D _ I N D E X     =   O F F ,   S T A T I S T I C S _ N O R E C O M P U T E     =   O F F ,   I G N O R E _ D U P _ K E Y   =   O F F ,   A L L O W _ R O W _ L O C K S     =   O N ,   A L L O W _ P A G E _ L O C K S     =   O N )   O N   [ P R I M A R Y ]  
 )   O N   [ P R I M A R Y ]  
 G O  
 / * * * * * *   O b j e c t :     S t o r e d P r o c e d u r e   [ d b o ] . [ s p G e t T o p S e l l e r s ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 6   * * * * * * /  
 S E T   A N S I _ N U L L S   O N  
 G O  
 S E T   Q U O T E D _ I D E N T I F I E R   O N  
 G O  
 - -   = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =  
 - -   A u t h o r : 	 	 D a v i d V  
 - -   C r e a t e   d a t e :    
 - -   D e s c r i p t i o n : 	  
 - -   = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =  
 C R E A T E   P R O C E D U R E   [ d b o ] . [ s p G e t T o p S e l l e r s ]  
                                 @ M a x I t e m s   I N T     =   5  
 A S  
     B E G I N  
         S E T   R O W C O U N T     @ M a x I t e m s  
          
         S E L E C T       a c _ P R O D U C T S . P r o d u c t I d ,  
                           a c _ P R O D U C T S . N a m e ,  
                           - - C A S T ( a c _ P R O D U C T S . D e s c r i p t i o n 1   A S   V A R C H A R ( M A X ) )   +   '   '   +  
                           C A S T ( a c _ P R O D U C T S . [ D e s c r i p t i o n ]   A S   V A R C H A R ( 1 5 0 0 ) )   +   ' . . . '   A S   D E S C R I P T I O N ,  
                           [ a c _ M a n u f a c t u r e r s ] . [ N a m e ]   A S   A u t h o r ,  
                           [ a c _ M a n u f a c t u r e r s ] . [ M a n u f a c t u r e r I d ]   A S   M a n u f a c t u r e r I d ,  
                           a c _ P R O D U C T S . [ S k u ]                                                                                                               A S   G U I D ,  
                           ' p r o d u c t . a s p x ? P r o d u c t I d = '   +   C A S T ( a c _ P R O D U C T S . P r o d u c t I d   A S   V A R C H A R ( M A X ) )   A S   D i s p l a y P a g e ,  
                           [ a c _ P r o d u c t s ] . [ C r e a t e d D a t e ] ,  
                           [ a c _ P r o d u c t s ] . [ P r i c e ] ,  
                           a c _ P r o d u c t s . [ T h u m b n a i l U r l ] ,  
                           S U M ( a c _ O R D E R I T E M S . Q u a n t i t y )                                                                                           A S   T o t a l Q u a n t i t y ,  
                           S U M ( a c _ O R D E R I T E M S . [ P r i c e ]   *   a c _ O R D E R I T E M S . Q u a n t i t y )                                           A S   T o t a l S a l e s  
         F R O M           ( a c _ O R D E R S  
                             I N N E R   J O I N   [ a c _ O R D E R I T E M S ]  
                                 O N   [ a c _ O R D E R I T E M S ] . [ O r d e r I d ]   =   a c _ O R D E R S . O r d e r I d )  
                           I N N E R   J O I N   a c _ P R O D U C T S  
                               O N   a c _ O R D E R I T E M S . P r o d u c t I d   =   a c _ P R O D U C T S . P r o d u c t I d  
                           I N N E R   J O I N   [ a c _ M a n u f a c t u r e r s ]  
                               O N   [ a c _ M a n u f a c t u r e r s ] . [ M a n u f a c t u r e r I d ]   =   [ a c _ P r o d u c t s ] . [ M a n u f a c t u r e r I d ]  
         W H E R E         a c _ P R O D U C T S . [ D i s a b l e P u r c h a s e ]   =   0  
                           A N D   a c _ P R O D U C T S . [ V i s i b i l i t y I d ]   =   0  
                           - - A N D   a c _ O R D E R S . S t o r e I d   =   3  
                           A N D   [ O r d e r D a t e ]   >   G E T D A T E ( )   -   1 5  
                           A N D   a c _ O R D E R S . [ O r d e r D a t e ]   I S   N O T   N U L L  
                           A N D   a c _ O R D E R I T E M S . P r o d u c t I d   >   0  
                           A N D   d b o . a c _ P r o d u c t s . P r i c e   >   1  
                           A N D   d b o . a c _ P r o d u c t s . P r o d u c t I d   < >   1 5 7  
         G R O U P   B Y   a c _ P R O D U C T S . P r o d u c t I d ,  
                           a c _ P R O D U C T S . N a m e ,  
                           a c _ P R O D U C T S . D i s p l a y P a g e ,  
                           a c _ P R O D U C T S . [ D e s c r i p t i o n ] ,  
                           a c _ P R O D U C T S . [ S k u ] ,  
                           a c _ P R O D U C T S . [ T h u m b n a i l U r l ] ,  
                           a c _ P R O D U C T S . [ P r i c e ] ,  
                           [ a c _ M a n u f a c t u r e r s ] . [ N a m e ] ,  
                           [ a c _ P r o d u c t s ] . [ C r e a t e d D a t e ] ,  
                           [ a c _ M a n u f a c t u r e r s ] . [ M a n u f a c t u r e r I d ]  
         O R D E R   B Y   S U M ( a c _ O R D E R I T E M S . Q u a n t i t y )   D E S C  
 - -                           S U M ( a c _ O R D E R I T E M S . [ P r i c e ]   *   a c _ O R D E R I T E M S . Q u a n t i t y )   D E S C  
     E N D  
 G O  
 / * * * * * *   O b j e c t :     S t o r e d P r o c e d u r e   [ d b o ] . [ s p G e t B e s t S e l l e r s ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 6   * * * * * * /  
 S E T   A N S I _ N U L L S   O N  
 G O  
 S E T   Q U O T E D _ I D E N T I F I E R   O N  
 G O  
 - -   = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =  
 - -   A u t h o r : 	 	 D a v i d V  
 - -   C r e a t e   d a t e :    
 - -   D e s c r i p t i o n : 	  
 - -   = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =  
 C R E A T E   P R O C E D U R E   [ d b o ] . [ s p G e t B e s t S e l l e r s ]  
 A S  
     B E G I N  
         S E L E C T       T O P   6   a c _ P R O D U C T S . P r o d u c t I d ,  
                                         a c _ P R O D U C T S . N a m e ,  
                                         [ a c _ M a n u f a c t u r e r s ] . [ N a m e ]                                                                                               A S   A u t h o r ,  
                                         ' p r o d u c t . a s p x ? P r o d u c t I d = '   +   C A S T ( a c _ P R O D U C T S . P r o d u c t I d   A S   V A R C H A R ( M A X ) )   A S   D i s p l a y P a g e ,  
                                         S U M ( a c _ O R D E R I T E M S . Q u a n t i t y )                                                                                           A S   T o t a l Q u a n t i t y ,  
                                         S U M ( a c _ O R D E R I T E M S . [ P r i c e ]   *   a c _ O R D E R I T E M S . Q u a n t i t y )                                           A S   T o t a l S a l e s  
         F R O M           ( a c _ O R D E R S  
                             I N N E R   J O I N   [ a c _ O R D E R I T E M S ]  
                                 O N   [ a c _ O R D E R I T E M S ] . [ O r d e r I d ]   =   a c _ O R D E R S . O r d e r I d )  
                           I N N E R   J O I N   a c _ P R O D U C T S  
                               O N   a c _ O R D E R I T E M S . P r o d u c t I d   =   a c _ P R O D U C T S . P r o d u c t I d  
                           I N N E R   J O I N   [ a c _ M a n u f a c t u r e r s ]  
                               O N   [ a c _ M a n u f a c t u r e r s ] . [ M a n u f a c t u r e r I d ]   =   [ a c _ P r o d u c t s ] . [ M a n u f a c t u r e r I d ]  
         W H E R E         a c _ P R O D U C T S . [ D i s a b l e P u r c h a s e ]   =   0        
                           A N D   a c _ P r o d u c t s . [ V i s i b i l i t y I d ]   =   0                  
                           A N D   a c _ O R D E R S . [ O r d e r D a t e ]   I S   N O T   N U L L  
                           A N D   [ O r d e r D a t e ]   >   G E T D A T E ( )   -   1 5                            
                           A N D   a c _ O R D E R I T E M S . P r o d u c t I d   >   0  
                           A N D   d b o . a c _ P r o d u c t s . P r o d u c t I d   < >   1 5 7  
         G R O U P   B Y   a c _ P R O D U C T S . P r o d u c t I d ,  
                           a c _ P R O D U C T S . N a m e ,  
                           a c _ P R O D U C T S . D i s p l a y P a g e ,  
                           [ a c _ M a n u f a c t u r e r s ] . [ N a m e ]  
         O R D E R   B Y   S U M ( a c _ O R D E R I T E M S . Q u a n t i t y )   D E S C  
 - -                         S U M ( a c _ O R D E R I T E M S . [ P r i c e ]   *   a c _ O R D E R I T E M S . Q u a n t i t y )   D E S C  
     E N D  
 G O  
 / * * * * * *   O b j e c t :     T a b l e   [ d b o ] . [ a c _ G i f t C e r t i f i c a t e s ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 4   * * * * * * /  
 S E T   A N S I _ N U L L S   O N  
 G O  
 S E T   Q U O T E D _ I D E N T I F I E R   O N  
 G O  
 C R E A T E   T A B L E   [ d b o ] . [ a c _ G i f t C e r t i f i c a t e s ] (  
 	 [ G i f t C e r t i f i c a t e I d ]   [ i n t ]   I D E N T I T Y ( 1 , 1 )   N O T   N U L L ,  
 	 [ S t o r e I d ]   [ i n t ]   N O T   N U L L ,  
 	 [ N a m e ]   [ n v a r c h a r ] ( 1 0 0 )   N U L L ,  
 	 [ S e r i a l N u m b e r ]   [ n v a r c h a r ] ( 4 0 )   N O T   N U L L ,  
 	 [ C r e a t e d B y ]   [ i n t ]   N O T   N U L L ,  
 	 [ C r e a t e D a t e ]   [ d a t e t i m e ]   N O T   N U L L ,  
 	 [ O r d e r I t e m I d ]   [ i n t ]   N U L L ,  
 	 [ E x p i r a t i o n D a t e ]   [ d a t e t i m e ]   N U L L ,  
 	 [ B a l a n c e ]   [ d e c i m a l ] ( 1 2 ,   4 )   N O T   N U L L ,  
   C O N S T R A I N T   [ a c _ G i f t C e r t i f i c a t e s _ P K ]   P R I M A R Y   K E Y   C L U S T E R E D    
 (  
 	 [ G i f t C e r t i f i c a t e I d ]   A S C  
 ) W I T H   ( P A D _ I N D E X     =   O F F ,   S T A T I S T I C S _ N O R E C O M P U T E     =   O F F ,   I G N O R E _ D U P _ K E Y   =   O F F ,   A L L O W _ R O W _ L O C K S     =   O N ,   A L L O W _ P A G E _ L O C K S     =   O N )   O N   [ P R I M A R Y ]  
 )   O N   [ P R I M A R Y ]  
 G O  
 / * * * * * *   O b j e c t :     T a b l e   [ d b o ] . [ a c _ O r d e r I t e m I n p u t s ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 4   * * * * * * /  
 S E T   A N S I _ N U L L S   O N  
 G O  
 S E T   Q U O T E D _ I D E N T I F I E R   O N  
 G O  
 C R E A T E   T A B L E   [ d b o ] . [ a c _ O r d e r I t e m I n p u t s ] (  
 	 [ O r d e r I t e m I n p u t I d ]   [ i n t ]   I D E N T I T Y ( 1 , 1 )   N O T   N U L L ,  
 	 [ O r d e r I t e m I d ]   [ i n t ]   N O T   N U L L ,  
 	 [ N a m e ]   [ n v a r c h a r ] ( 1 0 0 )   N O T   N U L L ,  
 	 [ I n p u t V a l u e ]   [ n v a r c h a r ] ( m a x )   N O T   N U L L ,  
 	 [ I s M e r c h a n t F i e l d ]   [ b i t ]   N O T   N U L L ,  
   C O N S T R A I N T   [ a c _ O r d e r I t e m I n p u t s _ P K ]   P R I M A R Y   K E Y   C L U S T E R E D    
 (  
 	 [ O r d e r I t e m I n p u t I d ]   A S C  
 ) W I T H   ( P A D _ I N D E X     =   O F F ,   S T A T I S T I C S _ N O R E C O M P U T E     =   O F F ,   I G N O R E _ D U P _ K E Y   =   O F F ,   A L L O W _ R O W _ L O C K S     =   O N ,   A L L O W _ P A G E _ L O C K S     =   O N )   O N   [ P R I M A R Y ]  
 )   O N   [ P R I M A R Y ]  
 G O  
 / * * * * * *   O b j e c t :     T a b l e   [ d b o ] . [ a c _ O r d e r I t e m D i g i t a l G o o d s ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 4   * * * * * * /  
 S E T   A N S I _ N U L L S   O N  
 G O  
 S E T   Q U O T E D _ I D E N T I F I E R   O N  
 G O  
 C R E A T E   T A B L E   [ d b o ] . [ a c _ O r d e r I t e m D i g i t a l G o o d s ] (  
 	 [ O r d e r I t e m D i g i t a l G o o d I d ]   [ i n t ]   I D E N T I T Y ( 1 , 1 )   N O T   N U L L ,  
 	 [ O r d e r I t e m I d ]   [ i n t ]   N O T   N U L L ,  
 	 [ D i g i t a l G o o d I d ]   [ i n t ]   N U L L ,  
 	 [ N a m e ]   [ n v a r c h a r ] ( 1 0 0 )   N U L L ,  
 	 [ A c t i v a t i o n D a t e ]   [ d a t e t i m e ]   N U L L ,  
 	 [ D o w n l o a d D a t e ]   [ d a t e t i m e ]   N U L L ,  
 	 [ S e r i a l K e y D a t a ]   [ n v a r c h a r ] ( m a x )   N U L L ,  
   C O N S T R A I N T   [ a c _ O r d e r I t e m D i g i t a l G o o d s _ P K ]   P R I M A R Y   K E Y   C L U S T E R E D    
 (  
 	 [ O r d e r I t e m D i g i t a l G o o d I d ]   A S C  
 ) W I T H   ( P A D _ I N D E X     =   O F F ,   S T A T I S T I C S _ N O R E C O M P U T E     =   O F F ,   I G N O R E _ D U P _ K E Y   =   O F F ,   A L L O W _ R O W _ L O C K S     =   O N ,   A L L O W _ P A G E _ L O C K S     =   O N )   O N   [ P R I M A R Y ]  
 )   O N   [ P R I M A R Y ]  
 G O  
 / * * * * * *   O b j e c t :     T a b l e   [ d b o ] . [ a c _ B a s k e t I t e m I n p u t s ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 4   * * * * * * /  
 S E T   A N S I _ N U L L S   O N  
 G O  
 S E T   Q U O T E D _ I D E N T I F I E R   O N  
 G O  
 C R E A T E   T A B L E   [ d b o ] . [ a c _ B a s k e t I t e m I n p u t s ] (  
 	 [ B a s k e t I t e m I n p u t I d ]   [ i n t ]   I D E N T I T Y ( 1 , 1 )   N O T   N U L L ,  
 	 [ B a s k e t I t e m I d ]   [ i n t ]   N O T   N U L L ,  
 	 [ I n p u t F i e l d I d ]   [ i n t ]   N O T   N U L L ,  
 	 [ I n p u t V a l u e ]   [ n v a r c h a r ] ( m a x )   N O T   N U L L ,  
   C O N S T R A I N T   [ a c _ B a s k e t I t e m I n p u t s _ P K ]   P R I M A R Y   K E Y   C L U S T E R E D    
 (  
 	 [ B a s k e t I t e m I n p u t I d ]   A S C  
 ) W I T H   ( P A D _ I N D E X     =   O F F ,   S T A T I S T I C S _ N O R E C O M P U T E     =   O F F ,   I G N O R E _ D U P _ K E Y   =   O F F ,   A L L O W _ R O W _ L O C K S     =   O N ,   A L L O W _ P A G E _ L O C K S     =   O N )   O N   [ P R I M A R Y ]  
 )   O N   [ P R I M A R Y ]  
 G O  
 / * * * * * *   O b j e c t :     T a b l e   [ d b o ] . [ a c _ G i f t C e r t i f i c a t e T r a n s a c t i o n s ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 4   * * * * * * /  
 S E T   A N S I _ N U L L S   O N  
 G O  
 S E T   Q U O T E D _ I D E N T I F I E R   O N  
 G O  
 C R E A T E   T A B L E   [ d b o ] . [ a c _ G i f t C e r t i f i c a t e T r a n s a c t i o n s ] (  
 	 [ G i f t C e r t i f i c a t e T r a n s a c t i o n I d ]   [ i n t ]   I D E N T I T Y ( 1 , 1 )   N O T   N U L L ,  
 	 [ G i f t C e r t i f i c a t e I d ]   [ i n t ]   N O T   N U L L ,  
 	 [ O r d e r I d ]   [ i n t ]   N U L L ,  
 	 [ T r a n s a c t i o n D a t e ]   [ d a t e t i m e ]   N O T   N U L L ,  
 	 [ A m o u n t ]   [ d e c i m a l ] ( 1 2 ,   4 )   N O T   N U L L ,  
 	 [ D e s c r i p t i o n ]   [ n v a r c h a r ] ( 2 5 5 )   N U L L ,  
   C O N S T R A I N T   [ a c _ G i f t C e r t i f i c a t e T r a n s a c t i o n s _ P K ]   P R I M A R Y   K E Y   C L U S T E R E D    
 (  
 	 [ G i f t C e r t i f i c a t e T r a n s a c t i o n I d ]   A S C  
 ) W I T H   ( P A D _ I N D E X     =   O F F ,   S T A T I S T I C S _ N O R E C O M P U T E     =   O F F ,   I G N O R E _ D U P _ K E Y   =   O F F ,   A L L O W _ R O W _ L O C K S     =   O N ,   A L L O W _ P A G E _ L O C K S     =   O N )   O N   [ P R I M A R Y ]  
 )   O N   [ P R I M A R Y ]  
 G O  
 / * * * * * *   O b j e c t :     T a b l e   [ d b o ] . [ a c _ D o w n l o a d s ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 4   * * * * * * /  
 S E T   A N S I _ N U L L S   O N  
 G O  
 S E T   Q U O T E D _ I D E N T I F I E R   O N  
 G O  
 C R E A T E   T A B L E   [ d b o ] . [ a c _ D o w n l o a d s ] (  
 	 [ D o w n l o a d I d ]   [ i n t ]   I D E N T I T Y ( 1 , 1 )   N O T   N U L L ,  
 	 [ O r d e r I t e m D i g i t a l G o o d I d ]   [ i n t ]   N O T   N U L L ,  
 	 [ D o w n l o a d D a t e ]   [ d a t e t i m e ]   N O T   N U L L ,  
 	 [ R e m o t e A d d r ]   [ n v a r c h a r ] ( 3 9 )   N O T   N U L L ,  
 	 [ U s e r A g e n t ]   [ n v a r c h a r ] ( 2 5 5 )   N O T   N U L L ,  
 	 [ R e f e r r e r ]   [ n v a r c h a r ] ( 2 5 5 )   N O T   N U L L ,  
   C O N S T R A I N T   [ a c _ D o w n l o a d s _ P K ]   P R I M A R Y   K E Y   N O N C L U S T E R E D    
 (  
 	 [ D o w n l o a d I d ]   A S C  
 ) W I T H   ( P A D _ I N D E X     =   O F F ,   S T A T I S T I C S _ N O R E C O M P U T E     =   O F F ,   I G N O R E _ D U P _ K E Y   =   O F F ,   A L L O W _ R O W _ L O C K S     =   O N ,   A L L O W _ P A G E _ L O C K S     =   O N )   O N   [ P R I M A R Y ]  
 )   O N   [ P R I M A R Y ]  
 G O  
 / * * * * * *   O b j e c t :     D e f a u l t   [ D F _ _ a c _ B a s k e t _ _ O r d e r _ _ 6 6 2 B 2 B 3 B ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 4   * * * * * * /  
 A L T E R   T A B L E   [ d b o ] . [ a c _ B a s k e t I t e m s ]   A D D     D E F A U L T   ( ( 0 ) )   F O R   [ O r d e r B y ]  
 G O  
 / * * * * * *   O b j e c t :     D e f a u l t   [ D F _ _ a c _ C a t a l o _ _ O r d e r _ _ 5 F 7 E 2 D A C ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 4   * * * * * * /  
 A L T E R   T A B L E   [ d b o ] . [ a c _ C a t a l o g N o d e s ]   A D D     D E F A U L T   ( ( 0 ) )   F O R   [ O r d e r B y ]  
 G O  
 / * * * * * *   O b j e c t :     D e f a u l t   [ D F _ _ a c _ C u r r e n _ _ E x c h a _ _ 4 B 7 7 3 4 F F ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 4   * * * * * * /  
 A L T E R   T A B L E   [ d b o ] . [ a c _ C u r r e n c i e s ]   A D D     D E F A U L T   ( ( 1 ) )   F O R   [ E x c h a n g e R a t e ]  
 G O  
 / * * * * * *   O b j e c t :     D e f a u l t   [ D F _ _ a c _ I n p u t C _ _ O r d e r _ _ 3 3 9 F A B 6 E ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 4   * * * * * * /  
 A L T E R   T A B L E   [ d b o ] . [ a c _ I n p u t C h o i c e s ]   A D D     D E F A U L T   ( ( 0 ) )   F O R   [ O r d e r B y ]  
 G O  
 / * * * * * *   O b j e c t :     D e f a u l t   [ D F _ _ a c _ I n p u t F _ _ O r d e r _ _ 3 0 C 3 3 E C 3 ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 4   * * * * * * /  
 A L T E R   T A B L E   [ d b o ] . [ a c _ I n p u t F i e l d s ]   A D D     D E F A U L T   ( ( 0 ) )   F O R   [ O r d e r B y ]  
 G O  
 / * * * * * *   O b j e c t :     D e f a u l t   [ D F _ _ a c _ K i t P r o _ _ O r d e r _ _ 2 B F E 8 9 A 6 ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 4   * * * * * * /  
 A L T E R   T A B L E   [ d b o ] . [ a c _ K i t P r o d u c t s ]   A D D     D E F A U L T   ( ( 0 ) )   F O R   [ O r d e r B y ]  
 G O  
 / * * * * * *   O b j e c t :     D e f a u l t   [ D F _ _ a c _ O p t i o n _ _ O r d e r _ _ 7 2 9 1 0 2 2 0 ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 4   * * * * * * /  
 A L T E R   T A B L E   [ d b o ] . [ a c _ O p t i o n C h o i c e s ]   A D D     D E F A U L T   ( ( 0 ) )   F O R   [ O r d e r B y ]  
 G O  
 / * * * * * *   O b j e c t :     D e f a u l t   [ D F _ _ a c _ O r d e r I _ _ O r d e r _ _ 1 B C 8 2 1 D D ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 4   * * * * * * /  
 A L T E R   T A B L E   [ d b o ] . [ a c _ O r d e r I t e m s ]   A D D     D E F A U L T   ( ( 0 ) )   F O R   [ O r d e r B y ]  
 G O  
 / * * * * * *   O b j e c t :     D e f a u l t   [ D F _ _ a c _ O r d e r N _ _ I s R e a _ _ 0 9 9 4 6 3 0 9 ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 4   * * * * * * /  
 A L T E R   T A B L E   [ d b o ] . [ a c _ O r d e r N o t e s ]   A D D     D E F A U L T   ( ( 1 ) )   F O R   [ I s R e a d ]  
 G O  
 / * * * * * *   O b j e c t :     D e f a u l t   [ D F _ _ a c _ O r d e r S _ _ O r d e r _ _ 0 F 6 2 4 A F 8 ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 4   * * * * * * /  
 A L T E R   T A B L E   [ d b o ] . [ a c _ O r d e r S t a t u s e s ]   A D D     D E F A U L T   ( ( 0 ) )   F O R   [ O r d e r B y ]  
 G O  
 / * * * * * *   O b j e c t :     D e f a u l t   [ D F _ _ a c _ P a y m e n _ _ O r d e r _ _ 0 4 E 4 B C 8 5 ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 4   * * * * * * /  
 A L T E R   T A B L E   [ d b o ] . [ a c _ P a y m e n t M e t h o d s ]   A D D     D E F A U L T   ( ( 0 ) )   F O R   [ O r d e r B y ]  
 G O  
 / * * * * * *   O b j e c t :     D e f a u l t   [ D F _ a c _ P r i n t e d C a t e l o g _ C r e a t e d D a t e ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 4   * * * * * * /  
 A L T E R   T A B L E   [ d b o ] . [ a c _ P r i n t e d C a t a l o g ]   A D D     C O N S T R A I N T   [ D F _ a c _ P r i n t e d C a t e l o g _ C r e a t e d D a t e ]     D E F A U L T   ( g e t d a t e ( ) )   F O R   [ C r e a t e d D a t e ]  
 G O  
 / * * * * * *   O b j e c t :     D e f a u l t   [ D F _ _ a c _ P r o d u c _ _ O r d e r _ _ 7 E 3 7 B E F 6 ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 4   * * * * * * /  
 A L T E R   T A B L E   [ d b o ] . [ a c _ P r o d u c t A s s e t s ]   A D D     D E F A U L T   ( ( 0 ) )   F O R   [ O r d e r B y ]  
 G O  
 / * * * * * *   O b j e c t :     D e f a u l t   [ D F _ _ a c _ P r o d u c _ _ O r d e r _ _ 7 7 8 A C 1 6 7 ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 4   * * * * * * /  
 A L T E R   T A B L E   [ d b o ] . [ a c _ P r o d u c t I m a g e s ]   A D D     D E F A U L T   ( ( 0 ) )   F O R   [ O r d e r B y ]  
 G O  
 / * * * * * *   O b j e c t :     D e f a u l t   [ D F _ _ a c _ P r o d u c _ _ O r d e r _ _ 7 4 A E 5 4 B C ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 4   * * * * * * /  
 A L T E R   T A B L E   [ d b o ] . [ a c _ P r o d u c t K i t C o m p o n e n t s ]   A D D     D E F A U L T   ( ( 0 ) )   F O R   [ O r d e r B y ]  
 G O  
 / * * * * * *   O b j e c t :     D e f a u l t   [ D F _ a c _ P r o d u c t s _ G U I D ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 4   * * * * * * /  
 A L T E R   T A B L E   [ d b o ] . [ a c _ P r o d u c t s ]   A D D     C O N S T R A I N T   [ D F _ a c _ P r o d u c t s _ G U I D ]     D E F A U L T   ( n e w i d ( ) )   F O R   [ G U I D ]  
 G O  
 / * * * * * *   O b j e c t :     D e f a u l t   [ D F _ _ a c _ P r o d u c _ _ S h i p p _ _ 6 F E 9 9 F 9 F ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 4   * * * * * * /  
 A L T E R   T A B L E   [ d b o ] . [ a c _ P r o d u c t s ]   A D D     C O N S T R A I N T   [ D F _ _ a c _ P r o d u c _ _ S h i p p _ _ 6 F E 9 9 F 9 F ]     D E F A U L T   ( ( 0 ) )   F O R   [ S h i p p a b l e I d ]  
 G O  
 / * * * * * *   O b j e c t :     D e f a u l t   [ D F _ _ a c _ R e d i r e _ _ O r d e r _ _ 5 3 3 8 5 2 5 8 ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 4   * * * * * * /  
 A L T E R   T A B L E   [ d b o ] . [ a c _ R e d i r e c t s ]   A D D     D E F A U L T   ( ( 0 ) )   F O R   [ O r d e r B y ]  
 G O  
 / * * * * * *   O b j e c t :     D e f a u l t   [ D F _ _ a c _ S h i p M e _ _ O r d e r _ _ 5 6 2 9 C D 9 C ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 4   * * * * * * /  
 A L T E R   T A B L E   [ d b o ] . [ a c _ S h i p M e t h o d s ]   A D D     C O N S T R A I N T   [ D F _ _ a c _ S h i p M e _ _ O r d e r _ _ 5 6 2 9 C D 9 C ]     D E F A U L T   ( ( 0 ) )   F O R   [ O r d e r B y ]  
 G O  
 / * * * * * *   O b j e c t :     D e f a u l t   [ D F _ _ a c _ S h i p R a _ _ I s P e r _ _ 4 F 7 C D 0 0 D ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 4   * * * * * * /  
 A L T E R   T A B L E   [ d b o ] . [ a c _ S h i p R a t e M a t r i x ]   A D D     D E F A U L T   ( ( 0 ) )   F O R   [ I s P e r c e n t ]  
 G O  
 / * * * * * *   O b j e c t :     D e f a u l t   [ D F _ _ a c _ S t o r e s _ _ N e x t O _ _ 4 2 2 2 D 4 E F ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 4   * * * * * * /  
 A L T E R   T A B L E   [ d b o ] . [ a c _ S t o r e s ]   A D D     D E F A U L T   ( ( 1 ) )   F O R   [ N e x t O r d e r I d ]  
 G O  
 / * * * * * *   O b j e c t :     D e f a u l t   [ D F _ _ a c _ S t o r e s _ _ O r d e r _ _ 4 3 1 6 F 9 2 8 ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 4   * * * * * * /  
 A L T E R   T A B L E   [ d b o ] . [ a c _ S t o r e s ]   A D D     D E F A U L T   ( ( 1 ) )   F O R   [ O r d e r I d I n c r e m e n t ]  
 G O  
 / * * * * * *   O b j e c t :     D e f a u l t   [ D F _ _ a c _ W r a p S t _ _ O r d e r _ _ 1 1 7 F 9 D 9 4 ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 4   * * * * * * /  
 A L T E R   T A B L E   [ d b o ] . [ a c _ W r a p S t y l e s ]   A D D     D E F A U L T   ( ( 0 ) )   F O R   [ O r d e r B y ]  
 G O  
 / * * * * * *   O b j e c t :     F o r e i g n K e y   [ a c _ C o u n t r i e s _ a c _ A d d r e s s e s _ F K 1 ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 4   * * * * * * /  
 A L T E R   T A B L E   [ d b o ] . [ a c _ A d d r e s s e s ]     W I T H   C H E C K   A D D     C O N S T R A I N T   [ a c _ C o u n t r i e s _ a c _ A d d r e s s e s _ F K 1 ]   F O R E I G N   K E Y ( [ C o u n t r y C o d e ] )  
 R E F E R E N C E S   [ d b o ] . [ a c _ C o u n t r i e s ]   ( [ C o u n t r y C o d e ] )  
 O N   D E L E T E   S E T   N U L L  
 G O  
 A L T E R   T A B L E   [ d b o ] . [ a c _ A d d r e s s e s ]   C H E C K   C O N S T R A I N T   [ a c _ C o u n t r i e s _ a c _ A d d r e s s e s _ F K 1 ]  
 G O  
 / * * * * * *   O b j e c t :     F o r e i g n K e y   [ a c _ U s e r s _ a c _ A d d r e s s e s _ F K 1 ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 4   * * * * * * /  
 A L T E R   T A B L E   [ d b o ] . [ a c _ A d d r e s s e s ]     W I T H   C H E C K   A D D     C O N S T R A I N T   [ a c _ U s e r s _ a c _ A d d r e s s e s _ F K 1 ]   F O R E I G N   K E Y ( [ U s e r I d ] )  
 R E F E R E N C E S   [ d b o ] . [ a c _ U s e r s ]   ( [ U s e r I d ] )  
 O N   D E L E T E   C A S C A D E  
 G O  
 A L T E R   T A B L E   [ d b o ] . [ a c _ A d d r e s s e s ]   C H E C K   C O N S T R A I N T   [ a c _ U s e r s _ a c _ A d d r e s s e s _ F K 1 ]  
 G O  
 / * * * * * *   O b j e c t :     F o r e i g n K e y   [ a c _ G r o u p s _ a c _ A f f i l i a t e s _ F K 1 ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 4   * * * * * * /  
 A L T E R   T A B L E   [ d b o ] . [ a c _ A f f i l i a t e s ]     W I T H   C H E C K   A D D     C O N S T R A I N T   [ a c _ G r o u p s _ a c _ A f f i l i a t e s _ F K 1 ]   F O R E I G N   K E Y ( [ G r o u p I d ] )  
 R E F E R E N C E S   [ d b o ] . [ a c _ G r o u p s ]   ( [ G r o u p I d ] )  
 O N   D E L E T E   S E T   N U L L  
 G O  
 A L T E R   T A B L E   [ d b o ] . [ a c _ A f f i l i a t e s ]   C H E C K   C O N S T R A I N T   [ a c _ G r o u p s _ a c _ A f f i l i a t e s _ F K 1 ]  
 G O  
 / * * * * * *   O b j e c t :     F o r e i g n K e y   [ a c _ S t o r e s _ a c _ A f f i l i a t e s _ F K 1 ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 4   * * * * * * /  
 A L T E R   T A B L E   [ d b o ] . [ a c _ A f f i l i a t e s ]     W I T H   C H E C K   A D D     C O N S T R A I N T   [ a c _ S t o r e s _ a c _ A f f i l i a t e s _ F K 1 ]   F O R E I G N   K E Y ( [ S t o r e I d ] )  
 R E F E R E N C E S   [ d b o ] . [ a c _ S t o r e s ]   ( [ S t o r e I d ] )  
 G O  
 A L T E R   T A B L E   [ d b o ] . [ a c _ A f f i l i a t e s ]   C H E C K   C O N S T R A I N T   [ a c _ S t o r e s _ a c _ A f f i l i a t e s _ F K 1 ]  
 G O  
 / * * * * * *   O b j e c t :     F o r e i g n K e y   [ a c _ S t o r e s _ a c _ A u d i t E v e n t s _ F K 1 ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 4   * * * * * * /  
 A L T E R   T A B L E   [ d b o ] . [ a c _ A u d i t E v e n t s ]     W I T H   C H E C K   A D D     C O N S T R A I N T   [ a c _ S t o r e s _ a c _ A u d i t E v e n t s _ F K 1 ]   F O R E I G N   K E Y ( [ S t o r e I d ] )  
 R E F E R E N C E S   [ d b o ] . [ a c _ S t o r e s ]   ( [ S t o r e I d ] )  
 G O  
 A L T E R   T A B L E   [ d b o ] . [ a c _ A u d i t E v e n t s ]   C H E C K   C O N S T R A I N T   [ a c _ S t o r e s _ a c _ A u d i t E v e n t s _ F K 1 ]  
 G O  
 / * * * * * *   O b j e c t :     F o r e i g n K e y   [ a c _ U s e r s _ a c _ A u d i t l o g _ F K 1 ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 4   * * * * * * /  
 A L T E R   T A B L E   [ d b o ] . [ a c _ A u d i t E v e n t s ]     W I T H   C H E C K   A D D     C O N S T R A I N T   [ a c _ U s e r s _ a c _ A u d i t l o g _ F K 1 ]   F O R E I G N   K E Y ( [ U s e r I d ] )  
 R E F E R E N C E S   [ d b o ] . [ a c _ U s e r s ]   ( [ U s e r I d ] )  
 O N   D E L E T E   S E T   N U L L  
 G O  
 A L T E R   T A B L E   [ d b o ] . [ a c _ A u d i t E v e n t s ]   C H E C K   C O N S T R A I N T   [ a c _ U s e r s _ a c _ A u d i t l o g _ F K 1 ]  
 G O  
 / * * * * * *   O b j e c t :     F o r e i g n K e y   [ a c _ S t o r e s _ a c _ B a n n e d I P s _ F K 1 ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 4   * * * * * * /  
 A L T E R   T A B L E   [ d b o ] . [ a c _ B a n n e d I P s ]     W I T H   C H E C K   A D D     C O N S T R A I N T   [ a c _ S t o r e s _ a c _ B a n n e d I P s _ F K 1 ]   F O R E I G N   K E Y ( [ S t o r e I d ] )  
 R E F E R E N C E S   [ d b o ] . [ a c _ S t o r e s ]   ( [ S t o r e I d ] )  
 G O  
 A L T E R   T A B L E   [ d b o ] . [ a c _ B a n n e d I P s ]   C H E C K   C O N S T R A I N T   [ a c _ S t o r e s _ a c _ B a n n e d I P s _ F K 1 ]  
 G O  
 / * * * * * *   O b j e c t :     F o r e i g n K e y   [ a c _ B a s k e t s _ a c _ B a s k e t C o u p o n s _ F K 1 ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 4   * * * * * * /  
 A L T E R   T A B L E   [ d b o ] . [ a c _ B a s k e t C o u p o n s ]     W I T H   C H E C K   A D D     C O N S T R A I N T   [ a c _ B a s k e t s _ a c _ B a s k e t C o u p o n s _ F K 1 ]   F O R E I G N   K E Y ( [ B a s k e t I d ] )  
 R E F E R E N C E S   [ d b o ] . [ a c _ B a s k e t s ]   ( [ B a s k e t I d ] )  
 O N   D E L E T E   C A S C A D E  
 G O  
 A L T E R   T A B L E   [ d b o ] . [ a c _ B a s k e t C o u p o n s ]   C H E C K   C O N S T R A I N T   [ a c _ B a s k e t s _ a c _ B a s k e t C o u p o n s _ F K 1 ]  
 G O  
 / * * * * * *   O b j e c t :     F o r e i g n K e y   [ a c _ C o u p o n s _ a c _ O r d e r C o u p o n A s s n _ F K 1 ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 4   * * * * * * /  
 A L T E R   T A B L E   [ d b o ] . [ a c _ B a s k e t C o u p o n s ]     W I T H   C H E C K   A D D     C O N S T R A I N T   [ a c _ C o u p o n s _ a c _ O r d e r C o u p o n A s s n _ F K 1 ]   F O R E I G N   K E Y ( [ C o u p o n I d ] )  
 R E F E R E N C E S   [ d b o ] . [ a c _ C o u p o n s ]   ( [ C o u p o n I d ] )  
 O N   D E L E T E   C A S C A D E  
 G O  
 A L T E R   T A B L E   [ d b o ] . [ a c _ B a s k e t C o u p o n s ]   C H E C K   C O N S T R A I N T   [ a c _ C o u p o n s _ a c _ O r d e r C o u p o n A s s n _ F K 1 ]  
 G O  
 / * * * * * *   O b j e c t :     F o r e i g n K e y   [ a c _ B a s k e t I t e m s _ a c _ B a s k e t I t e m I n p u t s _ F K 1 ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 4   * * * * * * /  
 A L T E R   T A B L E   [ d b o ] . [ a c _ B a s k e t I t e m I n p u t s ]     W I T H   C H E C K   A D D     C O N S T R A I N T   [ a c _ B a s k e t I t e m s _ a c _ B a s k e t I t e m I n p u t s _ F K 1 ]   F O R E I G N   K E Y ( [ B a s k e t I t e m I d ] )  
 R E F E R E N C E S   [ d b o ] . [ a c _ B a s k e t I t e m s ]   ( [ B a s k e t I t e m I d ] )  
 O N   D E L E T E   C A S C A D E  
 G O  
 A L T E R   T A B L E   [ d b o ] . [ a c _ B a s k e t I t e m I n p u t s ]   C H E C K   C O N S T R A I N T   [ a c _ B a s k e t I t e m s _ a c _ B a s k e t I t e m I n p u t s _ F K 1 ]  
 G O  
 / * * * * * *   O b j e c t :     F o r e i g n K e y   [ a c _ I n p u t F i e l d s _ a c _ B a s k e t I t e m I n p u t s _ F K 1 ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 4   * * * * * * /  
 A L T E R   T A B L E   [ d b o ] . [ a c _ B a s k e t I t e m I n p u t s ]     W I T H   C H E C K   A D D     C O N S T R A I N T   [ a c _ I n p u t F i e l d s _ a c _ B a s k e t I t e m I n p u t s _ F K 1 ]   F O R E I G N   K E Y ( [ I n p u t F i e l d I d ] )  
 R E F E R E N C E S   [ d b o ] . [ a c _ I n p u t F i e l d s ]   ( [ I n p u t F i e l d I d ] )  
 O N   D E L E T E   C A S C A D E  
 G O  
 A L T E R   T A B L E   [ d b o ] . [ a c _ B a s k e t I t e m I n p u t s ]   C H E C K   C O N S T R A I N T   [ a c _ I n p u t F i e l d s _ a c _ B a s k e t I t e m I n p u t s _ F K 1 ]  
 G O  
 / * * * * * *   O b j e c t :     F o r e i g n K e y   [ a c _ B a s k e t s _ a c _ B a s k e t I t e m s _ F K 1 ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 4   * * * * * * /  
 A L T E R   T A B L E   [ d b o ] . [ a c _ B a s k e t I t e m s ]     W I T H   C H E C K   A D D     C O N S T R A I N T   [ a c _ B a s k e t s _ a c _ B a s k e t I t e m s _ F K 1 ]   F O R E I G N   K E Y ( [ B a s k e t I d ] )  
 R E F E R E N C E S   [ d b o ] . [ a c _ B a s k e t s ]   ( [ B a s k e t I d ] )  
 O N   D E L E T E   C A S C A D E  
 G O  
 A L T E R   T A B L E   [ d b o ] . [ a c _ B a s k e t I t e m s ]   C H E C K   C O N S T R A I N T   [ a c _ B a s k e t s _ a c _ B a s k e t I t e m s _ F K 1 ]  
 G O  
 / * * * * * *   O b j e c t :     F o r e i g n K e y   [ a c _ P r o d u c t s _ a c _ B a s k e t I t e m s _ F K 1 ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 4   * * * * * * /  
 A L T E R   T A B L E   [ d b o ] . [ a c _ B a s k e t I t e m s ]     W I T H   N O C H E C K   A D D     C O N S T R A I N T   [ a c _ P r o d u c t s _ a c _ B a s k e t I t e m s _ F K 1 ]   F O R E I G N   K E Y ( [ P r o d u c t I d ] )  
 R E F E R E N C E S   [ d b o ] . [ a c _ P r o d u c t s ]   ( [ P r o d u c t I d ] )  
 G O  
 A L T E R   T A B L E   [ d b o ] . [ a c _ B a s k e t I t e m s ]   N O C H E C K   C O N S T R A I N T   [ a c _ P r o d u c t s _ a c _ B a s k e t I t e m s _ F K 1 ]  
 G O  
 / * * * * * *   O b j e c t :     F o r e i g n K e y   [ a c _ T a x C o d e s _ a c _ B a s k e t I t e m s _ F K 1 ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 4   * * * * * * /  
 A L T E R   T A B L E   [ d b o ] . [ a c _ B a s k e t I t e m s ]     W I T H   C H E C K   A D D     C O N S T R A I N T   [ a c _ T a x C o d e s _ a c _ B a s k e t I t e m s _ F K 1 ]   F O R E I G N   K E Y ( [ T a x C o d e I d ] )  
 R E F E R E N C E S   [ d b o ] . [ a c _ T a x C o d e s ]   ( [ T a x C o d e I d ] )  
 O N   D E L E T E   S E T   N U L L  
 G O  
 A L T E R   T A B L E   [ d b o ] . [ a c _ B a s k e t I t e m s ]   C H E C K   C O N S T R A I N T   [ a c _ T a x C o d e s _ a c _ B a s k e t I t e m s _ F K 1 ]  
 G O  
 / * * * * * *   O b j e c t :     F o r e i g n K e y   [ a c _ W i s h l i s t I t e m s _ a c _ B a s k e t I t e m s _ F K 1 ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 4   * * * * * * /  
 A L T E R   T A B L E   [ d b o ] . [ a c _ B a s k e t I t e m s ]     W I T H   C H E C K   A D D     C O N S T R A I N T   [ a c _ W i s h l i s t I t e m s _ a c _ B a s k e t I t e m s _ F K 1 ]   F O R E I G N   K E Y ( [ W i s h l i s t I t e m I d ] )  
 R E F E R E N C E S   [ d b o ] . [ a c _ W i s h l i s t I t e m s ]   ( [ W i s h l i s t I t e m I d ] )  
 O N   D E L E T E   S E T   N U L L  
 G O  
 A L T E R   T A B L E   [ d b o ] . [ a c _ B a s k e t I t e m s ]   C H E C K   C O N S T R A I N T   [ a c _ W i s h l i s t I t e m s _ a c _ B a s k e t I t e m s _ F K 1 ]  
 G O  
 / * * * * * *   O b j e c t :     F o r e i g n K e y   [ a c _ W r a p S t y l e s _ a c _ B a s k e t I t e m s _ F K 1 ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 4   * * * * * * /  
 A L T E R   T A B L E   [ d b o ] . [ a c _ B a s k e t I t e m s ]     W I T H   C H E C K   A D D     C O N S T R A I N T   [ a c _ W r a p S t y l e s _ a c _ B a s k e t I t e m s _ F K 1 ]   F O R E I G N   K E Y ( [ W r a p S t y l e I d ] )  
 R E F E R E N C E S   [ d b o ] . [ a c _ W r a p S t y l e s ]   ( [ W r a p S t y l e I d ] )  
 O N   D E L E T E   S E T   N U L L  
 G O  
 A L T E R   T A B L E   [ d b o ] . [ a c _ B a s k e t I t e m s ]   C H E C K   C O N S T R A I N T   [ a c _ W r a p S t y l e s _ a c _ B a s k e t I t e m s _ F K 1 ]  
 G O  
 / * * * * * *   O b j e c t :     F o r e i g n K e y   [ a c _ U s e r s _ a c _ B a s k e t s _ F K 1 ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 4   * * * * * * /  
 A L T E R   T A B L E   [ d b o ] . [ a c _ B a s k e t s ]     W I T H   C H E C K   A D D     C O N S T R A I N T   [ a c _ U s e r s _ a c _ B a s k e t s _ F K 1 ]   F O R E I G N   K E Y ( [ U s e r I d ] )  
 R E F E R E N C E S   [ d b o ] . [ a c _ U s e r s ]   ( [ U s e r I d ] )  
 G O  
 A L T E R   T A B L E   [ d b o ] . [ a c _ B a s k e t s ]   C H E C K   C O N S T R A I N T   [ a c _ U s e r s _ a c _ B a s k e t s _ F K 1 ]  
 G O  
 / * * * * * *   O b j e c t :     F o r e i g n K e y   [ a c _ B a s k e t s _ a c _ B a s k e t S h i p m e n t s _ F K 1 ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 4   * * * * * * /  
 A L T E R   T A B L E   [ d b o ] . [ a c _ B a s k e t S h i p m e n t s ]     W I T H   C H E C K   A D D     C O N S T R A I N T   [ a c _ B a s k e t s _ a c _ B a s k e t S h i p m e n t s _ F K 1 ]   F O R E I G N   K E Y ( [ B a s k e t I d ] )  
 R E F E R E N C E S   [ d b o ] . [ a c _ B a s k e t s ]   ( [ B a s k e t I d ] )  
 O N   D E L E T E   C A S C A D E  
 G O  
 A L T E R   T A B L E   [ d b o ] . [ a c _ B a s k e t S h i p m e n t s ]   C H E C K   C O N S T R A I N T   [ a c _ B a s k e t s _ a c _ B a s k e t S h i p m e n t s _ F K 1 ]  
 G O  
 / * * * * * *   O b j e c t :     F o r e i g n K e y   [ a c _ S h i p M e t h o d s _ a c _ B a s k e t S h i p m e n t s _ F K 1 ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 4   * * * * * * /  
 A L T E R   T A B L E   [ d b o ] . [ a c _ B a s k e t S h i p m e n t s ]     W I T H   C H E C K   A D D     C O N S T R A I N T   [ a c _ S h i p M e t h o d s _ a c _ B a s k e t S h i p m e n t s _ F K 1 ]   F O R E I G N   K E Y ( [ S h i p M e t h o d I d ] )  
 R E F E R E N C E S   [ d b o ] . [ a c _ S h i p M e t h o d s ]   ( [ S h i p M e t h o d I d ] )  
 O N   D E L E T E   S E T   N U L L  
 G O  
 A L T E R   T A B L E   [ d b o ] . [ a c _ B a s k e t S h i p m e n t s ]   C H E C K   C O N S T R A I N T   [ a c _ S h i p M e t h o d s _ a c _ B a s k e t S h i p m e n t s _ F K 1 ]  
 G O  
 / * * * * * *   O b j e c t :     F o r e i g n K e y   [ a c _ W a r e h o u s e s _ a c _ B a s k e t S h i p m e n t s _ F K 1 ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 4   * * * * * * /  
 A L T E R   T A B L E   [ d b o ] . [ a c _ B a s k e t S h i p m e n t s ]     W I T H   C H E C K   A D D     C O N S T R A I N T   [ a c _ W a r e h o u s e s _ a c _ B a s k e t S h i p m e n t s _ F K 1 ]   F O R E I G N   K E Y ( [ W a r e h o u s e I d ] )  
 R E F E R E N C E S   [ d b o ] . [ a c _ W a r e h o u s e s ]   ( [ W a r e h o u s e I d ] )  
 O N   D E L E T E   C A S C A D E  
 G O  
 A L T E R   T A B L E   [ d b o ] . [ a c _ B a s k e t S h i p m e n t s ]   C H E C K   C O N S T R A I N T   [ a c _ W a r e h o u s e s _ a c _ B a s k e t S h i p m e n t s _ F K 1 ]  
 G O  
 / * * * * * *   O b j e c t :     F o r e i g n K e y   [ a c _ C a t e g o r i e s _ a c _ C a t a l o g N o d e s _ F K 1 ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 4   * * * * * * /  
 A L T E R   T A B L E   [ d b o ] . [ a c _ C a t a l o g N o d e s ]     W I T H   N O C H E C K   A D D     C O N S T R A I N T   [ a c _ C a t e g o r i e s _ a c _ C a t a l o g N o d e s _ F K 1 ]   F O R E I G N   K E Y ( [ C a t e g o r y I d ] )  
 R E F E R E N C E S   [ d b o ] . [ a c _ C a t e g o r i e s ]   ( [ C a t e g o r y I d ] )  
 G O  
 A L T E R   T A B L E   [ d b o ] . [ a c _ C a t a l o g N o d e s ]   N O C H E C K   C O N S T R A I N T   [ a c _ C a t e g o r i e s _ a c _ C a t a l o g N o d e s _ F K 1 ]  
 G O  
 / * * * * * *   O b j e c t :     F o r e i g n K e y   [ a c _ S t o r e s _ a c _ C a t e g o r i e s _ F K 1 ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 4   * * * * * * /  
 A L T E R   T A B L E   [ d b o ] . [ a c _ C a t e g o r i e s ]     W I T H   C H E C K   A D D     C O N S T R A I N T   [ a c _ S t o r e s _ a c _ C a t e g o r i e s _ F K 1 ]   F O R E I G N   K E Y ( [ S t o r e I d ] )  
 R E F E R E N C E S   [ d b o ] . [ a c _ S t o r e s ]   ( [ S t o r e I d ] )  
 G O  
 A L T E R   T A B L E   [ d b o ] . [ a c _ C a t e g o r i e s ]   C H E C K   C O N S T R A I N T   [ a c _ S t o r e s _ a c _ C a t e g o r i e s _ F K 1 ]  
 G O  
 / * * * * * *   O b j e c t :     F o r e i g n K e y   [ a c _ C a t e g o r i e s _ a c _ C a t e g o r y A s s n _ F K 1 ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 4   * * * * * * /  
 A L T E R   T A B L E   [ d b o ] . [ a c _ C a t e g o r y P a r e n t s ]     W I T H   N O C H E C K   A D D     C O N S T R A I N T   [ a c _ C a t e g o r i e s _ a c _ C a t e g o r y A s s n _ F K 1 ]   F O R E I G N   K E Y ( [ C a t e g o r y I d ] )  
 R E F E R E N C E S   [ d b o ] . [ a c _ C a t e g o r i e s ]   ( [ C a t e g o r y I d ] )  
 G O  
 A L T E R   T A B L E   [ d b o ] . [ a c _ C a t e g o r y P a r e n t s ]   N O C H E C K   C O N S T R A I N T   [ a c _ C a t e g o r i e s _ a c _ C a t e g o r y A s s n _ F K 1 ]  
 G O  
 / * * * * * *   O b j e c t :     F o r e i g n K e y   [ a c _ C a t e g o r i e s _ a c _ C a t e g o r y D i s c o u n t A s s n _ F K 1 ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 4   * * * * * * /  
 A L T E R   T A B L E   [ d b o ] . [ a c _ C a t e g o r y V o l u m e D i s c o u n t s ]     W I T H   C H E C K   A D D     C O N S T R A I N T   [ a c _ C a t e g o r i e s _ a c _ C a t e g o r y D i s c o u n t A s s n _ F K 1 ]   F O R E I G N   K E Y ( [ C a t e g o r y I d ] )  
 R E F E R E N C E S   [ d b o ] . [ a c _ C a t e g o r i e s ]   ( [ C a t e g o r y I d ] )  
 O N   D E L E T E   C A S C A D E  
 G O  
 A L T E R   T A B L E   [ d b o ] . [ a c _ C a t e g o r y V o l u m e D i s c o u n t s ]   C H E C K   C O N S T R A I N T   [ a c _ C a t e g o r i e s _ a c _ C a t e g o r y D i s c o u n t A s s n _ F K 1 ]  
 G O  
 / * * * * * *   O b j e c t :     F o r e i g n K e y   [ a c _ D i s c o u n t s _ a c _ C a t e g o r y D i s c o u n t A s s n _ F K 1 ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 4   * * * * * * /  
 A L T E R   T A B L E   [ d b o ] . [ a c _ C a t e g o r y V o l u m e D i s c o u n t s ]     W I T H   C H E C K   A D D     C O N S T R A I N T   [ a c _ D i s c o u n t s _ a c _ C a t e g o r y D i s c o u n t A s s n _ F K 1 ]   F O R E I G N   K E Y ( [ V o l u m e D i s c o u n t I d ] )  
 R E F E R E N C E S   [ d b o ] . [ a c _ V o l u m e D i s c o u n t s ]   ( [ V o l u m e D i s c o u n t I d ] )  
 O N   D E L E T E   C A S C A D E  
 G O  
 A L T E R   T A B L E   [ d b o ] . [ a c _ C a t e g o r y V o l u m e D i s c o u n t s ]   C H E C K   C O N S T R A I N T   [ a c _ D i s c o u n t s _ a c _ C a t e g o r y D i s c o u n t A s s n _ F K 1 ]  
 G O  
 / * * * * * *   O b j e c t :     F o r e i g n K e y   [ a c _ S t o r e s _ a c _ C o u n t r i e s _ F K 1 ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 4   * * * * * * /  
 A L T E R   T A B L E   [ d b o ] . [ a c _ C o u n t r i e s ]     W I T H   C H E C K   A D D     C O N S T R A I N T   [ a c _ S t o r e s _ a c _ C o u n t r i e s _ F K 1 ]   F O R E I G N   K E Y ( [ S t o r e I d ] )  
 R E F E R E N C E S   [ d b o ] . [ a c _ S t o r e s ]   ( [ S t o r e I d ] )  
 G O  
 A L T E R   T A B L E   [ d b o ] . [ a c _ C o u n t r i e s ]   C H E C K   C O N S T R A I N T   [ a c _ S t o r e s _ a c _ C o u n t r i e s _ F K 1 ]  
 G O  
 / * * * * * *   O b j e c t :     F o r e i g n K e y   [ a c _ C o u p o n s _ a c _ C o u p o n C o m b o s _ F K 1 ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 4   * * * * * * /  
 A L T E R   T A B L E   [ d b o ] . [ a c _ C o u p o n C o m b o s ]     W I T H   C H E C K   A D D     C O N S T R A I N T   [ a c _ C o u p o n s _ a c _ C o u p o n C o m b o s _ F K 1 ]   F O R E I G N   K E Y ( [ C o u p o n I d ] )  
 R E F E R E N C E S   [ d b o ] . [ a c _ C o u p o n s ]   ( [ C o u p o n I d ] )  
 O N   D E L E T E   C A S C A D E  
 G O  
 A L T E R   T A B L E   [ d b o ] . [ a c _ C o u p o n C o m b o s ]   C H E C K   C O N S T R A I N T   [ a c _ C o u p o n s _ a c _ C o u p o n C o m b o s _ F K 1 ]  
 G O  
 / * * * * * *   O b j e c t :     F o r e i g n K e y   [ a c _ C o u p o n s _ a c _ C o u p o n C o m b o s _ F K 2 ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 4   * * * * * * /  
 A L T E R   T A B L E   [ d b o ] . [ a c _ C o u p o n C o m b o s ]     W I T H   C H E C K   A D D     C O N S T R A I N T   [ a c _ C o u p o n s _ a c _ C o u p o n C o m b o s _ F K 2 ]   F O R E I G N   K E Y ( [ C o m b o C o u p o n I d ] )  
 R E F E R E N C E S   [ d b o ] . [ a c _ C o u p o n s ]   ( [ C o u p o n I d ] )  
 G O  
 A L T E R   T A B L E   [ d b o ] . [ a c _ C o u p o n C o m b o s ]   C H E C K   C O N S T R A I N T   [ a c _ C o u p o n s _ a c _ C o u p o n C o m b o s _ F K 2 ]  
 G O  
 / * * * * * *   O b j e c t :     F o r e i g n K e y   [ a c _ C o u p o n s _ a c _ C o u p o n G r o u p s _ F K 1 ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 4   * * * * * * /  
 A L T E R   T A B L E   [ d b o ] . [ a c _ C o u p o n G r o u p s ]     W I T H   C H E C K   A D D     C O N S T R A I N T   [ a c _ C o u p o n s _ a c _ C o u p o n G r o u p s _ F K 1 ]   F O R E I G N   K E Y ( [ C o u p o n I d ] )  
 R E F E R E N C E S   [ d b o ] . [ a c _ C o u p o n s ]   ( [ C o u p o n I d ] )  
 O N   D E L E T E   C A S C A D E  
 G O  
 A L T E R   T A B L E   [ d b o ] . [ a c _ C o u p o n G r o u p s ]   C H E C K   C O N S T R A I N T   [ a c _ C o u p o n s _ a c _ C o u p o n G r o u p s _ F K 1 ]  
 G O  
 / * * * * * *   O b j e c t :     F o r e i g n K e y   [ a c _ G r o u p s _ a c _ C o u p o n G r o u p s _ F K 1 ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 4   * * * * * * /  
 A L T E R   T A B L E   [ d b o ] . [ a c _ C o u p o n G r o u p s ]     W I T H   C H E C K   A D D     C O N S T R A I N T   [ a c _ G r o u p s _ a c _ C o u p o n G r o u p s _ F K 1 ]   F O R E I G N   K E Y ( [ G r o u p I d ] )  
 R E F E R E N C E S   [ d b o ] . [ a c _ G r o u p s ]   ( [ G r o u p I d ] )  
 O N   D E L E T E   C A S C A D E  
 G O  
 A L T E R   T A B L E   [ d b o ] . [ a c _ C o u p o n G r o u p s ]   C H E C K   C O N S T R A I N T   [ a c _ G r o u p s _ a c _ C o u p o n G r o u p s _ F K 1 ]  
 G O  
 / * * * * * *   O b j e c t :     F o r e i g n K e y   [ a c _ C o u p o n s _ a c _ C o u p o n P r o d u c t A s s n _ F K 1 ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 4   * * * * * * /  
 A L T E R   T A B L E   [ d b o ] . [ a c _ C o u p o n P r o d u c t s ]     W I T H   C H E C K   A D D     C O N S T R A I N T   [ a c _ C o u p o n s _ a c _ C o u p o n P r o d u c t A s s n _ F K 1 ]   F O R E I G N   K E Y ( [ C o u p o n I d ] )  
 R E F E R E N C E S   [ d b o ] . [ a c _ C o u p o n s ]   ( [ C o u p o n I d ] )  
 O N   D E L E T E   C A S C A D E  
 G O  
 A L T E R   T A B L E   [ d b o ] . [ a c _ C o u p o n P r o d u c t s ]   C H E C K   C O N S T R A I N T   [ a c _ C o u p o n s _ a c _ C o u p o n P r o d u c t A s s n _ F K 1 ]  
 G O  
 / * * * * * *   O b j e c t :     F o r e i g n K e y   [ a c _ P r o d u c t s _ a c _ C o u p o n P r o d u c t A s s n _ F K 1 ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 4   * * * * * * /  
 A L T E R   T A B L E   [ d b o ] . [ a c _ C o u p o n P r o d u c t s ]     W I T H   C H E C K   A D D     C O N S T R A I N T   [ a c _ P r o d u c t s _ a c _ C o u p o n P r o d u c t A s s n _ F K 1 ]   F O R E I G N   K E Y ( [ P r o d u c t I d ] )  
 R E F E R E N C E S   [ d b o ] . [ a c _ P r o d u c t s ]   ( [ P r o d u c t I d ] )  
 O N   D E L E T E   C A S C A D E  
 G O  
 A L T E R   T A B L E   [ d b o ] . [ a c _ C o u p o n P r o d u c t s ]   C H E C K   C O N S T R A I N T   [ a c _ P r o d u c t s _ a c _ C o u p o n P r o d u c t A s s n _ F K 1 ]  
 G O  
 / * * * * * *   O b j e c t :     F o r e i g n K e y   [ a c _ S t o r e s _ a c _ C o u p o n s _ F K 1 ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 4   * * * * * * /  
 A L T E R   T A B L E   [ d b o ] . [ a c _ C o u p o n s ]     W I T H   C H E C K   A D D     C O N S T R A I N T   [ a c _ S t o r e s _ a c _ C o u p o n s _ F K 1 ]   F O R E I G N   K E Y ( [ S t o r e I d ] )  
 R E F E R E N C E S   [ d b o ] . [ a c _ S t o r e s ]   ( [ S t o r e I d ] )  
 G O  
 A L T E R   T A B L E   [ d b o ] . [ a c _ C o u p o n s ]   C H E C K   C O N S T R A I N T   [ a c _ S t o r e s _ a c _ C o u p o n s _ F K 1 ]  
 G O  
 / * * * * * *   O b j e c t :     F o r e i g n K e y   [ a c _ C o u p o n s _ a c _ C o u p o n S h i p M e t h o d s _ F K 1 ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 4   * * * * * * /  
 A L T E R   T A B L E   [ d b o ] . [ a c _ C o u p o n S h i p M e t h o d s ]     W I T H   C H E C K   A D D     C O N S T R A I N T   [ a c _ C o u p o n s _ a c _ C o u p o n S h i p M e t h o d s _ F K 1 ]   F O R E I G N   K E Y ( [ C o u p o n I d ] )  
 R E F E R E N C E S   [ d b o ] . [ a c _ C o u p o n s ]   ( [ C o u p o n I d ] )  
 O N   D E L E T E   C A S C A D E  
 G O  
 A L T E R   T A B L E   [ d b o ] . [ a c _ C o u p o n S h i p M e t h o d s ]   C H E C K   C O N S T R A I N T   [ a c _ C o u p o n s _ a c _ C o u p o n S h i p M e t h o d s _ F K 1 ]  
 G O  
 / * * * * * *   O b j e c t :     F o r e i g n K e y   [ a c _ S h i p M e t h o d s _ a c _ C o u p o n S h i p M e t h o d s _ F K 1 ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 4   * * * * * * /  
 A L T E R   T A B L E   [ d b o ] . [ a c _ C o u p o n S h i p M e t h o d s ]     W I T H   C H E C K   A D D     C O N S T R A I N T   [ a c _ S h i p M e t h o d s _ a c _ C o u p o n S h i p M e t h o d s _ F K 1 ]   F O R E I G N   K E Y ( [ S h i p M e t h o d I d ] )  
 R E F E R E N C E S   [ d b o ] . [ a c _ S h i p M e t h o d s ]   ( [ S h i p M e t h o d I d ] )  
 O N   D E L E T E   C A S C A D E  
 G O  
 A L T E R   T A B L E   [ d b o ] . [ a c _ C o u p o n S h i p M e t h o d s ]   C H E C K   C O N S T R A I N T   [ a c _ S h i p M e t h o d s _ a c _ C o u p o n S h i p M e t h o d s _ F K 1 ]  
 G O  
 / * * * * * *   O b j e c t :     F o r e i g n K e y   [ a c _ S t o r e s _ a c _ C u r r e n c i e s _ F K 1 ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 4   * * * * * * /  
 A L T E R   T A B L E   [ d b o ] . [ a c _ C u r r e n c i e s ]     W I T H   C H E C K   A D D     C O N S T R A I N T   [ a c _ S t o r e s _ a c _ C u r r e n c i e s _ F K 1 ]   F O R E I G N   K E Y ( [ S t o r e I d ] )  
 R E F E R E N C E S   [ d b o ] . [ a c _ S t o r e s ]   ( [ S t o r e I d ] )  
 G O  
 A L T E R   T A B L E   [ d b o ] . [ a c _ C u r r e n c i e s ]   C H E C K   C O N S T R A I N T   [ a c _ S t o r e s _ a c _ C u r r e n c i e s _ F K 1 ]  
 G O  
 / * * * * * *   O b j e c t :     F o r e i g n K e y   [ a c _ S t o r e s _ a c _ C u s t o m F i e l d s _ F K 1 ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 4   * * * * * * /  
 A L T E R   T A B L E   [ d b o ] . [ a c _ C u s t o m F i e l d s ]     W I T H   C H E C K   A D D     C O N S T R A I N T   [ a c _ S t o r e s _ a c _ C u s t o m F i e l d s _ F K 1 ]   F O R E I G N   K E Y ( [ S t o r e I d ] )  
 R E F E R E N C E S   [ d b o ] . [ a c _ S t o r e s ]   ( [ S t o r e I d ] )  
 G O  
 A L T E R   T A B L E   [ d b o ] . [ a c _ C u s t o m F i e l d s ]   C H E C K   C O N S T R A I N T   [ a c _ S t o r e s _ a c _ C u s t o m F i e l d s _ F K 1 ]  
 G O  
 / * * * * * *   O b j e c t :     F o r e i g n K e y   [ a c _ C u s t o m U r l s _ a c _ S t o r e s _ F K ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 4   * * * * * * /  
 A L T E R   T A B L E   [ d b o ] . [ a c _ C u s t o m U r l s ]     W I T H   C H E C K   A D D     C O N S T R A I N T   [ a c _ C u s t o m U r l s _ a c _ S t o r e s _ F K ]   F O R E I G N   K E Y ( [ S t o r e I d ] )  
 R E F E R E N C E S   [ d b o ] . [ a c _ S t o r e s ]   ( [ S t o r e I d ] )  
 O N   D E L E T E   C A S C A D E  
 G O  
 A L T E R   T A B L E   [ d b o ] . [ a c _ C u s t o m U r l s ]   C H E C K   C O N S T R A I N T   [ a c _ C u s t o m U r l s _ a c _ S t o r e s _ F K ]  
 G O  
 / * * * * * *   O b j e c t :     F o r e i g n K e y   [ a c _ L i c e n s e A g r e e m e n t s _ a c _ D i g i t a l G o o d s _ F K 1 ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 4   * * * * * * /  
 A L T E R   T A B L E   [ d b o ] . [ a c _ D i g i t a l G o o d s ]     W I T H   C H E C K   A D D     C O N S T R A I N T   [ a c _ L i c e n s e A g r e e m e n t s _ a c _ D i g i t a l G o o d s _ F K 1 ]   F O R E I G N   K E Y ( [ L i c e n s e A g r e e m e n t I d ] )  
 R E F E R E N C E S   [ d b o ] . [ a c _ L i c e n s e A g r e e m e n t s ]   ( [ L i c e n s e A g r e e m e n t I d ] )  
 O N   D E L E T E   S E T   N U L L  
 G O  
 A L T E R   T A B L E   [ d b o ] . [ a c _ D i g i t a l G o o d s ]   C H E C K   C O N S T R A I N T   [ a c _ L i c e n s e A g r e e m e n t s _ a c _ D i g i t a l G o o d s _ F K 1 ]  
 G O  
 / * * * * * *   O b j e c t :     F o r e i g n K e y   [ a c _ R e a d m e s _ a c _ D i g i t a l G o o d s _ F K 1 ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 4   * * * * * * /  
 A L T E R   T A B L E   [ d b o ] . [ a c _ D i g i t a l G o o d s ]     W I T H   C H E C K   A D D     C O N S T R A I N T   [ a c _ R e a d m e s _ a c _ D i g i t a l G o o d s _ F K 1 ]   F O R E I G N   K E Y ( [ R e a d m e I d ] )  
 R E F E R E N C E S   [ d b o ] . [ a c _ R e a d m e s ]   ( [ R e a d m e I d ] )  
 O N   D E L E T E   S E T   N U L L  
 G O  
 A L T E R   T A B L E   [ d b o ] . [ a c _ D i g i t a l G o o d s ]   C H E C K   C O N S T R A I N T   [ a c _ R e a d m e s _ a c _ D i g i t a l G o o d s _ F K 1 ]  
 G O  
 / * * * * * *   O b j e c t :     F o r e i g n K e y   [ a c _ S t o r e s _ a c _ D i g i t a l G o o d s _ F K 1 ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 4   * * * * * * /  
 A L T E R   T A B L E   [ d b o ] . [ a c _ D i g i t a l G o o d s ]     W I T H   C H E C K   A D D     C O N S T R A I N T   [ a c _ S t o r e s _ a c _ D i g i t a l G o o d s _ F K 1 ]   F O R E I G N   K E Y ( [ S t o r e I d ] )  
 R E F E R E N C E S   [ d b o ] . [ a c _ S t o r e s ]   ( [ S t o r e I d ] )  
 G O  
 A L T E R   T A B L E   [ d b o ] . [ a c _ D i g i t a l G o o d s ]   C H E C K   C O N S T R A I N T   [ a c _ S t o r e s _ a c _ D i g i t a l G o o d s _ F K 1 ]  
 G O  
 / * * * * * *   O b j e c t :     F o r e i g n K e y   [ a c _ O r d e r F i l e s _ a c _ D o w n l o a d s _ F K 1 ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 4   * * * * * * /  
 A L T E R   T A B L E   [ d b o ] . [ a c _ D o w n l o a d s ]     W I T H   C H E C K   A D D     C O N S T R A I N T   [ a c _ O r d e r F i l e s _ a c _ D o w n l o a d s _ F K 1 ]   F O R E I G N   K E Y ( [ O r d e r I t e m D i g i t a l G o o d I d ] )  
 R E F E R E N C E S   [ d b o ] . [ a c _ O r d e r I t e m D i g i t a l G o o d s ]   ( [ O r d e r I t e m D i g i t a l G o o d I d ] )  
 O N   D E L E T E   C A S C A D E  
 G O  
 A L T E R   T A B L E   [ d b o ] . [ a c _ D o w n l o a d s ]   C H E C K   C O N S T R A I N T   [ a c _ O r d e r F i l e s _ a c _ D o w n l o a d s _ F K 1 ]  
 G O  
 / * * * * * *   O b j e c t :     F o r e i g n K e y   [ a c _ S t o r e s _ a c _ E m a i l L i s t s _ F K 1 ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 4   * * * * * * /  
 A L T E R   T A B L E   [ d b o ] . [ a c _ E m a i l L i s t s ]     W I T H   C H E C K   A D D     C O N S T R A I N T   [ a c _ S t o r e s _ a c _ E m a i l L i s t s _ F K 1 ]   F O R E I G N   K E Y ( [ S t o r e I d ] )  
 R E F E R E N C E S   [ d b o ] . [ a c _ S t o r e s ]   ( [ S t o r e I d ] )  
 G O  
 A L T E R   T A B L E   [ d b o ] . [ a c _ E m a i l L i s t s ]   C H E C K   C O N S T R A I N T   [ a c _ S t o r e s _ a c _ E m a i l L i s t s _ F K 1 ]  
 G O  
 / * * * * * *   O b j e c t :     F o r e i g n K e y   [ a c _ E m a i l L i s t s _ a c _ E m a i l L i s t S i g n u p s _ F K 1 ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 4   * * * * * * /  
 A L T E R   T A B L E   [ d b o ] . [ a c _ E m a i l L i s t S i g n u p s ]     W I T H   C H E C K   A D D     C O N S T R A I N T   [ a c _ E m a i l L i s t s _ a c _ E m a i l L i s t S i g n u p s _ F K 1 ]   F O R E I G N   K E Y ( [ E m a i l L i s t I d ] )  
 R E F E R E N C E S   [ d b o ] . [ a c _ E m a i l L i s t s ]   ( [ E m a i l L i s t I d ] )  
 O N   D E L E T E   C A S C A D E  
 G O  
 A L T E R   T A B L E   [ d b o ] . [ a c _ E m a i l L i s t S i g n u p s ]   C H E C K   C O N S T R A I N T   [ a c _ E m a i l L i s t s _ a c _ E m a i l L i s t S i g n u p s _ F K 1 ]  
 G O  
 / * * * * * *   O b j e c t :     F o r e i g n K e y   [ a c _ E m a i l L i s t s _ a c _ E m a i l L i s t U s e r s _ F K 1 ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 4   * * * * * * /  
 A L T E R   T A B L E   [ d b o ] . [ a c _ E m a i l L i s t U s e r s ]     W I T H   C H E C K   A D D     C O N S T R A I N T   [ a c _ E m a i l L i s t s _ a c _ E m a i l L i s t U s e r s _ F K 1 ]   F O R E I G N   K E Y ( [ E m a i l L i s t I d ] )  
 R E F E R E N C E S   [ d b o ] . [ a c _ E m a i l L i s t s ]   ( [ E m a i l L i s t I d ] )  
 O N   D E L E T E   C A S C A D E  
 G O  
 A L T E R   T A B L E   [ d b o ] . [ a c _ E m a i l L i s t U s e r s ]   C H E C K   C O N S T R A I N T   [ a c _ E m a i l L i s t s _ a c _ E m a i l L i s t U s e r s _ F K 1 ]  
 G O  
 / * * * * * *   O b j e c t :     F o r e i g n K e y   [ a c _ S t o r e s _ a c _ E m a i l s _ F K 1 ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 4   * * * * * * /  
 A L T E R   T A B L E   [ d b o ] . [ a c _ E m a i l T e m p l a t e s ]     W I T H   C H E C K   A D D     C O N S T R A I N T   [ a c _ S t o r e s _ a c _ E m a i l s _ F K 1 ]   F O R E I G N   K E Y ( [ S t o r e I d ] )  
 R E F E R E N C E S   [ d b o ] . [ a c _ S t o r e s ]   ( [ S t o r e I d ] )  
 G O  
 A L T E R   T A B L E   [ d b o ] . [ a c _ E m a i l T e m p l a t e s ]   C H E C K   C O N S T R A I N T   [ a c _ S t o r e s _ a c _ E m a i l s _ F K 1 ]  
 G O  
 / * * * * * *   O b j e c t :     F o r e i g n K e y   [ a c _ E m a i l s _ a c _ E m a i l E v e n t A s s n _ F K 1 ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 4   * * * * * * /  
 A L T E R   T A B L E   [ d b o ] . [ a c _ E m a i l T e m p l a t e T r i g g e r s ]     W I T H   C H E C K   A D D     C O N S T R A I N T   [ a c _ E m a i l s _ a c _ E m a i l E v e n t A s s n _ F K 1 ]   F O R E I G N   K E Y ( [ E m a i l T e m p l a t e I d ] )  
 R E F E R E N C E S   [ d b o ] . [ a c _ E m a i l T e m p l a t e s ]   ( [ E m a i l T e m p l a t e I d ] )  
 O N   D E L E T E   C A S C A D E  
 G O  
 A L T E R   T A B L E   [ d b o ] . [ a c _ E m a i l T e m p l a t e T r i g g e r s ]   C H E C K   C O N S T R A I N T   [ a c _ E m a i l s _ a c _ E m a i l E v e n t A s s n _ F K 1 ]  
 G O  
 / * * * * * *   O b j e c t :     F o r e i g n K e y   [ a c _ S t o r e s _ a c _ E r r o r M e s s a g e s _ F K 1 ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 4   * * * * * * /  
 A L T E R   T A B L E   [ d b o ] . [ a c _ E r r o r M e s s a g e s ]     W I T H   C H E C K   A D D     C O N S T R A I N T   [ a c _ S t o r e s _ a c _ E r r o r M e s s a g e s _ F K 1 ]   F O R E I G N   K E Y ( [ S t o r e I d ] )  
 R E F E R E N C E S   [ d b o ] . [ a c _ S t o r e s ]   ( [ S t o r e I d ] )  
 G O  
 A L T E R   T A B L E   [ d b o ] . [ a c _ E r r o r M e s s a g e s ]   C H E C K   C O N S T R A I N T   [ a c _ S t o r e s _ a c _ E r r o r M e s s a g e s _ F K 1 ]  
 G O  
 / * * * * * *   O b j e c t :     F o r e i g n K e y   [ a c _ O r d e r I t e m s _ a c _ G i f t C e r t i f i c a t e s _ F K 1 ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 4   * * * * * * /  
 A L T E R   T A B L E   [ d b o ] . [ a c _ G i f t C e r t i f i c a t e s ]     W I T H   C H E C K   A D D     C O N S T R A I N T   [ a c _ O r d e r I t e m s _ a c _ G i f t C e r t i f i c a t e s _ F K 1 ]   F O R E I G N   K E Y ( [ O r d e r I t e m I d ] )  
 R E F E R E N C E S   [ d b o ] . [ a c _ O r d e r I t e m s ]   ( [ O r d e r I t e m I d ] )  
 O N   D E L E T E   S E T   N U L L  
 G O  
 A L T E R   T A B L E   [ d b o ] . [ a c _ G i f t C e r t i f i c a t e s ]   C H E C K   C O N S T R A I N T   [ a c _ O r d e r I t e m s _ a c _ G i f t C e r t i f i c a t e s _ F K 1 ]  
 G O  
 / * * * * * *   O b j e c t :     F o r e i g n K e y   [ a c _ S t o r e s _ a c _ G i f t C e r t i f i c a t e s _ F K 1 ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 4   * * * * * * /  
 A L T E R   T A B L E   [ d b o ] . [ a c _ G i f t C e r t i f i c a t e s ]     W I T H   C H E C K   A D D     C O N S T R A I N T   [ a c _ S t o r e s _ a c _ G i f t C e r t i f i c a t e s _ F K 1 ]   F O R E I G N   K E Y ( [ S t o r e I d ] )  
 R E F E R E N C E S   [ d b o ] . [ a c _ S t o r e s ]   ( [ S t o r e I d ] )  
 G O  
 A L T E R   T A B L E   [ d b o ] . [ a c _ G i f t C e r t i f i c a t e s ]   C H E C K   C O N S T R A I N T   [ a c _ S t o r e s _ a c _ G i f t C e r t i f i c a t e s _ F K 1 ]  
 G O  
 / * * * * * *   O b j e c t :     F o r e i g n K e y   [ a c _ G i f t C e r t i f i c a t e s _ a c _ G i f t C e r t i f i c a t e T r a n s a c t i o n s _ F K 1 ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 4   * * * * * * /  
 A L T E R   T A B L E   [ d b o ] . [ a c _ G i f t C e r t i f i c a t e T r a n s a c t i o n s ]     W I T H   C H E C K   A D D     C O N S T R A I N T   [ a c _ G i f t C e r t i f i c a t e s _ a c _ G i f t C e r t i f i c a t e T r a n s a c t i o n s _ F K 1 ]   F O R E I G N   K E Y ( [ G i f t C e r t i f i c a t e I d ] )  
 R E F E R E N C E S   [ d b o ] . [ a c _ G i f t C e r t i f i c a t e s ]   ( [ G i f t C e r t i f i c a t e I d ] )  
 O N   D E L E T E   C A S C A D E  
 G O  
 A L T E R   T A B L E   [ d b o ] . [ a c _ G i f t C e r t i f i c a t e T r a n s a c t i o n s ]   C H E C K   C O N S T R A I N T   [ a c _ G i f t C e r t i f i c a t e s _ a c _ G i f t C e r t i f i c a t e T r a n s a c t i o n s _ F K 1 ]  
 G O  
 / * * * * * *   O b j e c t :     F o r e i g n K e y   [ a c _ O r d e r s _ a c _ G i f t C e r t i f i c a t e T r a n s a c t i o n s _ F K 1 ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 4   * * * * * * /  
 A L T E R   T A B L E   [ d b o ] . [ a c _ G i f t C e r t i f i c a t e T r a n s a c t i o n s ]     W I T H   C H E C K   A D D     C O N S T R A I N T   [ a c _ O r d e r s _ a c _ G i f t C e r t i f i c a t e T r a n s a c t i o n s _ F K 1 ]   F O R E I G N   K E Y ( [ O r d e r I d ] )  
 R E F E R E N C E S   [ d b o ] . [ a c _ O r d e r s ]   ( [ O r d e r I d ] )  
 O N   D E L E T E   S E T   N U L L  
 G O  
 A L T E R   T A B L E   [ d b o ] . [ a c _ G i f t C e r t i f i c a t e T r a n s a c t i o n s ]   C H E C K   C O N S T R A I N T   [ a c _ O r d e r s _ a c _ G i f t C e r t i f i c a t e T r a n s a c t i o n s _ F K 1 ]  
 G O  
 / * * * * * *   O b j e c t :     F o r e i g n K e y   [ a c _ G r o u p s _ a c _ G r o u p R o l e s _ F K 1 ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 4   * * * * * * /  
 A L T E R   T A B L E   [ d b o ] . [ a c _ G r o u p R o l e s ]     W I T H   C H E C K   A D D     C O N S T R A I N T   [ a c _ G r o u p s _ a c _ G r o u p R o l e s _ F K 1 ]   F O R E I G N   K E Y ( [ G r o u p I d ] )  
 R E F E R E N C E S   [ d b o ] . [ a c _ G r o u p s ]   ( [ G r o u p I d ] )  
 O N   D E L E T E   C A S C A D E  
 G O  
 A L T E R   T A B L E   [ d b o ] . [ a c _ G r o u p R o l e s ]   C H E C K   C O N S T R A I N T   [ a c _ G r o u p s _ a c _ G r o u p R o l e s _ F K 1 ]  
 G O  
 / * * * * * *   O b j e c t :     F o r e i g n K e y   [ a c _ R o l e s _ a c _ G r o u p R o l e s _ F K 1 ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 4   * * * * * * /  
 A L T E R   T A B L E   [ d b o ] . [ a c _ G r o u p R o l e s ]     W I T H   C H E C K   A D D     C O N S T R A I N T   [ a c _ R o l e s _ a c _ G r o u p R o l e s _ F K 1 ]   F O R E I G N   K E Y ( [ R o l e I d ] )  
 R E F E R E N C E S   [ d b o ] . [ a c _ R o l e s ]   ( [ R o l e I d ] )  
 O N   D E L E T E   C A S C A D E  
 G O  
 A L T E R   T A B L E   [ d b o ] . [ a c _ G r o u p R o l e s ]   C H E C K   C O N S T R A I N T   [ a c _ R o l e s _ a c _ G r o u p R o l e s _ F K 1 ]  
 G O  
 / * * * * * *   O b j e c t :     F o r e i g n K e y   [ a c _ S t o r e s _ a c _ G r o u p s _ F K 1 ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 4   * * * * * * /  
 A L T E R   T A B L E   [ d b o ] . [ a c _ G r o u p s ]     W I T H   C H E C K   A D D     C O N S T R A I N T   [ a c _ S t o r e s _ a c _ G r o u p s _ F K 1 ]   F O R E I G N   K E Y ( [ S t o r e I d ] )  
 R E F E R E N C E S   [ d b o ] . [ a c _ S t o r e s ]   ( [ S t o r e I d ] )  
 G O  
 A L T E R   T A B L E   [ d b o ] . [ a c _ G r o u p s ]   C H E C K   C O N S T R A I N T   [ a c _ S t o r e s _ a c _ G r o u p s _ F K 1 ]  
 G O  
 / * * * * * *   O b j e c t :     F o r e i g n K e y   [ a c _ I n p u t F i e l d s _ a c _ I n p u t C h o i c e s _ F K 1 ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 4   * * * * * * /  
 A L T E R   T A B L E   [ d b o ] . [ a c _ I n p u t C h o i c e s ]     W I T H   C H E C K   A D D     C O N S T R A I N T   [ a c _ I n p u t F i e l d s _ a c _ I n p u t C h o i c e s _ F K 1 ]   F O R E I G N   K E Y ( [ I n p u t F i e l d I d ] )  
 R E F E R E N C E S   [ d b o ] . [ a c _ I n p u t F i e l d s ]   ( [ I n p u t F i e l d I d ] )  
 O N   D E L E T E   C A S C A D E  
 G O  
 A L T E R   T A B L E   [ d b o ] . [ a c _ I n p u t C h o i c e s ]   C H E C K   C O N S T R A I N T   [ a c _ I n p u t F i e l d s _ a c _ I n p u t C h o i c e s _ F K 1 ]  
 G O  
 / * * * * * *   O b j e c t :     F o r e i g n K e y   [ a c _ P r o d u c t T e m p l a t e s _ a c _ I n p u t F i e l d s _ F K 1 ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 4   * * * * * * /  
 A L T E R   T A B L E   [ d b o ] . [ a c _ I n p u t F i e l d s ]     W I T H   C H E C K   A D D     C O N S T R A I N T   [ a c _ P r o d u c t T e m p l a t e s _ a c _ I n p u t F i e l d s _ F K 1 ]   F O R E I G N   K E Y ( [ P r o d u c t T e m p l a t e I d ] )  
 R E F E R E N C E S   [ d b o ] . [ a c _ P r o d u c t T e m p l a t e s ]   ( [ P r o d u c t T e m p l a t e I d ] )  
 O N   D E L E T E   C A S C A D E  
 G O  
 A L T E R   T A B L E   [ d b o ] . [ a c _ I n p u t F i e l d s ]   C H E C K   C O N S T R A I N T   [ a c _ P r o d u c t T e m p l a t e s _ a c _ I n p u t F i e l d s _ F K 1 ]  
 G O  
 / * * * * * *   O b j e c t :     F o r e i g n K e y   [ a c _ S t o r e s _ a c _ K i t C o m p o n e n t s _ F K 1 ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 4   * * * * * * /  
 A L T E R   T A B L E   [ d b o ] . [ a c _ K i t C o m p o n e n t s ]     W I T H   C H E C K   A D D     C O N S T R A I N T   [ a c _ S t o r e s _ a c _ K i t C o m p o n e n t s _ F K 1 ]   F O R E I G N   K E Y ( [ S t o r e I d ] )  
 R E F E R E N C E S   [ d b o ] . [ a c _ S t o r e s ]   ( [ S t o r e I d ] )  
 G O  
 A L T E R   T A B L E   [ d b o ] . [ a c _ K i t C o m p o n e n t s ]   C H E C K   C O N S T R A I N T   [ a c _ S t o r e s _ a c _ K i t C o m p o n e n t s _ F K 1 ]  
 G O  
 / * * * * * *   O b j e c t :     F o r e i g n K e y   [ a c _ K i t C o m p o n e n t s _ a c _ K i t P r o d u c t _ F K 1 ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 4   * * * * * * /  
 A L T E R   T A B L E   [ d b o ] . [ a c _ K i t P r o d u c t s ]     W I T H   C H E C K   A D D     C O N S T R A I N T   [ a c _ K i t C o m p o n e n t s _ a c _ K i t P r o d u c t _ F K 1 ]   F O R E I G N   K E Y ( [ K i t C o m p o n e n t I d ] )  
 R E F E R E N C E S   [ d b o ] . [ a c _ K i t C o m p o n e n t s ]   ( [ K i t C o m p o n e n t I d ] )  
 O N   D E L E T E   C A S C A D E  
 G O  
 A L T E R   T A B L E   [ d b o ] . [ a c _ K i t P r o d u c t s ]   C H E C K   C O N S T R A I N T   [ a c _ K i t C o m p o n e n t s _ a c _ K i t P r o d u c t _ F K 1 ]  
 G O  
 / * * * * * *   O b j e c t :     F o r e i g n K e y   [ a c _ P r o d u c t s _ a c _ K i t s _ F K 1 ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 4   * * * * * * /  
 A L T E R   T A B L E   [ d b o ] . [ a c _ K i t s ]     W I T H   C H E C K   A D D     C O N S T R A I N T   [ a c _ P r o d u c t s _ a c _ K i t s _ F K 1 ]   F O R E I G N   K E Y ( [ P r o d u c t I d ] )  
 R E F E R E N C E S   [ d b o ] . [ a c _ P r o d u c t s ]   ( [ P r o d u c t I d ] )  
 O N   D E L E T E   C A S C A D E  
 G O  
 A L T E R   T A B L E   [ d b o ] . [ a c _ K i t s ]   C H E C K   C O N S T R A I N T   [ a c _ P r o d u c t s _ a c _ K i t s _ F K 1 ]  
 G O  
 / * * * * * *   O b j e c t :     F o r e i g n K e y   [ a c _ S t o r e s _ a c _ L i c e n s e A g r e e m e n t s _ F K 1 ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 4   * * * * * * /  
 A L T E R   T A B L E   [ d b o ] . [ a c _ L i c e n s e A g r e e m e n t s ]     W I T H   C H E C K   A D D     C O N S T R A I N T   [ a c _ S t o r e s _ a c _ L i c e n s e A g r e e m e n t s _ F K 1 ]   F O R E I G N   K E Y ( [ S t o r e I d ] )  
 R E F E R E N C E S   [ d b o ] . [ a c _ S t o r e s ]   ( [ S t o r e I d ] )  
 G O  
 A L T E R   T A B L E   [ d b o ] . [ a c _ L i c e n s e A g r e e m e n t s ]   C H E C K   C O N S T R A I N T   [ a c _ S t o r e s _ a c _ L i c e n s e A g r e e m e n t s _ F K 1 ]  
 G O  
 / * * * * * *   O b j e c t :     F o r e i g n K e y   [ a c _ S t o r e s _ a c _ L i n k s _ F K 1 ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 4   * * * * * * /  
 A L T E R   T A B L E   [ d b o ] . [ a c _ L i n k s ]     W I T H   C H E C K   A D D     C O N S T R A I N T   [ a c _ S t o r e s _ a c _ L i n k s _ F K 1 ]   F O R E I G N   K E Y ( [ S t o r e I d ] )  
 R E F E R E N C E S   [ d b o ] . [ a c _ S t o r e s ]   ( [ S t o r e I d ] )  
 G O  
 A L T E R   T A B L E   [ d b o ] . [ a c _ L i n k s ]   C H E C K   C O N S T R A I N T   [ a c _ S t o r e s _ a c _ L i n k s _ F K 1 ]  
 G O  
 / * * * * * *   O b j e c t :     F o r e i g n K e y   [ a c _ S t o r e s _ a c _ M a n u f a c t u r e r s _ F K 1 ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 4   * * * * * * /  
 A L T E R   T A B L E   [ d b o ] . [ a c _ M a n u f a c t u r e r s ]     W I T H   C H E C K   A D D     C O N S T R A I N T   [ a c _ S t o r e s _ a c _ M a n u f a c t u r e r s _ F K 1 ]   F O R E I G N   K E Y ( [ S t o r e I d ] )  
 R E F E R E N C E S   [ d b o ] . [ a c _ S t o r e s ]   ( [ S t o r e I d ] )  
 G O  
 A L T E R   T A B L E   [ d b o ] . [ a c _ M a n u f a c t u r e r s ]   C H E C K   C O N S T R A I N T   [ a c _ S t o r e s _ a c _ M a n u f a c t u r e r s _ F K 1 ]  
 G O  
 / * * * * * *   O b j e c t :     F o r e i g n K e y   [ a c _ P r o d u c t A t t r i b u t e s _ a c _ A t t r i b u t e O p t i o n s _ F K 1 ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 4   * * * * * * /  
 A L T E R   T A B L E   [ d b o ] . [ a c _ O p t i o n C h o i c e s ]     W I T H   C H E C K   A D D     C O N S T R A I N T   [ a c _ P r o d u c t A t t r i b u t e s _ a c _ A t t r i b u t e O p t i o n s _ F K 1 ]   F O R E I G N   K E Y ( [ O p t i o n I d ] )  
 R E F E R E N C E S   [ d b o ] . [ a c _ O p t i o n s ]   ( [ O p t i o n I d ] )  
 O N   D E L E T E   C A S C A D E  
 G O  
 A L T E R   T A B L E   [ d b o ] . [ a c _ O p t i o n C h o i c e s ]   C H E C K   C O N S T R A I N T   [ a c _ P r o d u c t A t t r i b u t e s _ a c _ A t t r i b u t e O p t i o n s _ F K 1 ]  
 G O  
 / * * * * * *   O b j e c t :     F o r e i g n K e y   [ a c _ O r d e r s _ a c _ O r d e r C o u p o n s _ F K 1 ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 4   * * * * * * /  
 A L T E R   T A B L E   [ d b o ] . [ a c _ O r d e r C o u p o n s ]     W I T H   C H E C K   A D D     C O N S T R A I N T   [ a c _ O r d e r s _ a c _ O r d e r C o u p o n s _ F K 1 ]   F O R E I G N   K E Y ( [ O r d e r I d ] )  
 R E F E R E N C E S   [ d b o ] . [ a c _ O r d e r s ]   ( [ O r d e r I d ] )  
 O N   D E L E T E   C A S C A D E  
 G O  
 A L T E R   T A B L E   [ d b o ] . [ a c _ O r d e r C o u p o n s ]   C H E C K   C O N S T R A I N T   [ a c _ O r d e r s _ a c _ O r d e r C o u p o n s _ F K 1 ]  
 G O  
 / * * * * * *   O b j e c t :     F o r e i g n K e y   [ a c _ O r d e r I t e m D i g i t a l G o o d s _ a c _ D i g i t a l G o o d s _ F K 1 ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 4   * * * * * * /  
 A L T E R   T A B L E   [ d b o ] . [ a c _ O r d e r I t e m D i g i t a l G o o d s ]     W I T H   C H E C K   A D D     C O N S T R A I N T   [ a c _ O r d e r I t e m D i g i t a l G o o d s _ a c _ D i g i t a l G o o d s _ F K 1 ]   F O R E I G N   K E Y ( [ D i g i t a l G o o d I d ] )  
 R E F E R E N C E S   [ d b o ] . [ a c _ D i g i t a l G o o d s ]   ( [ D i g i t a l G o o d I d ] )  
 O N   D E L E T E   S E T   N U L L  
 G O  
 A L T E R   T A B L E   [ d b o ] . [ a c _ O r d e r I t e m D i g i t a l G o o d s ]   C H E C K   C O N S T R A I N T   [ a c _ O r d e r I t e m D i g i t a l G o o d s _ a c _ D i g i t a l G o o d s _ F K 1 ]  
 G O  
 / * * * * * *   O b j e c t :     F o r e i g n K e y   [ a c _ O r d e r I t e m s _ a c _ O r d e r I t e m D i g i t a l G o o d s _ F K 1 ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 4   * * * * * * /  
 A L T E R   T A B L E   [ d b o ] . [ a c _ O r d e r I t e m D i g i t a l G o o d s ]     W I T H   C H E C K   A D D     C O N S T R A I N T   [ a c _ O r d e r I t e m s _ a c _ O r d e r I t e m D i g i t a l G o o d s _ F K 1 ]   F O R E I G N   K E Y ( [ O r d e r I t e m I d ] )  
 R E F E R E N C E S   [ d b o ] . [ a c _ O r d e r I t e m s ]   ( [ O r d e r I t e m I d ] )  
 O N   D E L E T E   C A S C A D E  
 G O  
 A L T E R   T A B L E   [ d b o ] . [ a c _ O r d e r I t e m D i g i t a l G o o d s ]   C H E C K   C O N S T R A I N T   [ a c _ O r d e r I t e m s _ a c _ O r d e r I t e m D i g i t a l G o o d s _ F K 1 ]  
 G O  
 / * * * * * *   O b j e c t :     F o r e i g n K e y   [ a c _ O r d e r I t e m s _ a c _ O r d e r I t e m I n p u t s _ F K 1 ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 4   * * * * * * /  
 A L T E R   T A B L E   [ d b o ] . [ a c _ O r d e r I t e m I n p u t s ]     W I T H   C H E C K   A D D     C O N S T R A I N T   [ a c _ O r d e r I t e m s _ a c _ O r d e r I t e m I n p u t s _ F K 1 ]   F O R E I G N   K E Y ( [ O r d e r I t e m I d ] )  
 R E F E R E N C E S   [ d b o ] . [ a c _ O r d e r I t e m s ]   ( [ O r d e r I t e m I d ] )  
 O N   D E L E T E   C A S C A D E  
 G O  
 A L T E R   T A B L E   [ d b o ] . [ a c _ O r d e r I t e m I n p u t s ]   C H E C K   C O N S T R A I N T   [ a c _ O r d e r I t e m s _ a c _ O r d e r I t e m I n p u t s _ F K 1 ]  
 G O  
 / * * * * * *   O b j e c t :     F o r e i g n K e y   [ a c _ O r d e r s _ a c _ O r d e r I t e m s _ F K 1 ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 4   * * * * * * /  
 A L T E R   T A B L E   [ d b o ] . [ a c _ O r d e r I t e m s ]     W I T H   C H E C K   A D D     C O N S T R A I N T   [ a c _ O r d e r s _ a c _ O r d e r I t e m s _ F K 1 ]   F O R E I G N   K E Y ( [ O r d e r I d ] )  
 R E F E R E N C E S   [ d b o ] . [ a c _ O r d e r s ]   ( [ O r d e r I d ] )  
 O N   D E L E T E   C A S C A D E  
 G O  
 A L T E R   T A B L E   [ d b o ] . [ a c _ O r d e r I t e m s ]   C H E C K   C O N S T R A I N T   [ a c _ O r d e r s _ a c _ O r d e r I t e m s _ F K 1 ]  
 G O  
 / * * * * * *   O b j e c t :     F o r e i g n K e y   [ a c _ O r d e r S h i p m e n t s _ a c _ O r d e r I t e m s _ F K 1 ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 4   * * * * * * /  
 A L T E R   T A B L E   [ d b o ] . [ a c _ O r d e r I t e m s ]     W I T H   C H E C K   A D D     C O N S T R A I N T   [ a c _ O r d e r S h i p m e n t s _ a c _ O r d e r I t e m s _ F K 1 ]   F O R E I G N   K E Y ( [ O r d e r S h i p m e n t I d ] )  
 R E F E R E N C E S   [ d b o ] . [ a c _ O r d e r S h i p m e n t s ]   ( [ O r d e r S h i p m e n t I d ] )  
 G O  
 A L T E R   T A B L E   [ d b o ] . [ a c _ O r d e r I t e m s ]   C H E C K   C O N S T R A I N T   [ a c _ O r d e r S h i p m e n t s _ a c _ O r d e r I t e m s _ F K 1 ]  
 G O  
 / * * * * * *   O b j e c t :     F o r e i g n K e y   [ a c _ P r o d u c t s _ a c _ O r d e r I t e m s _ F K 1 ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 4   * * * * * * /  
 A L T E R   T A B L E   [ d b o ] . [ a c _ O r d e r I t e m s ]     W I T H   C H E C K   A D D     C O N S T R A I N T   [ a c _ P r o d u c t s _ a c _ O r d e r I t e m s _ F K 1 ]   F O R E I G N   K E Y ( [ P r o d u c t I d ] )  
 R E F E R E N C E S   [ d b o ] . [ a c _ P r o d u c t s ]   ( [ P r o d u c t I d ] )  
 O N   D E L E T E   S E T   N U L L  
 G O  
 A L T E R   T A B L E   [ d b o ] . [ a c _ O r d e r I t e m s ]   C H E C K   C O N S T R A I N T   [ a c _ P r o d u c t s _ a c _ O r d e r I t e m s _ F K 1 ]  
 G O  
 / * * * * * *   O b j e c t :     F o r e i g n K e y   [ a c _ T a x C o d e s _ a c _ O r d e r I t e m s _ F K 1 ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 4   * * * * * * /  
 A L T E R   T A B L E   [ d b o ] . [ a c _ O r d e r I t e m s ]     W I T H   C H E C K   A D D     C O N S T R A I N T   [ a c _ T a x C o d e s _ a c _ O r d e r I t e m s _ F K 1 ]   F O R E I G N   K E Y ( [ T a x C o d e I d ] )  
 R E F E R E N C E S   [ d b o ] . [ a c _ T a x C o d e s ]   ( [ T a x C o d e I d ] )  
 O N   D E L E T E   S E T   N U L L  
 G O  
 A L T E R   T A B L E   [ d b o ] . [ a c _ O r d e r I t e m s ]   C H E C K   C O N S T R A I N T   [ a c _ T a x C o d e s _ a c _ O r d e r I t e m s _ F K 1 ]  
 G O  
 / * * * * * *   O b j e c t :     F o r e i g n K e y   [ a c _ W i s h l i s t I t e m s _ a c _ O r d e r I t e m s _ F K 1 ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 4   * * * * * * /  
 A L T E R   T A B L E   [ d b o ] . [ a c _ O r d e r I t e m s ]     W I T H   C H E C K   A D D     C O N S T R A I N T   [ a c _ W i s h l i s t I t e m s _ a c _ O r d e r I t e m s _ F K 1 ]   F O R E I G N   K E Y ( [ W i s h l i s t I t e m I d ] )  
 R E F E R E N C E S   [ d b o ] . [ a c _ W i s h l i s t I t e m s ]   ( [ W i s h l i s t I t e m I d ] )  
 O N   D E L E T E   S E T   N U L L  
 G O  
 A L T E R   T A B L E   [ d b o ] . [ a c _ O r d e r I t e m s ]   C H E C K   C O N S T R A I N T   [ a c _ W i s h l i s t I t e m s _ a c _ O r d e r I t e m s _ F K 1 ]  
 G O  
 / * * * * * *   O b j e c t :     F o r e i g n K e y   [ a c _ W r a p S t y l e s _ a c _ O r d e r I t e m s _ F K 1 ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 4   * * * * * * /  
 A L T E R   T A B L E   [ d b o ] . [ a c _ O r d e r I t e m s ]     W I T H   C H E C K   A D D     C O N S T R A I N T   [ a c _ W r a p S t y l e s _ a c _ O r d e r I t e m s _ F K 1 ]   F O R E I G N   K E Y ( [ W r a p S t y l e I d ] )  
 R E F E R E N C E S   [ d b o ] . [ a c _ W r a p S t y l e s ]   ( [ W r a p S t y l e I d ] )  
 O N   D E L E T E   S E T   N U L L  
 G O  
 A L T E R   T A B L E   [ d b o ] . [ a c _ O r d e r I t e m s ]   C H E C K   C O N S T R A I N T   [ a c _ W r a p S t y l e s _ a c _ O r d e r I t e m s _ F K 1 ]  
 G O  
 / * * * * * *   O b j e c t :     F o r e i g n K e y   [ a c _ O r d e r s _ a c _ O r d e r N o t e s _ F K 1 ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 4   * * * * * * /  
 A L T E R   T A B L E   [ d b o ] . [ a c _ O r d e r N o t e s ]     W I T H   C H E C K   A D D     C O N S T R A I N T   [ a c _ O r d e r s _ a c _ O r d e r N o t e s _ F K 1 ]   F O R E I G N   K E Y ( [ O r d e r I d ] )  
 R E F E R E N C E S   [ d b o ] . [ a c _ O r d e r s ]   ( [ O r d e r I d ] )  
 O N   D E L E T E   C A S C A D E  
 G O  
 A L T E R   T A B L E   [ d b o ] . [ a c _ O r d e r N o t e s ]   C H E C K   C O N S T R A I N T   [ a c _ O r d e r s _ a c _ O r d e r N o t e s _ F K 1 ]  
 G O  
 / * * * * * *   O b j e c t :     F o r e i g n K e y   [ a c _ U s e r s _ a c _ O r d e r N o t e s _ F K 1 ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 4   * * * * * * /  
 A L T E R   T A B L E   [ d b o ] . [ a c _ O r d e r N o t e s ]     W I T H   C H E C K   A D D     C O N S T R A I N T   [ a c _ U s e r s _ a c _ O r d e r N o t e s _ F K 1 ]   F O R E I G N   K E Y ( [ U s e r I d ] )  
 R E F E R E N C E S   [ d b o ] . [ a c _ U s e r s ]   ( [ U s e r I d ] )  
 O N   D E L E T E   S E T   N U L L  
 G O  
 A L T E R   T A B L E   [ d b o ] . [ a c _ O r d e r N o t e s ]   C H E C K   C O N S T R A I N T   [ a c _ U s e r s _ a c _ O r d e r N o t e s _ F K 1 ]  
 G O  
 / * * * * * *   O b j e c t :     F o r e i g n K e y   [ a c _ A f f i l i a t e s _ a c _ O r d e r s _ F K 1 ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 4   * * * * * * /  
 A L T E R   T A B L E   [ d b o ] . [ a c _ O r d e r s ]     W I T H   C H E C K   A D D     C O N S T R A I N T   [ a c _ A f f i l i a t e s _ a c _ O r d e r s _ F K 1 ]   F O R E I G N   K E Y ( [ A f f i l i a t e I d ] )  
 R E F E R E N C E S   [ d b o ] . [ a c _ A f f i l i a t e s ]   ( [ A f f i l i a t e I d ] )  
 O N   D E L E T E   S E T   N U L L  
 G O  
 A L T E R   T A B L E   [ d b o ] . [ a c _ O r d e r s ]   C H E C K   C O N S T R A I N T   [ a c _ A f f i l i a t e s _ a c _ O r d e r s _ F K 1 ]  
 G O  
 / * * * * * *   O b j e c t :     F o r e i g n K e y   [ a c _ O r d e r S t a t u s e s _ a c _ O r d e r s _ F K 1 ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 4   * * * * * * /  
 A L T E R   T A B L E   [ d b o ] . [ a c _ O r d e r s ]     W I T H   C H E C K   A D D     C O N S T R A I N T   [ a c _ O r d e r S t a t u s e s _ a c _ O r d e r s _ F K 1 ]   F O R E I G N   K E Y ( [ O r d e r S t a t u s I d ] )  
 R E F E R E N C E S   [ d b o ] . [ a c _ O r d e r S t a t u s e s ]   ( [ O r d e r S t a t u s I d ] )  
 G O  
 A L T E R   T A B L E   [ d b o ] . [ a c _ O r d e r s ]   C H E C K   C O N S T R A I N T   [ a c _ O r d e r S t a t u s e s _ a c _ O r d e r s _ F K 1 ]  
 G O  
 / * * * * * *   O b j e c t :     F o r e i g n K e y   [ a c _ S t o r e s _ a c _ O r d e r s _ F K 1 ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 4   * * * * * * /  
 A L T E R   T A B L E   [ d b o ] . [ a c _ O r d e r s ]     W I T H   C H E C K   A D D     C O N S T R A I N T   [ a c _ S t o r e s _ a c _ O r d e r s _ F K 1 ]   F O R E I G N   K E Y ( [ S t o r e I d ] )  
 R E F E R E N C E S   [ d b o ] . [ a c _ S t o r e s ]   ( [ S t o r e I d ] )  
 G O  
 A L T E R   T A B L E   [ d b o ] . [ a c _ O r d e r s ]   C H E C K   C O N S T R A I N T   [ a c _ S t o r e s _ a c _ O r d e r s _ F K 1 ]  
 G O  
 / * * * * * *   O b j e c t :     F o r e i g n K e y   [ a c _ U s e r s _ a c _ O r d e r s _ F K 1 ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 4   * * * * * * /  
 A L T E R   T A B L E   [ d b o ] . [ a c _ O r d e r s ]     W I T H   C H E C K   A D D     C O N S T R A I N T   [ a c _ U s e r s _ a c _ O r d e r s _ F K 1 ]   F O R E I G N   K E Y ( [ U s e r I d ] )  
 R E F E R E N C E S   [ d b o ] . [ a c _ U s e r s ]   ( [ U s e r I d ] )  
 O N   D E L E T E   S E T   N U L L  
 G O  
 A L T E R   T A B L E   [ d b o ] . [ a c _ O r d e r s ]   C H E C K   C O N S T R A I N T   [ a c _ U s e r s _ a c _ O r d e r s _ F K 1 ]  
 G O  
 / * * * * * *   O b j e c t :     F o r e i g n K e y   [ a c _ O r d e r s _ a c _ S h i p m e n t s _ F K 1 ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 4   * * * * * * /  
 A L T E R   T A B L E   [ d b o ] . [ a c _ O r d e r S h i p m e n t s ]     W I T H   C H E C K   A D D     C O N S T R A I N T   [ a c _ O r d e r s _ a c _ S h i p m e n t s _ F K 1 ]   F O R E I G N   K E Y ( [ O r d e r I d ] )  
 R E F E R E N C E S   [ d b o ] . [ a c _ O r d e r s ]   ( [ O r d e r I d ] )  
 O N   D E L E T E   C A S C A D E  
 G O  
 A L T E R   T A B L E   [ d b o ] . [ a c _ O r d e r S h i p m e n t s ]   C H E C K   C O N S T R A I N T   [ a c _ O r d e r s _ a c _ S h i p m e n t s _ F K 1 ]  
 G O  
 / * * * * * *   O b j e c t :     F o r e i g n K e y   [ a c _ S h i p M e t h o d s _ a c _ O r d e r S h i p m e n t s _ F K 1 ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 4   * * * * * * /  
 A L T E R   T A B L E   [ d b o ] . [ a c _ O r d e r S h i p m e n t s ]     W I T H   C H E C K   A D D     C O N S T R A I N T   [ a c _ S h i p M e t h o d s _ a c _ O r d e r S h i p m e n t s _ F K 1 ]   F O R E I G N   K E Y ( [ S h i p M e t h o d I d ] )  
 R E F E R E N C E S   [ d b o ] . [ a c _ S h i p M e t h o d s ]   ( [ S h i p M e t h o d I d ] )  
 O N   D E L E T E   S E T   N U L L  
 G O  
 A L T E R   T A B L E   [ d b o ] . [ a c _ O r d e r S h i p m e n t s ]   C H E C K   C O N S T R A I N T   [ a c _ S h i p M e t h o d s _ a c _ O r d e r S h i p m e n t s _ F K 1 ]  
 G O  
 / * * * * * *   O b j e c t :     F o r e i g n K e y   [ a c _ W a r e h o u s e s _ a c _ S h i p m e n t s _ F K 1 ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 4   * * * * * * /  
 A L T E R   T A B L E   [ d b o ] . [ a c _ O r d e r S h i p m e n t s ]     W I T H   C H E C K   A D D     C O N S T R A I N T   [ a c _ W a r e h o u s e s _ a c _ S h i p m e n t s _ F K 1 ]   F O R E I G N   K E Y ( [ W a r e h o u s e I d ] )  
 R E F E R E N C E S   [ d b o ] . [ a c _ W a r e h o u s e s ]   ( [ W a r e h o u s e I d ] )  
 O N   D E L E T E   S E T   N U L L  
 G O  
 A L T E R   T A B L E   [ d b o ] . [ a c _ O r d e r S h i p m e n t s ]   C H E C K   C O N S T R A I N T   [ a c _ W a r e h o u s e s _ a c _ S h i p m e n t s _ F K 1 ]  
 G O  
 / * * * * * *   O b j e c t :     F o r e i g n K e y   [ a c _ O r d e r S t a t u s e s _ a c _ O r d e r S t a t u s A c t i o n s _ F K 1 ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 4   * * * * * * /  
 A L T E R   T A B L E   [ d b o ] . [ a c _ O r d e r S t a t u s A c t i o n s ]     W I T H   C H E C K   A D D     C O N S T R A I N T   [ a c _ O r d e r S t a t u s e s _ a c _ O r d e r S t a t u s A c t i o n s _ F K 1 ]   F O R E I G N   K E Y ( [ O r d e r S t a t u s I d ] )  
 R E F E R E N C E S   [ d b o ] . [ a c _ O r d e r S t a t u s e s ]   ( [ O r d e r S t a t u s I d ] )  
 O N   D E L E T E   C A S C A D E  
 G O  
 A L T E R   T A B L E   [ d b o ] . [ a c _ O r d e r S t a t u s A c t i o n s ]   C H E C K   C O N S T R A I N T   [ a c _ O r d e r S t a t u s e s _ a c _ O r d e r S t a t u s A c t i o n s _ F K 1 ]  
 G O  
 / * * * * * *   O b j e c t :     F o r e i g n K e y   [ a c _ E m a i l s _ a c _ O r d e r S t a t u s E m a i l s _ F K 1 ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 4   * * * * * * /  
 A L T E R   T A B L E   [ d b o ] . [ a c _ O r d e r S t a t u s E m a i l s ]     W I T H   C H E C K   A D D     C O N S T R A I N T   [ a c _ E m a i l s _ a c _ O r d e r S t a t u s E m a i l s _ F K 1 ]   F O R E I G N   K E Y ( [ E m a i l T e m p l a t e I d ] )  
 R E F E R E N C E S   [ d b o ] . [ a c _ E m a i l T e m p l a t e s ]   ( [ E m a i l T e m p l a t e I d ] )  
 G O  
 A L T E R   T A B L E   [ d b o ] . [ a c _ O r d e r S t a t u s E m a i l s ]   C H E C K   C O N S T R A I N T   [ a c _ E m a i l s _ a c _ O r d e r S t a t u s E m a i l s _ F K 1 ]  
 G O  
 / * * * * * *   O b j e c t :     F o r e i g n K e y   [ a c _ O r d e r S t a t u s e s _ a c _ O r d e r S t a t u s E m a i l s _ F K 1 ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 4   * * * * * * /  
 A L T E R   T A B L E   [ d b o ] . [ a c _ O r d e r S t a t u s E m a i l s ]     W I T H   C H E C K   A D D     C O N S T R A I N T   [ a c _ O r d e r S t a t u s e s _ a c _ O r d e r S t a t u s E m a i l s _ F K 1 ]   F O R E I G N   K E Y ( [ O r d e r S t a t u s I d ] )  
 R E F E R E N C E S   [ d b o ] . [ a c _ O r d e r S t a t u s e s ]   ( [ O r d e r S t a t u s I d ] )  
 G O  
 A L T E R   T A B L E   [ d b o ] . [ a c _ O r d e r S t a t u s E m a i l s ]   C H E C K   C O N S T R A I N T   [ a c _ O r d e r S t a t u s e s _ a c _ O r d e r S t a t u s E m a i l s _ F K 1 ]  
 G O  
 / * * * * * *   O b j e c t :     F o r e i g n K e y   [ a c _ S t o r e s _ a c _ O r d e r S t a t u s e s _ F K 1 ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 4   * * * * * * /  
 A L T E R   T A B L E   [ d b o ] . [ a c _ O r d e r S t a t u s e s ]     W I T H   C H E C K   A D D     C O N S T R A I N T   [ a c _ S t o r e s _ a c _ O r d e r S t a t u s e s _ F K 1 ]   F O R E I G N   K E Y ( [ S t o r e I d ] )  
 R E F E R E N C E S   [ d b o ] . [ a c _ S t o r e s ]   ( [ S t o r e I d ] )  
 G O  
 A L T E R   T A B L E   [ d b o ] . [ a c _ O r d e r S t a t u s e s ]   C H E C K   C O N S T R A I N T   [ a c _ S t o r e s _ a c _ O r d e r S t a t u s e s _ F K 1 ]  
 G O  
 / * * * * * *   O b j e c t :     F o r e i g n K e y   [ a c _ O r d e r S t a t u s e s _ a c _ O r d e r S t a t u s T r i g g e r s _ F K 1 ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 4   * * * * * * /  
 A L T E R   T A B L E   [ d b o ] . [ a c _ O r d e r S t a t u s T r i g g e r s ]     W I T H   C H E C K   A D D     C O N S T R A I N T   [ a c _ O r d e r S t a t u s e s _ a c _ O r d e r S t a t u s T r i g g e r s _ F K 1 ]   F O R E I G N   K E Y ( [ O r d e r S t a t u s I d ] )  
 R E F E R E N C E S   [ d b o ] . [ a c _ O r d e r S t a t u s e s ]   ( [ O r d e r S t a t u s I d ] )  
 O N   D E L E T E   C A S C A D E  
 G O  
 A L T E R   T A B L E   [ d b o ] . [ a c _ O r d e r S t a t u s T r i g g e r s ]   C H E C K   C O N S T R A I N T   [ a c _ O r d e r S t a t u s e s _ a c _ O r d e r S t a t u s T r i g g e r s _ F K 1 ]  
 G O  
 / * * * * * *   O b j e c t :     F o r e i g n K e y   [ a c _ S t o r e s _ a c _ P a g e V i e w s _ F K 1 ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 4   * * * * * * /  
 A L T E R   T A B L E   [ d b o ] . [ a c _ P a g e V i e w s ]     W I T H   C H E C K   A D D     C O N S T R A I N T   [ a c _ S t o r e s _ a c _ P a g e V i e w s _ F K 1 ]   F O R E I G N   K E Y ( [ S t o r e I d ] )  
 R E F E R E N C E S   [ d b o ] . [ a c _ S t o r e s ]   ( [ S t o r e I d ] )  
 G O  
 A L T E R   T A B L E   [ d b o ] . [ a c _ P a g e V i e w s ]   C H E C K   C O N S T R A I N T   [ a c _ S t o r e s _ a c _ P a g e V i e w s _ F K 1 ]  
 G O  
 / * * * * * *   O b j e c t :     F o r e i g n K e y   [ a c _ U s e r s _ a c _ P a g e V i e w s _ F K 1 ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 4   * * * * * * /  
 A L T E R   T A B L E   [ d b o ] . [ a c _ P a g e V i e w s ]     W I T H   N O C H E C K   A D D     C O N S T R A I N T   [ a c _ U s e r s _ a c _ P a g e V i e w s _ F K 1 ]   F O R E I G N   K E Y ( [ U s e r I d ] )  
 R E F E R E N C E S   [ d b o ] . [ a c _ U s e r s ]   ( [ U s e r I d ] )  
 G O  
 A L T E R   T A B L E   [ d b o ] . [ a c _ P a g e V i e w s ]   N O C H E C K   C O N S T R A I N T   [ a c _ U s e r s _ a c _ P a g e V i e w s _ F K 1 ]  
 G O  
 / * * * * * *   O b j e c t :     F o r e i g n K e y   [ a c _ S t o r e s _ a c _ P a y m e n t G a t e w a y s _ F K 1 ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 4   * * * * * * /  
 A L T E R   T A B L E   [ d b o ] . [ a c _ P a y m e n t G a t e w a y s ]     W I T H   C H E C K   A D D     C O N S T R A I N T   [ a c _ S t o r e s _ a c _ P a y m e n t G a t e w a y s _ F K 1 ]   F O R E I G N   K E Y ( [ S t o r e I d ] )  
 R E F E R E N C E S   [ d b o ] . [ a c _ S t o r e s ]   ( [ S t o r e I d ] )  
 G O  
 A L T E R   T A B L E   [ d b o ] . [ a c _ P a y m e n t G a t e w a y s ]   C H E C K   C O N S T R A I N T   [ a c _ S t o r e s _ a c _ P a y m e n t G a t e w a y s _ F K 1 ]  
 G O  
 / * * * * * *   O b j e c t :     F o r e i g n K e y   [ a c _ G r o u p s _ a c _ P a y m e n t M e t h o d G r o u p s _ F K 1 ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 4   * * * * * * /  
 A L T E R   T A B L E   [ d b o ] . [ a c _ P a y m e n t M e t h o d G r o u p s ]     W I T H   C H E C K   A D D     C O N S T R A I N T   [ a c _ G r o u p s _ a c _ P a y m e n t M e t h o d G r o u p s _ F K 1 ]   F O R E I G N   K E Y ( [ G r o u p I d ] )  
 R E F E R E N C E S   [ d b o ] . [ a c _ G r o u p s ]   ( [ G r o u p I d ] )  
 O N   D E L E T E   C A S C A D E  
 G O  
 A L T E R   T A B L E   [ d b o ] . [ a c _ P a y m e n t M e t h o d G r o u p s ]   C H E C K   C O N S T R A I N T   [ a c _ G r o u p s _ a c _ P a y m e n t M e t h o d G r o u p s _ F K 1 ]  
 G O  
 / * * * * * *   O b j e c t :     F o r e i g n K e y   [ a c _ P a y m e n t M e t h o d s _ a c _ P a y m e n t M e t h o d s G r o u p s _ F K 1 ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 4   * * * * * * /  
 A L T E R   T A B L E   [ d b o ] . [ a c _ P a y m e n t M e t h o d G r o u p s ]     W I T H   C H E C K   A D D     C O N S T R A I N T   [ a c _ P a y m e n t M e t h o d s _ a c _ P a y m e n t M e t h o d s G r o u p s _ F K 1 ]   F O R E I G N   K E Y ( [ P a y m e n t M e t h o d I d ] )  
 R E F E R E N C E S   [ d b o ] . [ a c _ P a y m e n t M e t h o d s ]   ( [ P a y m e n t M e t h o d I d ] )  
 O N   D E L E T E   C A S C A D E  
 G O  
 A L T E R   T A B L E   [ d b o ] . [ a c _ P a y m e n t M e t h o d G r o u p s ]   C H E C K   C O N S T R A I N T   [ a c _ P a y m e n t M e t h o d s _ a c _ P a y m e n t M e t h o d s G r o u p s _ F K 1 ]  
 G O  
 / * * * * * *   O b j e c t :     F o r e i g n K e y   [ a c _ P a y m e n t G a t e w a y s _ a c _ P a y m e n t M e t h o d s _ F K 1 ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 4   * * * * * * /  
 A L T E R   T A B L E   [ d b o ] . [ a c _ P a y m e n t M e t h o d s ]     W I T H   C H E C K   A D D     C O N S T R A I N T   [ a c _ P a y m e n t G a t e w a y s _ a c _ P a y m e n t M e t h o d s _ F K 1 ]   F O R E I G N   K E Y ( [ P a y m e n t G a t e w a y I d ] )  
 R E F E R E N C E S   [ d b o ] . [ a c _ P a y m e n t G a t e w a y s ]   ( [ P a y m e n t G a t e w a y I d ] )  
 O N   D E L E T E   S E T   N U L L  
 G O  
 A L T E R   T A B L E   [ d b o ] . [ a c _ P a y m e n t M e t h o d s ]   C H E C K   C O N S T R A I N T   [ a c _ P a y m e n t G a t e w a y s _ a c _ P a y m e n t M e t h o d s _ F K 1 ]  
 G O  
 / * * * * * *   O b j e c t :     F o r e i g n K e y   [ a c _ S t o r e s _ a c _ P a y m e n t M e t h o d s _ F K 1 ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 4   * * * * * * /  
 A L T E R   T A B L E   [ d b o ] . [ a c _ P a y m e n t M e t h o d s ]     W I T H   C H E C K   A D D     C O N S T R A I N T   [ a c _ S t o r e s _ a c _ P a y m e n t M e t h o d s _ F K 1 ]   F O R E I G N   K E Y ( [ S t o r e I d ] )  
 R E F E R E N C E S   [ d b o ] . [ a c _ S t o r e s ]   ( [ S t o r e I d ] )  
 G O  
 A L T E R   T A B L E   [ d b o ] . [ a c _ P a y m e n t M e t h o d s ]   C H E C K   C O N S T R A I N T   [ a c _ S t o r e s _ a c _ P a y m e n t M e t h o d s _ F K 1 ]  
 G O  
 / * * * * * *   O b j e c t :     F o r e i g n K e y   [ a c _ O r d e r s _ a c _ P a y m e n t s _ F K 1 ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 4   * * * * * * /  
 A L T E R   T A B L E   [ d b o ] . [ a c _ P a y m e n t s ]     W I T H   C H E C K   A D D     C O N S T R A I N T   [ a c _ O r d e r s _ a c _ P a y m e n t s _ F K 1 ]   F O R E I G N   K E Y ( [ O r d e r I d ] )  
 R E F E R E N C E S   [ d b o ] . [ a c _ O r d e r s ]   ( [ O r d e r I d ] )  
 O N   D E L E T E   C A S C A D E  
 G O  
 A L T E R   T A B L E   [ d b o ] . [ a c _ P a y m e n t s ]   C H E C K   C O N S T R A I N T   [ a c _ O r d e r s _ a c _ P a y m e n t s _ F K 1 ]  
 G O  
 / * * * * * *   O b j e c t :     F o r e i g n K e y   [ a c _ P a y m e n t M e t h o d s _ a c _ P a y m e n t s _ F K 1 ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 4   * * * * * * /  
 A L T E R   T A B L E   [ d b o ] . [ a c _ P a y m e n t s ]     W I T H   C H E C K   A D D     C O N S T R A I N T   [ a c _ P a y m e n t M e t h o d s _ a c _ P a y m e n t s _ F K 1 ]   F O R E I G N   K E Y ( [ P a y m e n t M e t h o d I d ] )  
 R E F E R E N C E S   [ d b o ] . [ a c _ P a y m e n t M e t h o d s ]   ( [ P a y m e n t M e t h o d I d ] )  
 O N   D E L E T E   S E T   N U L L  
 G O  
 A L T E R   T A B L E   [ d b o ] . [ a c _ P a y m e n t s ]   C H E C K   C O N S T R A I N T   [ a c _ P a y m e n t M e t h o d s _ a c _ P a y m e n t s _ F K 1 ]  
 G O  
 / * * * * * *   O b j e c t :     F o r e i g n K e y   [ a c _ S u b s c r i p t i o n s _ a c _ P a y m e n t s _ F K 1 ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 4   * * * * * * /  
 A L T E R   T A B L E   [ d b o ] . [ a c _ P a y m e n t s ]     W I T H   C H E C K   A D D     C O N S T R A I N T   [ a c _ S u b s c r i p t i o n s _ a c _ P a y m e n t s _ F K 1 ]   F O R E I G N   K E Y ( [ S u b s c r i p t i o n I d ] )  
 R E F E R E N C E S   [ d b o ] . [ a c _ S u b s c r i p t i o n s ]   ( [ S u b s c r i p t i o n I d ] )  
 O N   D E L E T E   S E T   N U L L  
 G O  
 A L T E R   T A B L E   [ d b o ] . [ a c _ P a y m e n t s ]   C H E C K   C O N S T R A I N T   [ a c _ S u b s c r i p t i o n s _ a c _ P a y m e n t s _ F K 1 ]  
 G O  
 / * * * * * *   O b j e c t :     F o r e i g n K e y   [ a c _ S t o r e s _ a c _ P a t h s _ F K 1 ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 4   * * * * * * /  
 A L T E R   T A B L E   [ d b o ] . [ a c _ P e r s o n a l i z a t i o n P a t h s ]     W I T H   C H E C K   A D D     C O N S T R A I N T   [ a c _ S t o r e s _ a c _ P a t h s _ F K 1 ]   F O R E I G N   K E Y ( [ S t o r e I d ] )  
 R E F E R E N C E S   [ d b o ] . [ a c _ S t o r e s ]   ( [ S t o r e I d ] )  
 G O  
 A L T E R   T A B L E   [ d b o ] . [ a c _ P e r s o n a l i z a t i o n P a t h s ]   C H E C K   C O N S T R A I N T   [ a c _ S t o r e s _ a c _ P a t h s _ F K 1 ]  
 G O  
 / * * * * * *   O b j e c t :     F o r e i g n K e y   [ a c _ P r o d u c t s _ a c _ P r o d u c t A s s e t s _ F K 1 ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 4   * * * * * * /  
 A L T E R   T A B L E   [ d b o ] . [ a c _ P r o d u c t A s s e t s ]     W I T H   C H E C K   A D D     C O N S T R A I N T   [ a c _ P r o d u c t s _ a c _ P r o d u c t A s s e t s _ F K 1 ]   F O R E I G N   K E Y ( [ P r o d u c t I d ] )  
 R E F E R E N C E S   [ d b o ] . [ a c _ P r o d u c t s ]   ( [ P r o d u c t I d ] )  
 O N   D E L E T E   C A S C A D E  
 G O  
 A L T E R   T A B L E   [ d b o ] . [ a c _ P r o d u c t A s s e t s ]   C H E C K   C O N S T R A I N T   [ a c _ P r o d u c t s _ a c _ P r o d u c t A s s e t s _ F K 1 ]  
 G O  
 / * * * * * *   O b j e c t :     F o r e i g n K e y   [ a c _ P r o d u c t s _ a c _ P r o d u c t C u s t o m F i e l d s _ F K 1 ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 4   * * * * * * /  
 A L T E R   T A B L E   [ d b o ] . [ a c _ P r o d u c t C u s t o m F i e l d s ]     W I T H   C H E C K   A D D     C O N S T R A I N T   [ a c _ P r o d u c t s _ a c _ P r o d u c t C u s t o m F i e l d s _ F K 1 ]   F O R E I G N   K E Y ( [ P r o d u c t I d ] )  
 R E F E R E N C E S   [ d b o ] . [ a c _ P r o d u c t s ]   ( [ P r o d u c t I d ] )  
 O N   D E L E T E   C A S C A D E  
 G O  
 A L T E R   T A B L E   [ d b o ] . [ a c _ P r o d u c t C u s t o m F i e l d s ]   C H E C K   C O N S T R A I N T   [ a c _ P r o d u c t s _ a c _ P r o d u c t C u s t o m F i e l d s _ F K 1 ]  
 G O  
 / * * * * * *   O b j e c t :     F o r e i g n K e y   [ a c _ D i g i t a l G o o d s _ a c _ P r o d u c t D i g i t a l G o o d s _ F K 1 ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 4   * * * * * * /  
 A L T E R   T A B L E   [ d b o ] . [ a c _ P r o d u c t D i g i t a l G o o d s ]     W I T H   C H E C K   A D D     C O N S T R A I N T   [ a c _ D i g i t a l G o o d s _ a c _ P r o d u c t D i g i t a l G o o d s _ F K 1 ]   F O R E I G N   K E Y ( [ D i g i t a l G o o d I d ] )  
 R E F E R E N C E S   [ d b o ] . [ a c _ D i g i t a l G o o d s ]   ( [ D i g i t a l G o o d I d ] )  
 O N   D E L E T E   C A S C A D E  
 G O  
 A L T E R   T A B L E   [ d b o ] . [ a c _ P r o d u c t D i g i t a l G o o d s ]   C H E C K   C O N S T R A I N T   [ a c _ D i g i t a l G o o d s _ a c _ P r o d u c t D i g i t a l G o o d s _ F K 1 ]  
 G O  
 / * * * * * *   O b j e c t :     F o r e i g n K e y   [ a c _ P r o d u c t s _ a c _ D i g i t a l G o o d s _ F K 1 ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 4   * * * * * * /  
 A L T E R   T A B L E   [ d b o ] . [ a c _ P r o d u c t D i g i t a l G o o d s ]     W I T H   C H E C K   A D D     C O N S T R A I N T   [ a c _ P r o d u c t s _ a c _ D i g i t a l G o o d s _ F K 1 ]   F O R E I G N   K E Y ( [ P r o d u c t I d ] )  
 R E F E R E N C E S   [ d b o ] . [ a c _ P r o d u c t s ]   ( [ P r o d u c t I d ] )  
 O N   D E L E T E   C A S C A D E  
 G O  
 A L T E R   T A B L E   [ d b o ] . [ a c _ P r o d u c t D i g i t a l G o o d s ]   C H E C K   C O N S T R A I N T   [ a c _ P r o d u c t s _ a c _ D i g i t a l G o o d s _ F K 1 ]  
 G O  
 / * * * * * *   O b j e c t :     F o r e i g n K e y   [ a c _ P r o d u c t s _ a c _ P r o d u c t I m a g e s _ F K 1 ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 4   * * * * * * /  
 A L T E R   T A B L E   [ d b o ] . [ a c _ P r o d u c t I m a g e s ]     W I T H   C H E C K   A D D     C O N S T R A I N T   [ a c _ P r o d u c t s _ a c _ P r o d u c t I m a g e s _ F K 1 ]   F O R E I G N   K E Y ( [ P r o d u c t I d ] )  
 R E F E R E N C E S   [ d b o ] . [ a c _ P r o d u c t s ]   ( [ P r o d u c t I d ] )  
 O N   D E L E T E   C A S C A D E  
 G O  
 A L T E R   T A B L E   [ d b o ] . [ a c _ P r o d u c t I m a g e s ]   C H E C K   C O N S T R A I N T   [ a c _ P r o d u c t s _ a c _ P r o d u c t I m a g e s _ F K 1 ]  
 G O  
 / * * * * * *   O b j e c t :     F o r e i g n K e y   [ a c _ K i t C o m p o n e n t s _ a c _ P r o d u c t K i t C o m p o n e n t s _ F K 1 ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 4   * * * * * * /  
 A L T E R   T A B L E   [ d b o ] . [ a c _ P r o d u c t K i t C o m p o n e n t s ]     W I T H   C H E C K   A D D     C O N S T R A I N T   [ a c _ K i t C o m p o n e n t s _ a c _ P r o d u c t K i t C o m p o n e n t s _ F K 1 ]   F O R E I G N   K E Y ( [ K i t C o m p o n e n t I d ] )  
 R E F E R E N C E S   [ d b o ] . [ a c _ K i t C o m p o n e n t s ]   ( [ K i t C o m p o n e n t I d ] )  
 O N   D E L E T E   C A S C A D E  
 G O  
 A L T E R   T A B L E   [ d b o ] . [ a c _ P r o d u c t K i t C o m p o n e n t s ]   C H E C K   C O N S T R A I N T   [ a c _ K i t C o m p o n e n t s _ a c _ P r o d u c t K i t C o m p o n e n t s _ F K 1 ]  
 G O  
 / * * * * * *   O b j e c t :     F o r e i g n K e y   [ a c _ P r o d u c t s _ a c _ P r o d u c t K i t C o m p o n e n t s _ F K 1 ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 4   * * * * * * /  
 A L T E R   T A B L E   [ d b o ] . [ a c _ P r o d u c t K i t C o m p o n e n t s ]     W I T H   C H E C K   A D D     C O N S T R A I N T   [ a c _ P r o d u c t s _ a c _ P r o d u c t K i t C o m p o n e n t s _ F K 1 ]   F O R E I G N   K E Y ( [ P r o d u c t I d ] )  
 R E F E R E N C E S   [ d b o ] . [ a c _ P r o d u c t s ]   ( [ P r o d u c t I d ] )  
 O N   D E L E T E   C A S C A D E  
 G O  
 A L T E R   T A B L E   [ d b o ] . [ a c _ P r o d u c t K i t C o m p o n e n t s ]   C H E C K   C O N S T R A I N T   [ a c _ P r o d u c t s _ a c _ P r o d u c t K i t C o m p o n e n t s _ F K 1 ]  
 G O  
 / * * * * * *   O b j e c t :     F o r e i g n K e y   [ a c _ O p t i o n s _ a c _ P r o d u c t O p t i o n s _ F K 1 ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 4   * * * * * * /  
 A L T E R   T A B L E   [ d b o ] . [ a c _ P r o d u c t O p t i o n s ]     W I T H   C H E C K   A D D     C O N S T R A I N T   [ a c _ O p t i o n s _ a c _ P r o d u c t O p t i o n s _ F K 1 ]   F O R E I G N   K E Y ( [ O p t i o n I d ] )  
 R E F E R E N C E S   [ d b o ] . [ a c _ O p t i o n s ]   ( [ O p t i o n I d ] )  
 O N   D E L E T E   C A S C A D E  
 G O  
 A L T E R   T A B L E   [ d b o ] . [ a c _ P r o d u c t O p t i o n s ]   C H E C K   C O N S T R A I N T   [ a c _ O p t i o n s _ a c _ P r o d u c t O p t i o n s _ F K 1 ]  
 G O  
 / * * * * * *   O b j e c t :     F o r e i g n K e y   [ a c _ P r o d u c t s _ a c _ P r o d u c t O p t i o n s _ F K 1 ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 4   * * * * * * /  
 A L T E R   T A B L E   [ d b o ] . [ a c _ P r o d u c t O p t i o n s ]     W I T H   C H E C K   A D D     C O N S T R A I N T   [ a c _ P r o d u c t s _ a c _ P r o d u c t O p t i o n s _ F K 1 ]   F O R E I G N   K E Y ( [ P r o d u c t I d ] )  
 R E F E R E N C E S   [ d b o ] . [ a c _ P r o d u c t s ]   ( [ P r o d u c t I d ] )  
 O N   D E L E T E   C A S C A D E  
 G O  
 A L T E R   T A B L E   [ d b o ] . [ a c _ P r o d u c t O p t i o n s ]   C H E C K   C O N S T R A I N T   [ a c _ P r o d u c t s _ a c _ P r o d u c t O p t i o n s _ F K 1 ]  
 G O  
 / * * * * * *   O b j e c t :     F o r e i g n K e y   [ a c _ P r o d u c t s _ a c _ P r o d u c t P r o d u c t T e m p l a t e s _ F K 1 ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 4   * * * * * * /  
 A L T E R   T A B L E   [ d b o ] . [ a c _ P r o d u c t P r o d u c t T e m p l a t e s ]     W I T H   C H E C K   A D D     C O N S T R A I N T   [ a c _ P r o d u c t s _ a c _ P r o d u c t P r o d u c t T e m p l a t e s _ F K 1 ]   F O R E I G N   K E Y ( [ P r o d u c t I d ] )  
 R E F E R E N C E S   [ d b o ] . [ a c _ P r o d u c t s ]   ( [ P r o d u c t I d ] )  
 O N   D E L E T E   C A S C A D E  
 G O  
 A L T E R   T A B L E   [ d b o ] . [ a c _ P r o d u c t P r o d u c t T e m p l a t e s ]   C H E C K   C O N S T R A I N T   [ a c _ P r o d u c t s _ a c _ P r o d u c t P r o d u c t T e m p l a t e s _ F K 1 ]  
 G O  
 / * * * * * *   O b j e c t :     F o r e i g n K e y   [ a c _ P r o d u c t T e m p l a t e s _ a c _ P r o d u c t P r o d u c t T e m p l a t e s _ F K 1 ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 4   * * * * * * /  
 A L T E R   T A B L E   [ d b o ] . [ a c _ P r o d u c t P r o d u c t T e m p l a t e s ]     W I T H   C H E C K   A D D     C O N S T R A I N T   [ a c _ P r o d u c t T e m p l a t e s _ a c _ P r o d u c t P r o d u c t T e m p l a t e s _ F K 1 ]   F O R E I G N   K E Y ( [ P r o d u c t T e m p l a t e I d ] )  
 R E F E R E N C E S   [ d b o ] . [ a c _ P r o d u c t T e m p l a t e s ]   ( [ P r o d u c t T e m p l a t e I d ] )  
 O N   D E L E T E   C A S C A D E  
 G O  
 A L T E R   T A B L E   [ d b o ] . [ a c _ P r o d u c t P r o d u c t T e m p l a t e s ]   C H E C K   C O N S T R A I N T   [ a c _ P r o d u c t T e m p l a t e s _ a c _ P r o d u c t P r o d u c t T e m p l a t e s _ F K 1 ]  
 G O  
 / * * * * * *   O b j e c t :     F o r e i g n K e y   [ a c _ P r o d u c t s _ a c _ P r o d u c t R e v i e w s _ F K 1 ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 4   * * * * * * /  
 A L T E R   T A B L E   [ d b o ] . [ a c _ P r o d u c t R e v i e w s ]     W I T H   C H E C K   A D D     C O N S T R A I N T   [ a c _ P r o d u c t s _ a c _ P r o d u c t R e v i e w s _ F K 1 ]   F O R E I G N   K E Y ( [ P r o d u c t I d ] )  
 R E F E R E N C E S   [ d b o ] . [ a c _ P r o d u c t s ]   ( [ P r o d u c t I d ] )  
 G O  
 A L T E R   T A B L E   [ d b o ] . [ a c _ P r o d u c t R e v i e w s ]   C H E C K   C O N S T R A I N T   [ a c _ P r o d u c t s _ a c _ P r o d u c t R e v i e w s _ F K 1 ]  
 G O  
 / * * * * * *   O b j e c t :     F o r e i g n K e y   [ a c _ R e v i e w e r P r o f i l e s _ a c _ P r o d u c t R e v i e w s _ F K 1 ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 4   * * * * * * /  
 A L T E R   T A B L E   [ d b o ] . [ a c _ P r o d u c t R e v i e w s ]     W I T H   C H E C K   A D D     C O N S T R A I N T   [ a c _ R e v i e w e r P r o f i l e s _ a c _ P r o d u c t R e v i e w s _ F K 1 ]   F O R E I G N   K E Y ( [ R e v i e w e r P r o f i l e I d ] )  
 R E F E R E N C E S   [ d b o ] . [ a c _ R e v i e w e r P r o f i l e s ]   ( [ R e v i e w e r P r o f i l e I d ] )  
 O N   D E L E T E   C A S C A D E  
 G O  
 A L T E R   T A B L E   [ d b o ] . [ a c _ P r o d u c t R e v i e w s ]   C H E C K   C O N S T R A I N T   [ a c _ R e v i e w e r P r o f i l e s _ a c _ P r o d u c t R e v i e w s _ F K 1 ]  
 G O  
 / * * * * * *   O b j e c t :     F o r e i g n K e y   [ a c _ M a n u f a c t u r e r s _ a c _ P r o d u c t s _ F K 1 ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 4   * * * * * * /  
 A L T E R   T A B L E   [ d b o ] . [ a c _ P r o d u c t s ]     W I T H   C H E C K   A D D     C O N S T R A I N T   [ a c _ M a n u f a c t u r e r s _ a c _ P r o d u c t s _ F K 1 ]   F O R E I G N   K E Y ( [ M a n u f a c t u r e r I d ] )  
 R E F E R E N C E S   [ d b o ] . [ a c _ M a n u f a c t u r e r s ]   ( [ M a n u f a c t u r e r I d ] )  
 O N   D E L E T E   S E T   N U L L  
 G O  
 A L T E R   T A B L E   [ d b o ] . [ a c _ P r o d u c t s ]   C H E C K   C O N S T R A I N T   [ a c _ M a n u f a c t u r e r s _ a c _ P r o d u c t s _ F K 1 ]  
 G O  
 / * * * * * *   O b j e c t :     F o r e i g n K e y   [ a c _ S t o r e s _ a c _ P r o d u c t s _ F K 1 ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 4   * * * * * * /  
 A L T E R   T A B L E   [ d b o ] . [ a c _ P r o d u c t s ]     W I T H   C H E C K   A D D     C O N S T R A I N T   [ a c _ S t o r e s _ a c _ P r o d u c t s _ F K 1 ]   F O R E I G N   K E Y ( [ S t o r e I d ] )  
 R E F E R E N C E S   [ d b o ] . [ a c _ S t o r e s ]   ( [ S t o r e I d ] )  
 G O  
 A L T E R   T A B L E   [ d b o ] . [ a c _ P r o d u c t s ]   C H E C K   C O N S T R A I N T   [ a c _ S t o r e s _ a c _ P r o d u c t s _ F K 1 ]  
 G O  
 / * * * * * *   O b j e c t :     F o r e i g n K e y   [ a c _ T a x C o d e s _ a c _ P r o d u c t s _ F K 1 ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 4   * * * * * * /  
 A L T E R   T A B L E   [ d b o ] . [ a c _ P r o d u c t s ]     W I T H   C H E C K   A D D     C O N S T R A I N T   [ a c _ T a x C o d e s _ a c _ P r o d u c t s _ F K 1 ]   F O R E I G N   K E Y ( [ T a x C o d e I d ] )  
 R E F E R E N C E S   [ d b o ] . [ a c _ T a x C o d e s ]   ( [ T a x C o d e I d ] )  
 O N   D E L E T E   S E T   N U L L  
 G O  
 A L T E R   T A B L E   [ d b o ] . [ a c _ P r o d u c t s ]   C H E C K   C O N S T R A I N T   [ a c _ T a x C o d e s _ a c _ P r o d u c t s _ F K 1 ]  
 G O  
 / * * * * * *   O b j e c t :     F o r e i g n K e y   [ a c _ V e n d o r s _ a c _ P r o d u c t s _ F K 1 ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 4   * * * * * * /  
 A L T E R   T A B L E   [ d b o ] . [ a c _ P r o d u c t s ]     W I T H   C H E C K   A D D     C O N S T R A I N T   [ a c _ V e n d o r s _ a c _ P r o d u c t s _ F K 1 ]   F O R E I G N   K E Y ( [ V e n d o r I d ] )  
 R E F E R E N C E S   [ d b o ] . [ a c _ V e n d o r s ]   ( [ V e n d o r I d ] )  
 G O  
 A L T E R   T A B L E   [ d b o ] . [ a c _ P r o d u c t s ]   C H E C K   C O N S T R A I N T   [ a c _ V e n d o r s _ a c _ P r o d u c t s _ F K 1 ]  
 G O  
 / * * * * * *   O b j e c t :     F o r e i g n K e y   [ a c _ W a r e h o u s e s _ a c _ P r o d u c t s _ F K 1 ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 4   * * * * * * /  
 A L T E R   T A B L E   [ d b o ] . [ a c _ P r o d u c t s ]     W I T H   C H E C K   A D D     C O N S T R A I N T   [ a c _ W a r e h o u s e s _ a c _ P r o d u c t s _ F K 1 ]   F O R E I G N   K E Y ( [ W a r e h o u s e I d ] )  
 R E F E R E N C E S   [ d b o ] . [ a c _ W a r e h o u s e s ]   ( [ W a r e h o u s e I d ] )  
 G O  
 A L T E R   T A B L E   [ d b o ] . [ a c _ P r o d u c t s ]   C H E C K   C O N S T R A I N T   [ a c _ W a r e h o u s e s _ a c _ P r o d u c t s _ F K 1 ]  
 G O  
 / * * * * * *   O b j e c t :     F o r e i g n K e y   [ a c _ W r a p G r o u p s _ a c _ P r o d u c t s _ F K 1 ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 4   * * * * * * /  
 A L T E R   T A B L E   [ d b o ] . [ a c _ P r o d u c t s ]     W I T H   C H E C K   A D D     C O N S T R A I N T   [ a c _ W r a p G r o u p s _ a c _ P r o d u c t s _ F K 1 ]   F O R E I G N   K E Y ( [ W r a p G r o u p I d ] )  
 R E F E R E N C E S   [ d b o ] . [ a c _ W r a p G r o u p s ]   ( [ W r a p G r o u p I d ] )  
 O N   D E L E T E   S E T   N U L L  
 G O  
 A L T E R   T A B L E   [ d b o ] . [ a c _ P r o d u c t s ]   C H E C K   C O N S T R A I N T   [ a c _ W r a p G r o u p s _ a c _ P r o d u c t s _ F K 1 ]  
 G O  
 / * * * * * *   O b j e c t :     F o r e i g n K e y   [ a c _ I n p u t F i e l d s _ a c _ P r o d u c t T e m p l a t e F i e l d s _ F K 1 ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 4   * * * * * * /  
 A L T E R   T A B L E   [ d b o ] . [ a c _ P r o d u c t T e m p l a t e F i e l d s ]     W I T H   C H E C K   A D D     C O N S T R A I N T   [ a c _ I n p u t F i e l d s _ a c _ P r o d u c t T e m p l a t e F i e l d s _ F K 1 ]   F O R E I G N   K E Y ( [ I n p u t F i e l d I d ] )  
 R E F E R E N C E S   [ d b o ] . [ a c _ I n p u t F i e l d s ]   ( [ I n p u t F i e l d I d ] )  
 O N   D E L E T E   C A S C A D E  
 G O  
 A L T E R   T A B L E   [ d b o ] . [ a c _ P r o d u c t T e m p l a t e F i e l d s ]   C H E C K   C O N S T R A I N T   [ a c _ I n p u t F i e l d s _ a c _ P r o d u c t T e m p l a t e F i e l d s _ F K 1 ]  
 G O  
 / * * * * * *   O b j e c t :     F o r e i g n K e y   [ a c _ P r o d u c t s _ a c _ P r o d u c t T e m p l a t e F i e l d s _ F K 1 ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 4   * * * * * * /  
 A L T E R   T A B L E   [ d b o ] . [ a c _ P r o d u c t T e m p l a t e F i e l d s ]     W I T H   C H E C K   A D D     C O N S T R A I N T   [ a c _ P r o d u c t s _ a c _ P r o d u c t T e m p l a t e F i e l d s _ F K 1 ]   F O R E I G N   K E Y ( [ P r o d u c t I d ] )  
 R E F E R E N C E S   [ d b o ] . [ a c _ P r o d u c t s ]   ( [ P r o d u c t I d ] )  
 O N   D E L E T E   C A S C A D E  
 G O  
 A L T E R   T A B L E   [ d b o ] . [ a c _ P r o d u c t T e m p l a t e F i e l d s ]   C H E C K   C O N S T R A I N T   [ a c _ P r o d u c t s _ a c _ P r o d u c t T e m p l a t e F i e l d s _ F K 1 ]  
 G O  
 / * * * * * *   O b j e c t :     F o r e i g n K e y   [ a c _ S t o r e s _ a c _ P r o d u c t T e m p l a t e s _ F K 1 ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 4   * * * * * * /  
 A L T E R   T A B L E   [ d b o ] . [ a c _ P r o d u c t T e m p l a t e s ]     W I T H   C H E C K   A D D     C O N S T R A I N T   [ a c _ S t o r e s _ a c _ P r o d u c t T e m p l a t e s _ F K 1 ]   F O R E I G N   K E Y ( [ S t o r e I d ] )  
 R E F E R E N C E S   [ d b o ] . [ a c _ S t o r e s ]   ( [ S t o r e I d ] )  
 G O  
 A L T E R   T A B L E   [ d b o ] . [ a c _ P r o d u c t T e m p l a t e s ]   C H E C K   C O N S T R A I N T   [ a c _ S t o r e s _ a c _ P r o d u c t T e m p l a t e s _ F K 1 ]  
 G O  
 / * * * * * *   O b j e c t :     F o r e i g n K e y   [ a c _ P r o d u c t s _ a c _ P r o d u c t V a r i a t i o n s _ F K 1 ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 4   * * * * * * /  
 A L T E R   T A B L E   [ d b o ] . [ a c _ P r o d u c t V a r i a n t s ]     W I T H   C H E C K   A D D     C O N S T R A I N T   [ a c _ P r o d u c t s _ a c _ P r o d u c t V a r i a t i o n s _ F K 1 ]   F O R E I G N   K E Y ( [ P r o d u c t I d ] )  
 R E F E R E N C E S   [ d b o ] . [ a c _ P r o d u c t s ]   ( [ P r o d u c t I d ] )  
 G O  
 A L T E R   T A B L E   [ d b o ] . [ a c _ P r o d u c t V a r i a n t s ]   C H E C K   C O N S T R A I N T   [ a c _ P r o d u c t s _ a c _ P r o d u c t V a r i a t i o n s _ F K 1 ]  
 G O  
 / * * * * * *   O b j e c t :     F o r e i g n K e y   [ a c _ D i s c o u n t s _ a c _ P r o d u c t D i s c o u n t A s s n _ F K 1 ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 4   * * * * * * /  
 A L T E R   T A B L E   [ d b o ] . [ a c _ P r o d u c t V o l u m e D i s c o u n t s ]     W I T H   C H E C K   A D D     C O N S T R A I N T   [ a c _ D i s c o u n t s _ a c _ P r o d u c t D i s c o u n t A s s n _ F K 1 ]   F O R E I G N   K E Y ( [ V o l u m e D i s c o u n t I d ] )  
 R E F E R E N C E S   [ d b o ] . [ a c _ V o l u m e D i s c o u n t s ]   ( [ V o l u m e D i s c o u n t I d ] )  
 O N   D E L E T E   C A S C A D E  
 G O  
 A L T E R   T A B L E   [ d b o ] . [ a c _ P r o d u c t V o l u m e D i s c o u n t s ]   C H E C K   C O N S T R A I N T   [ a c _ D i s c o u n t s _ a c _ P r o d u c t D i s c o u n t A s s n _ F K 1 ]  
 G O  
 / * * * * * *   O b j e c t :     F o r e i g n K e y   [ a c _ P r o d u c t s _ a c _ P r o d u c t D i s c o u n t A s s n _ F K 1 ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 4   * * * * * * /  
 A L T E R   T A B L E   [ d b o ] . [ a c _ P r o d u c t V o l u m e D i s c o u n t s ]     W I T H   C H E C K   A D D     C O N S T R A I N T   [ a c _ P r o d u c t s _ a c _ P r o d u c t D i s c o u n t A s s n _ F K 1 ]   F O R E I G N   K E Y ( [ P r o d u c t I d ] )  
 R E F E R E N C E S   [ d b o ] . [ a c _ P r o d u c t s ]   ( [ P r o d u c t I d ] )  
 O N   D E L E T E   C A S C A D E  
 G O  
 A L T E R   T A B L E   [ d b o ] . [ a c _ P r o d u c t V o l u m e D i s c o u n t s ]   C H E C K   C O N S T R A I N T   [ a c _ P r o d u c t s _ a c _ P r o d u c t D i s c o u n t A s s n _ F K 1 ]  
 G O  
 / * * * * * *   O b j e c t :     F o r e i g n K e y   [ a c _ U s e r s _ a c _ P r o f i l e s _ F K 1 ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 4   * * * * * * /  
 A L T E R   T A B L E   [ d b o ] . [ a c _ P r o f i l e s ]     W I T H   C H E C K   A D D     C O N S T R A I N T   [ a c _ U s e r s _ a c _ P r o f i l e s _ F K 1 ]   F O R E I G N   K E Y ( [ U s e r I d ] )  
 R E F E R E N C E S   [ d b o ] . [ a c _ U s e r s ]   ( [ U s e r I d ] )  
 O N   D E L E T E   C A S C A D E  
 G O  
 A L T E R   T A B L E   [ d b o ] . [ a c _ P r o f i l e s ]   C H E C K   C O N S T R A I N T   [ a c _ U s e r s _ a c _ P r o f i l e s _ F K 1 ]  
 G O  
 / * * * * * *   O b j e c t :     F o r e i g n K e y   [ a c _ C o u n t r i e s _ a c _ P r o v i n c e s _ F K 1 ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 4   * * * * * * /  
 A L T E R   T A B L E   [ d b o ] . [ a c _ P r o v i n c e s ]     W I T H   C H E C K   A D D     C O N S T R A I N T   [ a c _ C o u n t r i e s _ a c _ P r o v i n c e s _ F K 1 ]   F O R E I G N   K E Y ( [ C o u n t r y C o d e ] )  
 R E F E R E N C E S   [ d b o ] . [ a c _ C o u n t r i e s ]   ( [ C o u n t r y C o d e ] )  
 O N   D E L E T E   C A S C A D E  
 G O  
 A L T E R   T A B L E   [ d b o ] . [ a c _ P r o v i n c e s ]   C H E C K   C O N S T R A I N T   [ a c _ C o u n t r i e s _ a c _ P r o v i n c e s _ F K 1 ]  
 G O  
 / * * * * * *   O b j e c t :     F o r e i g n K e y   [ a c _ S t o r e s _ a c _ R e a d m e s _ F K 1 ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 4   * * * * * * /  
 A L T E R   T A B L E   [ d b o ] . [ a c _ R e a d m e s ]     W I T H   C H E C K   A D D     C O N S T R A I N T   [ a c _ S t o r e s _ a c _ R e a d m e s _ F K 1 ]   F O R E I G N   K E Y ( [ S t o r e I d ] )  
 R E F E R E N C E S   [ d b o ] . [ a c _ S t o r e s ]   ( [ S t o r e I d ] )  
 G O  
 A L T E R   T A B L E   [ d b o ] . [ a c _ R e a d m e s ]   C H E C K   C O N S T R A I N T   [ a c _ S t o r e s _ a c _ R e a d m e s _ F K 1 ]  
 G O  
 / * * * * * *   O b j e c t :     F o r e i g n K e y   [ a c _ S t o r e s _ a c _ R e d i r e c t s _ F K 1 ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 4   * * * * * * /  
 A L T E R   T A B L E   [ d b o ] . [ a c _ R e d i r e c t s ]     W I T H   C H E C K   A D D     C O N S T R A I N T   [ a c _ S t o r e s _ a c _ R e d i r e c t s _ F K 1 ]   F O R E I G N   K E Y ( [ S t o r e I d ] )  
 R E F E R E N C E S   [ d b o ] . [ a c _ S t o r e s ]   ( [ S t o r e I d ] )  
 G O  
 A L T E R   T A B L E   [ d b o ] . [ a c _ R e d i r e c t s ]   C H E C K   C O N S T R A I N T   [ a c _ S t o r e s _ a c _ R e d i r e c t s _ F K 1 ]  
 G O  
 / * * * * * *   O b j e c t :     F o r e i g n K e y   [ a c _ P r o d u c t s _ a c _ R e l a t e d P r o d u c t s _ F K 1 ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 4   * * * * * * /  
 A L T E R   T A B L E   [ d b o ] . [ a c _ R e l a t e d P r o d u c t s ]     W I T H   C H E C K   A D D     C O N S T R A I N T   [ a c _ P r o d u c t s _ a c _ R e l a t e d P r o d u c t s _ F K 1 ]   F O R E I G N   K E Y ( [ P r o d u c t I d ] )  
 R E F E R E N C E S   [ d b o ] . [ a c _ P r o d u c t s ]   ( [ P r o d u c t I d ] )  
 G O  
 A L T E R   T A B L E   [ d b o ] . [ a c _ R e l a t e d P r o d u c t s ]   C H E C K   C O N S T R A I N T   [ a c _ P r o d u c t s _ a c _ R e l a t e d P r o d u c t s _ F K 1 ]  
 G O  
 / * * * * * *   O b j e c t :     F o r e i g n K e y   [ a c _ P r o d u c t s _ a c _ R e l a t e d P r o d u c t s _ F K 2 ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 4   * * * * * * /  
 A L T E R   T A B L E   [ d b o ] . [ a c _ R e l a t e d P r o d u c t s ]     W I T H   C H E C K   A D D     C O N S T R A I N T   [ a c _ P r o d u c t s _ a c _ R e l a t e d P r o d u c t s _ F K 2 ]   F O R E I G N   K E Y ( [ C h i l d P r o d u c t I d ] )  
 R E F E R E N C E S   [ d b o ] . [ a c _ P r o d u c t s ]   ( [ P r o d u c t I d ] )  
 G O  
 A L T E R   T A B L E   [ d b o ] . [ a c _ R e l a t e d P r o d u c t s ]   C H E C K   C O N S T R A I N T   [ a c _ P r o d u c t s _ a c _ R e l a t e d P r o d u c t s _ F K 2 ]  
 G O  
 / * * * * * *   O b j e c t :     F o r e i g n K e y   [ a c _ D i g i t a l G o o d s _ a c _ S e r i a l K e y s _ F K 1 ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 4   * * * * * * /  
 A L T E R   T A B L E   [ d b o ] . [ a c _ S e r i a l K e y s ]     W I T H   C H E C K   A D D     C O N S T R A I N T   [ a c _ D i g i t a l G o o d s _ a c _ S e r i a l K e y s _ F K 1 ]   F O R E I G N   K E Y ( [ D i g i t a l G o o d I d ] )  
 R E F E R E N C E S   [ d b o ] . [ a c _ D i g i t a l G o o d s ]   ( [ D i g i t a l G o o d I d ] )  
 O N   D E L E T E   C A S C A D E  
 G O  
 A L T E R   T A B L E   [ d b o ] . [ a c _ S e r i a l K e y s ]   C H E C K   C O N S T R A I N T   [ a c _ D i g i t a l G o o d s _ a c _ S e r i a l K e y s _ F K 1 ]  
 G O  
 / * * * * * *   O b j e c t :     F o r e i g n K e y   [ a c _ P a t h s _ a c _ S h a r e d P e r s o n a l i z a t i o n _ F K 1 ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 4   * * * * * * /  
 A L T E R   T A B L E   [ d b o ] . [ a c _ S h a r e d P e r s o n a l i z a t i o n ]     W I T H   C H E C K   A D D     C O N S T R A I N T   [ a c _ P a t h s _ a c _ S h a r e d P e r s o n a l i z a t i o n _ F K 1 ]   F O R E I G N   K E Y ( [ P e r s o n a l i z a t i o n P a t h I d ] )  
 R E F E R E N C E S   [ d b o ] . [ a c _ P e r s o n a l i z a t i o n P a t h s ]   ( [ P e r s o n a l i z a t i o n P a t h I d ] )  
 O N   D E L E T E   C A S C A D E  
 G O  
 A L T E R   T A B L E   [ d b o ] . [ a c _ S h a r e d P e r s o n a l i z a t i o n ]   C H E C K   C O N S T R A I N T   [ a c _ P a t h s _ a c _ S h a r e d P e r s o n a l i z a t i o n _ F K 1 ]  
 G O  
 / * * * * * *   O b j e c t :     F o r e i g n K e y   [ a c _ S t o r e s _ a c _ S h i p G a t e w a y s _ F K 1 ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 4   * * * * * * /  
 A L T E R   T A B L E   [ d b o ] . [ a c _ S h i p G a t e w a y s ]     W I T H   C H E C K   A D D     C O N S T R A I N T   [ a c _ S t o r e s _ a c _ S h i p G a t e w a y s _ F K 1 ]   F O R E I G N   K E Y ( [ S t o r e I d ] )  
 R E F E R E N C E S   [ d b o ] . [ a c _ S t o r e s ]   ( [ S t o r e I d ] )  
 G O  
 A L T E R   T A B L E   [ d b o ] . [ a c _ S h i p G a t e w a y s ]   C H E C K   C O N S T R A I N T   [ a c _ S t o r e s _ a c _ S h i p G a t e w a y s _ F K 1 ]  
 G O  
 / * * * * * *   O b j e c t :     F o r e i g n K e y   [ a c _ G r o u p s _ a c _ S h i p M e t h o d G r o u p s _ F K 1 ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 4   * * * * * * /  
 A L T E R   T A B L E   [ d b o ] . [ a c _ S h i p M e t h o d G r o u p s ]     W I T H   C H E C K   A D D     C O N S T R A I N T   [ a c _ G r o u p s _ a c _ S h i p M e t h o d G r o u p s _ F K 1 ]   F O R E I G N   K E Y ( [ G r o u p I d ] )  
 R E F E R E N C E S   [ d b o ] . [ a c _ G r o u p s ]   ( [ G r o u p I d ] )  
 G O  
 A L T E R   T A B L E   [ d b o ] . [ a c _ S h i p M e t h o d G r o u p s ]   C H E C K   C O N S T R A I N T   [ a c _ G r o u p s _ a c _ S h i p M e t h o d G r o u p s _ F K 1 ]  
 G O  
 / * * * * * *   O b j e c t :     F o r e i g n K e y   [ a c _ S h i p M e t h o d s _ a c _ S h i p M e t h o d G r o u p s _ F K 1 ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 4   * * * * * * /  
 A L T E R   T A B L E   [ d b o ] . [ a c _ S h i p M e t h o d G r o u p s ]     W I T H   C H E C K   A D D     C O N S T R A I N T   [ a c _ S h i p M e t h o d s _ a c _ S h i p M e t h o d G r o u p s _ F K 1 ]   F O R E I G N   K E Y ( [ S h i p M e t h o d I d ] )  
 R E F E R E N C E S   [ d b o ] . [ a c _ S h i p M e t h o d s ]   ( [ S h i p M e t h o d I d ] )  
 G O  
 A L T E R   T A B L E   [ d b o ] . [ a c _ S h i p M e t h o d G r o u p s ]   C H E C K   C O N S T R A I N T   [ a c _ S h i p M e t h o d s _ a c _ S h i p M e t h o d G r o u p s _ F K 1 ]  
 G O  
 / * * * * * *   O b j e c t :     F o r e i g n K e y   [ a c _ S h i p G a t e w a y s _ a c _ S h i p M e t h o d s _ F K 1 ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 4   * * * * * * /  
 A L T E R   T A B L E   [ d b o ] . [ a c _ S h i p M e t h o d s ]     W I T H   C H E C K   A D D     C O N S T R A I N T   [ a c _ S h i p G a t e w a y s _ a c _ S h i p M e t h o d s _ F K 1 ]   F O R E I G N   K E Y ( [ S h i p G a t e w a y I d ] )  
 R E F E R E N C E S   [ d b o ] . [ a c _ S h i p G a t e w a y s ]   ( [ S h i p G a t e w a y I d ] )  
 O N   D E L E T E   C A S C A D E  
 G O  
 A L T E R   T A B L E   [ d b o ] . [ a c _ S h i p M e t h o d s ]   C H E C K   C O N S T R A I N T   [ a c _ S h i p G a t e w a y s _ a c _ S h i p M e t h o d s _ F K 1 ]  
 G O  
 / * * * * * *   O b j e c t :     F o r e i g n K e y   [ a c _ S t o r e s _ a c _ S h i p M e t h o d s _ F K 1 ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 4   * * * * * * /  
 A L T E R   T A B L E   [ d b o ] . [ a c _ S h i p M e t h o d s ]     W I T H   C H E C K   A D D     C O N S T R A I N T   [ a c _ S t o r e s _ a c _ S h i p M e t h o d s _ F K 1 ]   F O R E I G N   K E Y ( [ S t o r e I d ] )  
 R E F E R E N C E S   [ d b o ] . [ a c _ S t o r e s ]   ( [ S t o r e I d ] )  
 G O  
 A L T E R   T A B L E   [ d b o ] . [ a c _ S h i p M e t h o d s ]   C H E C K   C O N S T R A I N T   [ a c _ S t o r e s _ a c _ S h i p M e t h o d s _ F K 1 ]  
 G O  
 / * * * * * *   O b j e c t :     F o r e i g n K e y   [ a c _ T a x C o d e s _ a c _ S h i p M e t h o d s _ F K 1 ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 4   * * * * * * /  
 A L T E R   T A B L E   [ d b o ] . [ a c _ S h i p M e t h o d s ]     W I T H   C H E C K   A D D     C O N S T R A I N T   [ a c _ T a x C o d e s _ a c _ S h i p M e t h o d s _ F K 1 ]   F O R E I G N   K E Y ( [ T a x C o d e I d ] )  
 R E F E R E N C E S   [ d b o ] . [ a c _ T a x C o d e s ]   ( [ T a x C o d e I d ] )  
 O N   D E L E T E   S E T   N U L L  
 G O  
 A L T E R   T A B L E   [ d b o ] . [ a c _ S h i p M e t h o d s ]   C H E C K   C O N S T R A I N T   [ a c _ T a x C o d e s _ a c _ S h i p M e t h o d s _ F K 1 ]  
 G O  
 / * * * * * *   O b j e c t :     F o r e i g n K e y   [ a c _ S h i p M e t h o d s _ a c _ S h i p M e t h o d S h i p Z o n e s _ F K 1 ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 4   * * * * * * /  
 A L T E R   T A B L E   [ d b o ] . [ a c _ S h i p M e t h o d S h i p Z o n e s ]     W I T H   C H E C K   A D D     C O N S T R A I N T   [ a c _ S h i p M e t h o d s _ a c _ S h i p M e t h o d S h i p Z o n e s _ F K 1 ]   F O R E I G N   K E Y ( [ S h i p M e t h o d I d ] )  
 R E F E R E N C E S   [ d b o ] . [ a c _ S h i p M e t h o d s ]   ( [ S h i p M e t h o d I d ] )  
 O N   D E L E T E   C A S C A D E  
 G O  
 A L T E R   T A B L E   [ d b o ] . [ a c _ S h i p M e t h o d S h i p Z o n e s ]   C H E C K   C O N S T R A I N T   [ a c _ S h i p M e t h o d s _ a c _ S h i p M e t h o d S h i p Z o n e s _ F K 1 ]  
 G O  
 / * * * * * *   O b j e c t :     F o r e i g n K e y   [ a c _ S h i p Z o n e s _ a c _ S h i p M e t h o d S h i p Z o n e s _ F K 1 ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 4   * * * * * * /  
 A L T E R   T A B L E   [ d b o ] . [ a c _ S h i p M e t h o d S h i p Z o n e s ]     W I T H   C H E C K   A D D     C O N S T R A I N T   [ a c _ S h i p Z o n e s _ a c _ S h i p M e t h o d S h i p Z o n e s _ F K 1 ]   F O R E I G N   K E Y ( [ S h i p Z o n e I d ] )  
 R E F E R E N C E S   [ d b o ] . [ a c _ S h i p Z o n e s ]   ( [ S h i p Z o n e I d ] )  
 G O  
 A L T E R   T A B L E   [ d b o ] . [ a c _ S h i p M e t h o d S h i p Z o n e s ]   C H E C K   C O N S T R A I N T   [ a c _ S h i p Z o n e s _ a c _ S h i p M e t h o d S h i p Z o n e s _ F K 1 ]  
 G O  
 / * * * * * *   O b j e c t :     F o r e i g n K e y   [ a c _ S h i p M e t h o d s _ a c _ S h i p M e t h o d W a r e h o u s e s _ F K 1 ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 4   * * * * * * /  
 A L T E R   T A B L E   [ d b o ] . [ a c _ S h i p M e t h o d W a r e h o u s e s ]     W I T H   C H E C K   A D D     C O N S T R A I N T   [ a c _ S h i p M e t h o d s _ a c _ S h i p M e t h o d W a r e h o u s e s _ F K 1 ]   F O R E I G N   K E Y ( [ S h i p M e t h o d I d ] )  
 R E F E R E N C E S   [ d b o ] . [ a c _ S h i p M e t h o d s ]   ( [ S h i p M e t h o d I d ] )  
 O N   D E L E T E   C A S C A D E  
 G O  
 A L T E R   T A B L E   [ d b o ] . [ a c _ S h i p M e t h o d W a r e h o u s e s ]   C H E C K   C O N S T R A I N T   [ a c _ S h i p M e t h o d s _ a c _ S h i p M e t h o d W a r e h o u s e s _ F K 1 ]  
 G O  
 / * * * * * *   O b j e c t :     F o r e i g n K e y   [ a c _ W a r e h o u s e s _ a c _ S h i p M e t h o d W a r e h o u s e s _ F K 1 ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 4   * * * * * * /  
 A L T E R   T A B L E   [ d b o ] . [ a c _ S h i p M e t h o d W a r e h o u s e s ]     W I T H   C H E C K   A D D     C O N S T R A I N T   [ a c _ W a r e h o u s e s _ a c _ S h i p M e t h o d W a r e h o u s e s _ F K 1 ]   F O R E I G N   K E Y ( [ W a r e h o u s e I d ] )  
 R E F E R E N C E S   [ d b o ] . [ a c _ W a r e h o u s e s ]   ( [ W a r e h o u s e I d ] )  
 O N   D E L E T E   C A S C A D E  
 G O  
 A L T E R   T A B L E   [ d b o ] . [ a c _ S h i p M e t h o d W a r e h o u s e s ]   C H E C K   C O N S T R A I N T   [ a c _ W a r e h o u s e s _ a c _ S h i p M e t h o d W a r e h o u s e s _ F K 1 ]  
 G O  
 / * * * * * *   O b j e c t :     F o r e i g n K e y   [ a c _ S h i p M e t h o d s _ a c _ S h i p M a t r i x _ F K 1 ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 4   * * * * * * /  
 A L T E R   T A B L E   [ d b o ] . [ a c _ S h i p R a t e M a t r i x ]     W I T H   C H E C K   A D D     C O N S T R A I N T   [ a c _ S h i p M e t h o d s _ a c _ S h i p M a t r i x _ F K 1 ]   F O R E I G N   K E Y ( [ S h i p M e t h o d I d ] )  
 R E F E R E N C E S   [ d b o ] . [ a c _ S h i p M e t h o d s ]   ( [ S h i p M e t h o d I d ] )  
 O N   D E L E T E   C A S C A D E  
 G O  
 A L T E R   T A B L E   [ d b o ] . [ a c _ S h i p R a t e M a t r i x ]   C H E C K   C O N S T R A I N T   [ a c _ S h i p M e t h o d s _ a c _ S h i p M a t r i x _ F K 1 ]  
 G O  
 / * * * * * *   O b j e c t :     F o r e i g n K e y   [ a c _ C o u n t r i e s _ a c _ S h i p Z o n e C o u n t r i e s _ F K 1 ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 4   * * * * * * /  
 A L T E R   T A B L E   [ d b o ] . [ a c _ S h i p Z o n e C o u n t r i e s ]     W I T H   C H E C K   A D D     C O N S T R A I N T   [ a c _ C o u n t r i e s _ a c _ S h i p Z o n e C o u n t r i e s _ F K 1 ]   F O R E I G N   K E Y ( [ C o u n t r y C o d e ] )  
 R E F E R E N C E S   [ d b o ] . [ a c _ C o u n t r i e s ]   ( [ C o u n t r y C o d e ] )  
 O N   D E L E T E   C A S C A D E  
 G O  
 A L T E R   T A B L E   [ d b o ] . [ a c _ S h i p Z o n e C o u n t r i e s ]   C H E C K   C O N S T R A I N T   [ a c _ C o u n t r i e s _ a c _ S h i p Z o n e C o u n t r i e s _ F K 1 ]  
 G O  
 / * * * * * *   O b j e c t :     F o r e i g n K e y   [ a c _ S h i p Z o n e s _ a c _ S h i p Z o n e C o u n t r i e s _ F K 1 ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 4   * * * * * * /  
 A L T E R   T A B L E   [ d b o ] . [ a c _ S h i p Z o n e C o u n t r i e s ]     W I T H   C H E C K   A D D     C O N S T R A I N T   [ a c _ S h i p Z o n e s _ a c _ S h i p Z o n e C o u n t r i e s _ F K 1 ]   F O R E I G N   K E Y ( [ S h i p Z o n e I d ] )  
 R E F E R E N C E S   [ d b o ] . [ a c _ S h i p Z o n e s ]   ( [ S h i p Z o n e I d ] )  
 O N   D E L E T E   C A S C A D E  
 G O  
 A L T E R   T A B L E   [ d b o ] . [ a c _ S h i p Z o n e C o u n t r i e s ]   C H E C K   C O N S T R A I N T   [ a c _ S h i p Z o n e s _ a c _ S h i p Z o n e C o u n t r i e s _ F K 1 ]  
 G O  
 / * * * * * *   O b j e c t :     F o r e i g n K e y   [ a c _ P r o v i n c e s _ a c _ S h i p Z o n e P r o v i n c e s _ F K 1 ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 4   * * * * * * /  
 A L T E R   T A B L E   [ d b o ] . [ a c _ S h i p Z o n e P r o v i n c e s ]     W I T H   C H E C K   A D D     C O N S T R A I N T   [ a c _ P r o v i n c e s _ a c _ S h i p Z o n e P r o v i n c e s _ F K 1 ]   F O R E I G N   K E Y ( [ P r o v i n c e I d ] )  
 R E F E R E N C E S   [ d b o ] . [ a c _ P r o v i n c e s ]   ( [ P r o v i n c e I d ] )  
 O N   D E L E T E   C A S C A D E  
 G O  
 A L T E R   T A B L E   [ d b o ] . [ a c _ S h i p Z o n e P r o v i n c e s ]   C H E C K   C O N S T R A I N T   [ a c _ P r o v i n c e s _ a c _ S h i p Z o n e P r o v i n c e s _ F K 1 ]  
 G O  
 / * * * * * *   O b j e c t :     F o r e i g n K e y   [ a c _ S h i p Z o n e s _ a c _ S h i p Z o n e P r o v i n c e s _ F K 1 ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 4   * * * * * * /  
 A L T E R   T A B L E   [ d b o ] . [ a c _ S h i p Z o n e P r o v i n c e s ]     W I T H   C H E C K   A D D     C O N S T R A I N T   [ a c _ S h i p Z o n e s _ a c _ S h i p Z o n e P r o v i n c e s _ F K 1 ]   F O R E I G N   K E Y ( [ S h i p Z o n e I d ] )  
 R E F E R E N C E S   [ d b o ] . [ a c _ S h i p Z o n e s ]   ( [ S h i p Z o n e I d ] )  
 O N   D E L E T E   C A S C A D E  
 G O  
 A L T E R   T A B L E   [ d b o ] . [ a c _ S h i p Z o n e P r o v i n c e s ]   C H E C K   C O N S T R A I N T   [ a c _ S h i p Z o n e s _ a c _ S h i p Z o n e P r o v i n c e s _ F K 1 ]  
 G O  
 / * * * * * *   O b j e c t :     F o r e i g n K e y   [ a c _ S t o r e s _ a c _ S h i p Z o n e s _ F K 1 ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 4   * * * * * * /  
 A L T E R   T A B L E   [ d b o ] . [ a c _ S h i p Z o n e s ]     W I T H   C H E C K   A D D     C O N S T R A I N T   [ a c _ S t o r e s _ a c _ S h i p Z o n e s _ F K 1 ]   F O R E I G N   K E Y ( [ S t o r e I d ] )  
 R E F E R E N C E S   [ d b o ] . [ a c _ S t o r e s ]   ( [ S t o r e I d ] )  
 G O  
 A L T E R   T A B L E   [ d b o ] . [ a c _ S h i p Z o n e s ]   C H E C K   C O N S T R A I N T   [ a c _ S t o r e s _ a c _ S h i p Z o n e s _ F K 1 ]  
 G O  
 / * * * * * *   O b j e c t :     F o r e i g n K e y   [ a c _ G r o u p s _ a c _ S p e c i a l G r o u p s _ F K 1 ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 4   * * * * * * /  
 A L T E R   T A B L E   [ d b o ] . [ a c _ S p e c i a l G r o u p s ]     W I T H   C H E C K   A D D     C O N S T R A I N T   [ a c _ G r o u p s _ a c _ S p e c i a l G r o u p s _ F K 1 ]   F O R E I G N   K E Y ( [ G r o u p I d ] )  
 R E F E R E N C E S   [ d b o ] . [ a c _ G r o u p s ]   ( [ G r o u p I d ] )  
 O N   D E L E T E   C A S C A D E  
 G O  
 A L T E R   T A B L E   [ d b o ] . [ a c _ S p e c i a l G r o u p s ]   C H E C K   C O N S T R A I N T   [ a c _ G r o u p s _ a c _ S p e c i a l G r o u p s _ F K 1 ]  
 G O  
 / * * * * * *   O b j e c t :     F o r e i g n K e y   [ a c _ S p e c i a l s _ a c _ S p e c i a l G r o u p s _ F K 1 ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 4   * * * * * * /  
 A L T E R   T A B L E   [ d b o ] . [ a c _ S p e c i a l G r o u p s ]     W I T H   C H E C K   A D D     C O N S T R A I N T   [ a c _ S p e c i a l s _ a c _ S p e c i a l G r o u p s _ F K 1 ]   F O R E I G N   K E Y ( [ S p e c i a l I d ] )  
 R E F E R E N C E S   [ d b o ] . [ a c _ S p e c i a l s ]   ( [ S p e c i a l I d ] )  
 O N   D E L E T E   C A S C A D E  
 G O  
 A L T E R   T A B L E   [ d b o ] . [ a c _ S p e c i a l G r o u p s ]   C H E C K   C O N S T R A I N T   [ a c _ S p e c i a l s _ a c _ S p e c i a l G r o u p s _ F K 1 ]  
 G O  
 / * * * * * *   O b j e c t :     F o r e i g n K e y   [ a c _ P r o d u c t s _ a c _ S p e c i a l s _ F K 1 ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 4   * * * * * * /  
 A L T E R   T A B L E   [ d b o ] . [ a c _ S p e c i a l s ]     W I T H   N O C H E C K   A D D     C O N S T R A I N T   [ a c _ P r o d u c t s _ a c _ S p e c i a l s _ F K 1 ]   F O R E I G N   K E Y ( [ P r o d u c t I d ] )  
 R E F E R E N C E S   [ d b o ] . [ a c _ P r o d u c t s ]   ( [ P r o d u c t I d ] )  
 G O  
 A L T E R   T A B L E   [ d b o ] . [ a c _ S p e c i a l s ]   N O C H E C K   C O N S T R A I N T   [ a c _ P r o d u c t s _ a c _ S p e c i a l s _ F K 1 ]  
 G O  
 / * * * * * *   O b j e c t :     F o r e i g n K e y   [ a c _ S t o r e s _ a c _ S t o r e S e t t i n g s _ F K 1 ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 4   * * * * * * /  
 A L T E R   T A B L E   [ d b o ] . [ a c _ S t o r e S e t t i n g s ]     W I T H   C H E C K   A D D     C O N S T R A I N T   [ a c _ S t o r e s _ a c _ S t o r e S e t t i n g s _ F K 1 ]   F O R E I G N   K E Y ( [ S t o r e I d ] )  
 R E F E R E N C E S   [ d b o ] . [ a c _ S t o r e s ]   ( [ S t o r e I d ] )  
 O N   D E L E T E   C A S C A D E  
 G O  
 A L T E R   T A B L E   [ d b o ] . [ a c _ S t o r e S e t t i n g s ]   C H E C K   C O N S T R A I N T   [ a c _ S t o r e s _ a c _ S t o r e S e t t i n g s _ F K 1 ]  
 G O  
 / * * * * * *   O b j e c t :     F o r e i g n K e y   [ a c _ G r o u p s _ a c _ S u b s c r i p t i o n P l a n s _ F K 1 ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 4   * * * * * * /  
 A L T E R   T A B L E   [ d b o ] . [ a c _ S u b s c r i p t i o n P l a n s ]     W I T H   C H E C K   A D D     C O N S T R A I N T   [ a c _ G r o u p s _ a c _ S u b s c r i p t i o n P l a n s _ F K 1 ]   F O R E I G N   K E Y ( [ G r o u p I d ] )  
 R E F E R E N C E S   [ d b o ] . [ a c _ G r o u p s ]   ( [ G r o u p I d ] )  
 O N   D E L E T E   S E T   N U L L  
 G O  
 A L T E R   T A B L E   [ d b o ] . [ a c _ S u b s c r i p t i o n P l a n s ]   C H E C K   C O N S T R A I N T   [ a c _ G r o u p s _ a c _ S u b s c r i p t i o n P l a n s _ F K 1 ]  
 G O  
 / * * * * * *   O b j e c t :     F o r e i g n K e y   [ a c _ P r o d u c t s _ a c _ S u b s c r i p t i o n P l a n s _ F K 1 ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 4   * * * * * * /  
 A L T E R   T A B L E   [ d b o ] . [ a c _ S u b s c r i p t i o n P l a n s ]     W I T H   C H E C K   A D D     C O N S T R A I N T   [ a c _ P r o d u c t s _ a c _ S u b s c r i p t i o n P l a n s _ F K 1 ]   F O R E I G N   K E Y ( [ P r o d u c t I d ] )  
 R E F E R E N C E S   [ d b o ] . [ a c _ P r o d u c t s ]   ( [ P r o d u c t I d ] )  
 O N   D E L E T E   C A S C A D E  
 G O  
 A L T E R   T A B L E   [ d b o ] . [ a c _ S u b s c r i p t i o n P l a n s ]   C H E C K   C O N S T R A I N T   [ a c _ P r o d u c t s _ a c _ S u b s c r i p t i o n P l a n s _ F K 1 ]  
 G O  
 / * * * * * *   O b j e c t :     F o r e i g n K e y   [ a c _ T a x C o d e s _ a c _ S u b s c r i p t i o n P l a n s _ F K 1 ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 4   * * * * * * /  
 A L T E R   T A B L E   [ d b o ] . [ a c _ S u b s c r i p t i o n P l a n s ]     W I T H   C H E C K   A D D     C O N S T R A I N T   [ a c _ T a x C o d e s _ a c _ S u b s c r i p t i o n P l a n s _ F K 1 ]   F O R E I G N   K E Y ( [ T a x C o d e I d ] )  
 R E F E R E N C E S   [ d b o ] . [ a c _ T a x C o d e s ]   ( [ T a x C o d e I d ] )  
 O N   D E L E T E   S E T   N U L L  
 G O  
 A L T E R   T A B L E   [ d b o ] . [ a c _ S u b s c r i p t i o n P l a n s ]   C H E C K   C O N S T R A I N T   [ a c _ T a x C o d e s _ a c _ S u b s c r i p t i o n P l a n s _ F K 1 ]  
 G O  
 / * * * * * *   O b j e c t :     F o r e i g n K e y   [ a c _ O r d e r I t e m s _ a c _ S u b s c r i p t i o n s _ F K 1 ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 4   * * * * * * /  
 A L T E R   T A B L E   [ d b o ] . [ a c _ S u b s c r i p t i o n s ]     W I T H   C H E C K   A D D     C O N S T R A I N T   [ a c _ O r d e r I t e m s _ a c _ S u b s c r i p t i o n s _ F K 1 ]   F O R E I G N   K E Y ( [ O r d e r I t e m I d ] )  
 R E F E R E N C E S   [ d b o ] . [ a c _ O r d e r I t e m s ]   ( [ O r d e r I t e m I d ] )  
 O N   D E L E T E   S E T   N U L L  
 G O  
 A L T E R   T A B L E   [ d b o ] . [ a c _ S u b s c r i p t i o n s ]   C H E C K   C O N S T R A I N T   [ a c _ O r d e r I t e m s _ a c _ S u b s c r i p t i o n s _ F K 1 ]  
 G O  
 / * * * * * *   O b j e c t :     F o r e i g n K e y   [ a c _ S u b s c r i p t i o n P l a n s _ a c _ S u b s c r i p t i o n s _ F K 1 ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 4   * * * * * * /  
 A L T E R   T A B L E   [ d b o ] . [ a c _ S u b s c r i p t i o n s ]     W I T H   C H E C K   A D D     C O N S T R A I N T   [ a c _ S u b s c r i p t i o n P l a n s _ a c _ S u b s c r i p t i o n s _ F K 1 ]   F O R E I G N   K E Y ( [ P r o d u c t I d ] )  
 R E F E R E N C E S   [ d b o ] . [ a c _ S u b s c r i p t i o n P l a n s ]   ( [ P r o d u c t I d ] )  
 O N   D E L E T E   C A S C A D E  
 G O  
 A L T E R   T A B L E   [ d b o ] . [ a c _ S u b s c r i p t i o n s ]   C H E C K   C O N S T R A I N T   [ a c _ S u b s c r i p t i o n P l a n s _ a c _ S u b s c r i p t i o n s _ F K 1 ]  
 G O  
 / * * * * * *   O b j e c t :     F o r e i g n K e y   [ a c _ T r a n s a c t i o n s _ a c _ S u b s c r i p t i o n s _ F K 1 ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 4   * * * * * * /  
 A L T E R   T A B L E   [ d b o ] . [ a c _ S u b s c r i p t i o n s ]     W I T H   C H E C K   A D D     C O N S T R A I N T   [ a c _ T r a n s a c t i o n s _ a c _ S u b s c r i p t i o n s _ F K 1 ]   F O R E I G N   K E Y ( [ T r a n s a c t i o n I d ] )  
 R E F E R E N C E S   [ d b o ] . [ a c _ T r a n s a c t i o n s ]   ( [ T r a n s a c t i o n I d ] )  
 G O  
 A L T E R   T A B L E   [ d b o ] . [ a c _ S u b s c r i p t i o n s ]   C H E C K   C O N S T R A I N T   [ a c _ T r a n s a c t i o n s _ a c _ S u b s c r i p t i o n s _ F K 1 ]  
 G O  
 / * * * * * *   O b j e c t :     F o r e i g n K e y   [ a c _ U s e r s _ a c _ S u b s c r i p t i o n s _ F K 1 ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 4   * * * * * * /  
 A L T E R   T A B L E   [ d b o ] . [ a c _ S u b s c r i p t i o n s ]     W I T H   C H E C K   A D D     C O N S T R A I N T   [ a c _ U s e r s _ a c _ S u b s c r i p t i o n s _ F K 1 ]   F O R E I G N   K E Y ( [ U s e r I d ] )  
 R E F E R E N C E S   [ d b o ] . [ a c _ U s e r s ]   ( [ U s e r I d ] )  
 O N   D E L E T E   C A S C A D E  
 G O  
 A L T E R   T A B L E   [ d b o ] . [ a c _ S u b s c r i p t i o n s ]   C H E C K   C O N S T R A I N T   [ a c _ U s e r s _ a c _ S u b s c r i p t i o n s _ F K 1 ]  
 G O  
 / * * * * * *   O b j e c t :     F o r e i g n K e y   [ a c _ S t o r e s _ a c _ T a x C o d e s _ F K 1 ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 4   * * * * * * /  
 A L T E R   T A B L E   [ d b o ] . [ a c _ T a x C o d e s ]     W I T H   C H E C K   A D D     C O N S T R A I N T   [ a c _ S t o r e s _ a c _ T a x C o d e s _ F K 1 ]   F O R E I G N   K E Y ( [ S t o r e I d ] )  
 R E F E R E N C E S   [ d b o ] . [ a c _ S t o r e s ]   ( [ S t o r e I d ] )  
 G O  
 A L T E R   T A B L E   [ d b o ] . [ a c _ T a x C o d e s ]   C H E C K   C O N S T R A I N T   [ a c _ S t o r e s _ a c _ T a x C o d e s _ F K 1 ]  
 G O  
 / * * * * * *   O b j e c t :     F o r e i g n K e y   [ a c _ S t o r e s _ a c _ T a x G a t e w a y s _ F K 1 ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 4   * * * * * * /  
 A L T E R   T A B L E   [ d b o ] . [ a c _ T a x G a t e w a y s ]     W I T H   C H E C K   A D D     C O N S T R A I N T   [ a c _ S t o r e s _ a c _ T a x G a t e w a y s _ F K 1 ]   F O R E I G N   K E Y ( [ S t o r e I d ] )  
 R E F E R E N C E S   [ d b o ] . [ a c _ S t o r e s ]   ( [ S t o r e I d ] )  
 G O  
 A L T E R   T A B L E   [ d b o ] . [ a c _ T a x G a t e w a y s ]   C H E C K   C O N S T R A I N T   [ a c _ S t o r e s _ a c _ T a x G a t e w a y s _ F K 1 ]  
 G O  
 / * * * * * *   O b j e c t :     F o r e i g n K e y   [ a c _ G r o u p s _ a c _ T a x R u l e G r o u p s _ F K 1 ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 4   * * * * * * /  
 A L T E R   T A B L E   [ d b o ] . [ a c _ T a x R u l e G r o u p s ]     W I T H   C H E C K   A D D     C O N S T R A I N T   [ a c _ G r o u p s _ a c _ T a x R u l e G r o u p s _ F K 1 ]   F O R E I G N   K E Y ( [ G r o u p I d ] )  
 R E F E R E N C E S   [ d b o ] . [ a c _ G r o u p s ]   ( [ G r o u p I d ] )  
 O N   D E L E T E   C A S C A D E  
 G O  
 A L T E R   T A B L E   [ d b o ] . [ a c _ T a x R u l e G r o u p s ]   C H E C K   C O N S T R A I N T   [ a c _ G r o u p s _ a c _ T a x R u l e G r o u p s _ F K 1 ]  
 G O  
 / * * * * * *   O b j e c t :     F o r e i g n K e y   [ a c _ T a x R u l e s _ a c _ T a x R u l e G r o u p s _ F K 1 ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 4   * * * * * * /  
 A L T E R   T A B L E   [ d b o ] . [ a c _ T a x R u l e G r o u p s ]     W I T H   C H E C K   A D D     C O N S T R A I N T   [ a c _ T a x R u l e s _ a c _ T a x R u l e G r o u p s _ F K 1 ]   F O R E I G N   K E Y ( [ T a x R u l e I d ] )  
 R E F E R E N C E S   [ d b o ] . [ a c _ T a x R u l e s ]   ( [ T a x R u l e I d ] )  
 O N   D E L E T E   C A S C A D E  
 G O  
 A L T E R   T A B L E   [ d b o ] . [ a c _ T a x R u l e G r o u p s ]   C H E C K   C O N S T R A I N T   [ a c _ T a x R u l e s _ a c _ T a x R u l e G r o u p s _ F K 1 ]  
 G O  
 / * * * * * *   O b j e c t :     F o r e i g n K e y   [ a c _ S t o r e s _ a c _ T a x R u l e s _ F K 1 ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 4   * * * * * * /  
 A L T E R   T A B L E   [ d b o ] . [ a c _ T a x R u l e s ]     W I T H   C H E C K   A D D     C O N S T R A I N T   [ a c _ S t o r e s _ a c _ T a x R u l e s _ F K 1 ]   F O R E I G N   K E Y ( [ S t o r e I d ] )  
 R E F E R E N C E S   [ d b o ] . [ a c _ S t o r e s ]   ( [ S t o r e I d ] )  
 G O  
 A L T E R   T A B L E   [ d b o ] . [ a c _ T a x R u l e s ]   C H E C K   C O N S T R A I N T   [ a c _ S t o r e s _ a c _ T a x R u l e s _ F K 1 ]  
 G O  
 / * * * * * *   O b j e c t :     F o r e i g n K e y   [ a c _ S h i p Z o n e s _ a c _ T a x R u l e S h i p Z o n e s _ F K 1 ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 4   * * * * * * /  
 A L T E R   T A B L E   [ d b o ] . [ a c _ T a x R u l e S h i p Z o n e s ]     W I T H   C H E C K   A D D     C O N S T R A I N T   [ a c _ S h i p Z o n e s _ a c _ T a x R u l e S h i p Z o n e s _ F K 1 ]   F O R E I G N   K E Y ( [ S h i p Z o n e I d ] )  
 R E F E R E N C E S   [ d b o ] . [ a c _ S h i p Z o n e s ]   ( [ S h i p Z o n e I d ] )  
 O N   D E L E T E   C A S C A D E  
 G O  
 A L T E R   T A B L E   [ d b o ] . [ a c _ T a x R u l e S h i p Z o n e s ]   C H E C K   C O N S T R A I N T   [ a c _ S h i p Z o n e s _ a c _ T a x R u l e S h i p Z o n e s _ F K 1 ]  
 G O  
 / * * * * * *   O b j e c t :     F o r e i g n K e y   [ a c _ T a x R u l e s _ a c _ T a x R u l e S h i p Z o n e s _ F K 1 ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 4   * * * * * * /  
 A L T E R   T A B L E   [ d b o ] . [ a c _ T a x R u l e S h i p Z o n e s ]     W I T H   C H E C K   A D D     C O N S T R A I N T   [ a c _ T a x R u l e s _ a c _ T a x R u l e S h i p Z o n e s _ F K 1 ]   F O R E I G N   K E Y ( [ T a x R u l e I d ] )  
 R E F E R E N C E S   [ d b o ] . [ a c _ T a x R u l e s ]   ( [ T a x R u l e I d ] )  
 O N   D E L E T E   C A S C A D E  
 G O  
 A L T E R   T A B L E   [ d b o ] . [ a c _ T a x R u l e S h i p Z o n e s ]   C H E C K   C O N S T R A I N T   [ a c _ T a x R u l e s _ a c _ T a x R u l e S h i p Z o n e s _ F K 1 ]  
 G O  
 / * * * * * *   O b j e c t :     F o r e i g n K e y   [ a c _ T a x C o d e s _ a c _ T a x R u l e T a x C o d e A s s n _ F K 1 ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 4   * * * * * * /  
 A L T E R   T A B L E   [ d b o ] . [ a c _ T a x R u l e T a x C o d e s ]     W I T H   C H E C K   A D D     C O N S T R A I N T   [ a c _ T a x C o d e s _ a c _ T a x R u l e T a x C o d e A s s n _ F K 1 ]   F O R E I G N   K E Y ( [ T a x C o d e I d ] )  
 R E F E R E N C E S   [ d b o ] . [ a c _ T a x C o d e s ]   ( [ T a x C o d e I d ] )  
 O N   D E L E T E   C A S C A D E  
 G O  
 A L T E R   T A B L E   [ d b o ] . [ a c _ T a x R u l e T a x C o d e s ]   C H E C K   C O N S T R A I N T   [ a c _ T a x C o d e s _ a c _ T a x R u l e T a x C o d e A s s n _ F K 1 ]  
 G O  
 / * * * * * *   O b j e c t :     F o r e i g n K e y   [ a c _ T a x R u l e s _ a c _ T a x R u l e T a x C o d e A s s n _ F K 1 ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 4   * * * * * * /  
 A L T E R   T A B L E   [ d b o ] . [ a c _ T a x R u l e T a x C o d e s ]     W I T H   C H E C K   A D D     C O N S T R A I N T   [ a c _ T a x R u l e s _ a c _ T a x R u l e T a x C o d e A s s n _ F K 1 ]   F O R E I G N   K E Y ( [ T a x R u l e I d ] )  
 R E F E R E N C E S   [ d b o ] . [ a c _ T a x R u l e s ]   ( [ T a x R u l e I d ] )  
 O N   D E L E T E   C A S C A D E  
 G O  
 A L T E R   T A B L E   [ d b o ] . [ a c _ T a x R u l e T a x C o d e s ]   C H E C K   C O N S T R A I N T   [ a c _ T a x R u l e s _ a c _ T a x R u l e T a x C o d e A s s n _ F K 1 ]  
 G O  
 / * * * * * *   O b j e c t :     F o r e i g n K e y   [ a c _ S h i p G a t e w a y s _ a c _ T r a c k i n g _ F K 1 ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 4   * * * * * * /  
 A L T E R   T A B L E   [ d b o ] . [ a c _ T r a c k i n g N u m b e r s ]     W I T H   C H E C K   A D D     C O N S T R A I N T   [ a c _ S h i p G a t e w a y s _ a c _ T r a c k i n g _ F K 1 ]   F O R E I G N   K E Y ( [ S h i p G a t e w a y I d ] )  
 R E F E R E N C E S   [ d b o ] . [ a c _ S h i p G a t e w a y s ]   ( [ S h i p G a t e w a y I d ] )  
 O N   D E L E T E   S E T   N U L L  
 G O  
 A L T E R   T A B L E   [ d b o ] . [ a c _ T r a c k i n g N u m b e r s ]   C H E C K   C O N S T R A I N T   [ a c _ S h i p G a t e w a y s _ a c _ T r a c k i n g _ F K 1 ]  
 G O  
 / * * * * * *   O b j e c t :     F o r e i g n K e y   [ a c _ S h i p m e n t s _ a c _ T r a c k i n g _ F K 1 ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 4   * * * * * * /  
 A L T E R   T A B L E   [ d b o ] . [ a c _ T r a c k i n g N u m b e r s ]     W I T H   C H E C K   A D D     C O N S T R A I N T   [ a c _ S h i p m e n t s _ a c _ T r a c k i n g _ F K 1 ]   F O R E I G N   K E Y ( [ O r d e r S h i p m e n t I d ] )  
 R E F E R E N C E S   [ d b o ] . [ a c _ O r d e r S h i p m e n t s ]   ( [ O r d e r S h i p m e n t I d ] )  
 O N   D E L E T E   C A S C A D E  
 G O  
 A L T E R   T A B L E   [ d b o ] . [ a c _ T r a c k i n g N u m b e r s ]   C H E C K   C O N S T R A I N T   [ a c _ S h i p m e n t s _ a c _ T r a c k i n g _ F K 1 ]  
 G O  
 / * * * * * *   O b j e c t :     F o r e i g n K e y   [ a c _ P a y m e n t G a t e w a y s _ a c _ T r a n s a c t i o n s _ F K 1 ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 4   * * * * * * /  
 A L T E R   T A B L E   [ d b o ] . [ a c _ T r a n s a c t i o n s ]     W I T H   C H E C K   A D D     C O N S T R A I N T   [ a c _ P a y m e n t G a t e w a y s _ a c _ T r a n s a c t i o n s _ F K 1 ]   F O R E I G N   K E Y ( [ P a y m e n t G a t e w a y I d ] )  
 R E F E R E N C E S   [ d b o ] . [ a c _ P a y m e n t G a t e w a y s ]   ( [ P a y m e n t G a t e w a y I d ] )  
 O N   D E L E T E   S E T   N U L L  
 G O  
 A L T E R   T A B L E   [ d b o ] . [ a c _ T r a n s a c t i o n s ]   C H E C K   C O N S T R A I N T   [ a c _ P a y m e n t G a t e w a y s _ a c _ T r a n s a c t i o n s _ F K 1 ]  
 G O  
 / * * * * * *   O b j e c t :     F o r e i g n K e y   [ a c _ P a y m e n t s _ a c _ T r a n s a c t i o n s _ F K 1 ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 4   * * * * * * /  
 A L T E R   T A B L E   [ d b o ] . [ a c _ T r a n s a c t i o n s ]     W I T H   C H E C K   A D D     C O N S T R A I N T   [ a c _ P a y m e n t s _ a c _ T r a n s a c t i o n s _ F K 1 ]   F O R E I G N   K E Y ( [ P a y m e n t I d ] )  
 R E F E R E N C E S   [ d b o ] . [ a c _ P a y m e n t s ]   ( [ P a y m e n t I d ] )  
 O N   D E L E T E   C A S C A D E  
 G O  
 A L T E R   T A B L E   [ d b o ] . [ a c _ T r a n s a c t i o n s ]   C H E C K   C O N S T R A I N T   [ a c _ P a y m e n t s _ a c _ T r a n s a c t i o n s _ F K 1 ]  
 G O  
 / * * * * * *   O b j e c t :     F o r e i g n K e y   [ a c _ P r o d u c t s _ a c _ U p s e l l P r o d u c t s _ F K 1 ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 4   * * * * * * /  
 A L T E R   T A B L E   [ d b o ] . [ a c _ U p s e l l P r o d u c t s ]     W I T H   C H E C K   A D D     C O N S T R A I N T   [ a c _ P r o d u c t s _ a c _ U p s e l l P r o d u c t s _ F K 1 ]   F O R E I G N   K E Y ( [ P r o d u c t I d ] )  
 R E F E R E N C E S   [ d b o ] . [ a c _ P r o d u c t s ]   ( [ P r o d u c t I d ] )  
 O N   D E L E T E   C A S C A D E  
 G O  
 A L T E R   T A B L E   [ d b o ] . [ a c _ U p s e l l P r o d u c t s ]   C H E C K   C O N S T R A I N T   [ a c _ P r o d u c t s _ a c _ U p s e l l P r o d u c t s _ F K 1 ]  
 G O  
 / * * * * * *   O b j e c t :     F o r e i g n K e y   [ a c _ G r o u p s _ a c _ U s e r G r o u p s _ F K 1 ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 4   * * * * * * /  
 A L T E R   T A B L E   [ d b o ] . [ a c _ U s e r G r o u p s ]     W I T H   C H E C K   A D D     C O N S T R A I N T   [ a c _ G r o u p s _ a c _ U s e r G r o u p s _ F K 1 ]   F O R E I G N   K E Y ( [ G r o u p I d ] )  
 R E F E R E N C E S   [ d b o ] . [ a c _ G r o u p s ]   ( [ G r o u p I d ] )  
 O N   D E L E T E   C A S C A D E  
 G O  
 A L T E R   T A B L E   [ d b o ] . [ a c _ U s e r G r o u p s ]   C H E C K   C O N S T R A I N T   [ a c _ G r o u p s _ a c _ U s e r G r o u p s _ F K 1 ]  
 G O  
 / * * * * * *   O b j e c t :     F o r e i g n K e y   [ a c _ S u b s c r i p t i o n s _ a c _ U s e r G r o u p s _ F K 1 ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 4   * * * * * * /  
 A L T E R   T A B L E   [ d b o ] . [ a c _ U s e r G r o u p s ]     W I T H   C H E C K   A D D     C O N S T R A I N T   [ a c _ S u b s c r i p t i o n s _ a c _ U s e r G r o u p s _ F K 1 ]   F O R E I G N   K E Y ( [ S u b s c r i p t i o n I d ] )  
 R E F E R E N C E S   [ d b o ] . [ a c _ S u b s c r i p t i o n s ]   ( [ S u b s c r i p t i o n I d ] )  
 G O  
 A L T E R   T A B L E   [ d b o ] . [ a c _ U s e r G r o u p s ]   C H E C K   C O N S T R A I N T   [ a c _ S u b s c r i p t i o n s _ a c _ U s e r G r o u p s _ F K 1 ]  
 G O  
 / * * * * * *   O b j e c t :     F o r e i g n K e y   [ a c _ U s e r s _ a c _ U s e r G r o u p s _ F K 1 ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 4   * * * * * * /  
 A L T E R   T A B L E   [ d b o ] . [ a c _ U s e r G r o u p s ]     W I T H   C H E C K   A D D     C O N S T R A I N T   [ a c _ U s e r s _ a c _ U s e r G r o u p s _ F K 1 ]   F O R E I G N   K E Y ( [ U s e r I d ] )  
 R E F E R E N C E S   [ d b o ] . [ a c _ U s e r s ]   ( [ U s e r I d ] )  
 O N   D E L E T E   C A S C A D E  
 G O  
 A L T E R   T A B L E   [ d b o ] . [ a c _ U s e r G r o u p s ]   C H E C K   C O N S T R A I N T   [ a c _ U s e r s _ a c _ U s e r G r o u p s _ F K 1 ]  
 G O  
 / * * * * * *   O b j e c t :     F o r e i g n K e y   [ a c _ U s e r s _ a c _ U s e r P a s s w o r d s _ F K 1 ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 4   * * * * * * /  
 A L T E R   T A B L E   [ d b o ] . [ a c _ U s e r P a s s w o r d s ]     W I T H   C H E C K   A D D     C O N S T R A I N T   [ a c _ U s e r s _ a c _ U s e r P a s s w o r d s _ F K 1 ]   F O R E I G N   K E Y ( [ U s e r I d ] )  
 R E F E R E N C E S   [ d b o ] . [ a c _ U s e r s ]   ( [ U s e r I d ] )  
 O N   D E L E T E   C A S C A D E  
 G O  
 A L T E R   T A B L E   [ d b o ] . [ a c _ U s e r P a s s w o r d s ]   C H E C K   C O N S T R A I N T   [ a c _ U s e r s _ a c _ U s e r P a s s w o r d s _ F K 1 ]  
 G O  
 / * * * * * *   O b j e c t :     F o r e i g n K e y   [ a c _ P a t h s _ a c _ U s e r P e r s o n a l i z a t i o n _ F K 1 ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 4   * * * * * * /  
 A L T E R   T A B L E   [ d b o ] . [ a c _ U s e r P e r s o n a l i z a t i o n ]     W I T H   C H E C K   A D D     C O N S T R A I N T   [ a c _ P a t h s _ a c _ U s e r P e r s o n a l i z a t i o n _ F K 1 ]   F O R E I G N   K E Y ( [ P e r s o n a l i z a t i o n P a t h I d ] )  
 R E F E R E N C E S   [ d b o ] . [ a c _ P e r s o n a l i z a t i o n P a t h s ]   ( [ P e r s o n a l i z a t i o n P a t h I d ] )  
 O N   D E L E T E   C A S C A D E  
 G O  
 A L T E R   T A B L E   [ d b o ] . [ a c _ U s e r P e r s o n a l i z a t i o n ]   C H E C K   C O N S T R A I N T   [ a c _ P a t h s _ a c _ U s e r P e r s o n a l i z a t i o n _ F K 1 ]  
 G O  
 / * * * * * *   O b j e c t :     F o r e i g n K e y   [ a c _ U s e r s _ a c _ U s e r P e r s o n a l i z a t i o n _ F K 1 ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 4   * * * * * * /  
 A L T E R   T A B L E   [ d b o ] . [ a c _ U s e r P e r s o n a l i z a t i o n ]     W I T H   C H E C K   A D D     C O N S T R A I N T   [ a c _ U s e r s _ a c _ U s e r P e r s o n a l i z a t i o n _ F K 1 ]   F O R E I G N   K E Y ( [ U s e r I d ] )  
 R E F E R E N C E S   [ d b o ] . [ a c _ U s e r s ]   ( [ U s e r I d ] )  
 O N   D E L E T E   C A S C A D E  
 G O  
 A L T E R   T A B L E   [ d b o ] . [ a c _ U s e r P e r s o n a l i z a t i o n ]   C H E C K   C O N S T R A I N T   [ a c _ U s e r s _ a c _ U s e r P e r s o n a l i z a t i o n _ F K 1 ]  
 G O  
 / * * * * * *   O b j e c t :     F o r e i g n K e y   [ a c _ A f f i l i a t e s _ a c _ U s e r s _ F K 1 ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 4   * * * * * * /  
 A L T E R   T A B L E   [ d b o ] . [ a c _ U s e r s ]     W I T H   C H E C K   A D D     C O N S T R A I N T   [ a c _ A f f i l i a t e s _ a c _ U s e r s _ F K 1 ]   F O R E I G N   K E Y ( [ A f f i l i a t e I d ] )  
 R E F E R E N C E S   [ d b o ] . [ a c _ A f f i l i a t e s ]   ( [ A f f i l i a t e I d ] )  
 O N   D E L E T E   S E T   N U L L  
 G O  
 A L T E R   T A B L E   [ d b o ] . [ a c _ U s e r s ]   C H E C K   C O N S T R A I N T   [ a c _ A f f i l i a t e s _ a c _ U s e r s _ F K 1 ]  
 G O  
 / * * * * * *   O b j e c t :     F o r e i g n K e y   [ a c _ S t o r e s _ a c _ U s e r s _ F K 1 ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 4   * * * * * * /  
 A L T E R   T A B L E   [ d b o ] . [ a c _ U s e r s ]     W I T H   C H E C K   A D D     C O N S T R A I N T   [ a c _ S t o r e s _ a c _ U s e r s _ F K 1 ]   F O R E I G N   K E Y ( [ S t o r e I d ] )  
 R E F E R E N C E S   [ d b o ] . [ a c _ S t o r e s ]   ( [ S t o r e I d ] )  
 G O  
 A L T E R   T A B L E   [ d b o ] . [ a c _ U s e r s ]   C H E C K   C O N S T R A I N T   [ a c _ S t o r e s _ a c _ U s e r s _ F K 1 ]  
 G O  
 / * * * * * *   O b j e c t :     F o r e i g n K e y   [ a c _ U s e r s _ a c _ U s e r S e t t i n g s _ F K 1 ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 4   * * * * * * /  
 A L T E R   T A B L E   [ d b o ] . [ a c _ U s e r S e t t i n g s ]     W I T H   C H E C K   A D D     C O N S T R A I N T   [ a c _ U s e r s _ a c _ U s e r S e t t i n g s _ F K 1 ]   F O R E I G N   K E Y ( [ U s e r I d ] )  
 R E F E R E N C E S   [ d b o ] . [ a c _ U s e r s ]   ( [ U s e r I d ] )  
 O N   D E L E T E   C A S C A D E  
 G O  
 A L T E R   T A B L E   [ d b o ] . [ a c _ U s e r S e t t i n g s ]   C H E C K   C O N S T R A I N T   [ a c _ U s e r s _ a c _ U s e r S e t t i n g s _ F K 1 ]  
 G O  
 / * * * * * *   O b j e c t :     F o r e i g n K e y   [ a c _ G r o u p s _ a c _ V e n d o r G r o u p s _ F K 1 ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 4   * * * * * * /  
 A L T E R   T A B L E   [ d b o ] . [ a c _ V e n d o r G r o u p s ]     W I T H   C H E C K   A D D     C O N S T R A I N T   [ a c _ G r o u p s _ a c _ V e n d o r G r o u p s _ F K 1 ]   F O R E I G N   K E Y ( [ G r o u p I d ] )  
 R E F E R E N C E S   [ d b o ] . [ a c _ G r o u p s ]   ( [ G r o u p I d ] )  
 G O  
 A L T E R   T A B L E   [ d b o ] . [ a c _ V e n d o r G r o u p s ]   C H E C K   C O N S T R A I N T   [ a c _ G r o u p s _ a c _ V e n d o r G r o u p s _ F K 1 ]  
 G O  
 / * * * * * *   O b j e c t :     F o r e i g n K e y   [ a c _ V e n d o r s _ a c _ V e n d o r G r o u p s _ F K 1 ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 4   * * * * * * /  
 A L T E R   T A B L E   [ d b o ] . [ a c _ V e n d o r G r o u p s ]     W I T H   C H E C K   A D D     C O N S T R A I N T   [ a c _ V e n d o r s _ a c _ V e n d o r G r o u p s _ F K 1 ]   F O R E I G N   K E Y ( [ V e n d o r I d ] )  
 R E F E R E N C E S   [ d b o ] . [ a c _ V e n d o r s ]   ( [ V e n d o r I d ] )  
 G O  
 A L T E R   T A B L E   [ d b o ] . [ a c _ V e n d o r G r o u p s ]   C H E C K   C O N S T R A I N T   [ a c _ V e n d o r s _ a c _ V e n d o r G r o u p s _ F K 1 ]  
 G O  
 / * * * * * *   O b j e c t :     F o r e i g n K e y   [ a c _ S t o r e s _ a c _ V e n d o r s _ F K 1 ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 4   * * * * * * /  
 A L T E R   T A B L E   [ d b o ] . [ a c _ V e n d o r s ]     W I T H   C H E C K   A D D     C O N S T R A I N T   [ a c _ S t o r e s _ a c _ V e n d o r s _ F K 1 ]   F O R E I G N   K E Y ( [ S t o r e I d ] )  
 R E F E R E N C E S   [ d b o ] . [ a c _ S t o r e s ]   ( [ S t o r e I d ] )  
 G O  
 A L T E R   T A B L E   [ d b o ] . [ a c _ V e n d o r s ]   C H E C K   C O N S T R A I N T   [ a c _ S t o r e s _ a c _ V e n d o r s _ F K 1 ]  
 G O  
 / * * * * * *   O b j e c t :     F o r e i g n K e y   [ a c _ G r o u p s _ a c _ V o l u m e D i s c o u n t G r o u p s _ F K 1 ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 4   * * * * * * /  
 A L T E R   T A B L E   [ d b o ] . [ a c _ V o l u m e D i s c o u n t G r o u p s ]     W I T H   C H E C K   A D D     C O N S T R A I N T   [ a c _ G r o u p s _ a c _ V o l u m e D i s c o u n t G r o u p s _ F K 1 ]   F O R E I G N   K E Y ( [ G r o u p I d ] )  
 R E F E R E N C E S   [ d b o ] . [ a c _ G r o u p s ]   ( [ G r o u p I d ] )  
 O N   D E L E T E   C A S C A D E  
 G O  
 A L T E R   T A B L E   [ d b o ] . [ a c _ V o l u m e D i s c o u n t G r o u p s ]   C H E C K   C O N S T R A I N T   [ a c _ G r o u p s _ a c _ V o l u m e D i s c o u n t G r o u p s _ F K 1 ]  
 G O  
 / * * * * * *   O b j e c t :     F o r e i g n K e y   [ a c _ V o l u m e D i s c o u n t s _ a c _ V o l u m e D i s c o u n t G r o u p s _ F K 1 ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 4   * * * * * * /  
 A L T E R   T A B L E   [ d b o ] . [ a c _ V o l u m e D i s c o u n t G r o u p s ]     W I T H   C H E C K   A D D     C O N S T R A I N T   [ a c _ V o l u m e D i s c o u n t s _ a c _ V o l u m e D i s c o u n t G r o u p s _ F K 1 ]   F O R E I G N   K E Y ( [ V o l u m e D i s c o u n t I d ] )  
 R E F E R E N C E S   [ d b o ] . [ a c _ V o l u m e D i s c o u n t s ]   ( [ V o l u m e D i s c o u n t I d ] )  
 O N   D E L E T E   C A S C A D E  
 G O  
 A L T E R   T A B L E   [ d b o ] . [ a c _ V o l u m e D i s c o u n t G r o u p s ]   C H E C K   C O N S T R A I N T   [ a c _ V o l u m e D i s c o u n t s _ a c _ V o l u m e D i s c o u n t G r o u p s _ F K 1 ]  
 G O  
 / * * * * * *   O b j e c t :     F o r e i g n K e y   [ a c _ D i s c o u n t s _ a c _ D i s c o u n t M a t r i x _ F K 1 ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 4   * * * * * * /  
 A L T E R   T A B L E   [ d b o ] . [ a c _ V o l u m e D i s c o u n t L e v e l s ]     W I T H   C H E C K   A D D     C O N S T R A I N T   [ a c _ D i s c o u n t s _ a c _ D i s c o u n t M a t r i x _ F K 1 ]   F O R E I G N   K E Y ( [ V o l u m e D i s c o u n t I d ] )  
 R E F E R E N C E S   [ d b o ] . [ a c _ V o l u m e D i s c o u n t s ]   ( [ V o l u m e D i s c o u n t I d ] )  
 O N   D E L E T E   C A S C A D E  
 G O  
 A L T E R   T A B L E   [ d b o ] . [ a c _ V o l u m e D i s c o u n t L e v e l s ]   C H E C K   C O N S T R A I N T   [ a c _ D i s c o u n t s _ a c _ D i s c o u n t M a t r i x _ F K 1 ]  
 G O  
 / * * * * * *   O b j e c t :     F o r e i g n K e y   [ a c _ S t o r e s _ a c _ D i s c o u n t s _ F K 1 ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 4   * * * * * * /  
 A L T E R   T A B L E   [ d b o ] . [ a c _ V o l u m e D i s c o u n t s ]     W I T H   C H E C K   A D D     C O N S T R A I N T   [ a c _ S t o r e s _ a c _ D i s c o u n t s _ F K 1 ]   F O R E I G N   K E Y ( [ S t o r e I d ] )  
 R E F E R E N C E S   [ d b o ] . [ a c _ S t o r e s ]   ( [ S t o r e I d ] )  
 G O  
 A L T E R   T A B L E   [ d b o ] . [ a c _ V o l u m e D i s c o u n t s ]   C H E C K   C O N S T R A I N T   [ a c _ S t o r e s _ a c _ D i s c o u n t s _ F K 1 ]  
 G O  
 / * * * * * *   O b j e c t :     F o r e i g n K e y   [ a c _ C o u n t r i e s _ a c _ W a r e h o u s e s _ F K 1 ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 4   * * * * * * /  
 A L T E R   T A B L E   [ d b o ] . [ a c _ W a r e h o u s e s ]     W I T H   C H E C K   A D D     C O N S T R A I N T   [ a c _ C o u n t r i e s _ a c _ W a r e h o u s e s _ F K 1 ]   F O R E I G N   K E Y ( [ C o u n t r y C o d e ] )  
 R E F E R E N C E S   [ d b o ] . [ a c _ C o u n t r i e s ]   ( [ C o u n t r y C o d e ] )  
 O N   D E L E T E   S E T   N U L L  
 G O  
 A L T E R   T A B L E   [ d b o ] . [ a c _ W a r e h o u s e s ]   C H E C K   C O N S T R A I N T   [ a c _ C o u n t r i e s _ a c _ W a r e h o u s e s _ F K 1 ]  
 G O  
 / * * * * * *   O b j e c t :     F o r e i g n K e y   [ a c _ S t o r e s _ a c _ W a r e h o u s e s _ F K 1 ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 4   * * * * * * /  
 A L T E R   T A B L E   [ d b o ] . [ a c _ W a r e h o u s e s ]     W I T H   C H E C K   A D D     C O N S T R A I N T   [ a c _ S t o r e s _ a c _ W a r e h o u s e s _ F K 1 ]   F O R E I G N   K E Y ( [ S t o r e I d ] )  
 R E F E R E N C E S   [ d b o ] . [ a c _ S t o r e s ]   ( [ S t o r e I d ] )  
 G O  
 A L T E R   T A B L E   [ d b o ] . [ a c _ W a r e h o u s e s ]   C H E C K   C O N S T R A I N T   [ a c _ S t o r e s _ a c _ W a r e h o u s e s _ F K 1 ]  
 G O  
 / * * * * * *   O b j e c t :     F o r e i g n K e y   [ a c _ S t o r e s _ a c _ W e b p a g e s _ F K 1 ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 4   * * * * * * /  
 A L T E R   T A B L E   [ d b o ] . [ a c _ W e b p a g e s ]     W I T H   C H E C K   A D D     C O N S T R A I N T   [ a c _ S t o r e s _ a c _ W e b p a g e s _ F K 1 ]   F O R E I G N   K E Y ( [ S t o r e I d ] )  
 R E F E R E N C E S   [ d b o ] . [ a c _ S t o r e s ]   ( [ S t o r e I d ] )  
 G O  
 A L T E R   T A B L E   [ d b o ] . [ a c _ W e b p a g e s ]   C H E C K   C O N S T R A I N T   [ a c _ S t o r e s _ a c _ W e b p a g e s _ F K 1 ]  
 G O  
 / * * * * * *   O b j e c t :     F o r e i g n K e y   [ a c _ I n p u t F i e l d s _ a c _ W i s h l i s t I t e m I n p u t s _ F K 1 ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 4   * * * * * * /  
 A L T E R   T A B L E   [ d b o ] . [ a c _ W i s h l i s t I t e m I n p u t s ]     W I T H   C H E C K   A D D     C O N S T R A I N T   [ a c _ I n p u t F i e l d s _ a c _ W i s h l i s t I t e m I n p u t s _ F K 1 ]   F O R E I G N   K E Y ( [ I n p u t F i e l d I d ] )  
 R E F E R E N C E S   [ d b o ] . [ a c _ I n p u t F i e l d s ]   ( [ I n p u t F i e l d I d ] )  
 O N   D E L E T E   C A S C A D E  
 G O  
 A L T E R   T A B L E   [ d b o ] . [ a c _ W i s h l i s t I t e m I n p u t s ]   C H E C K   C O N S T R A I N T   [ a c _ I n p u t F i e l d s _ a c _ W i s h l i s t I t e m I n p u t s _ F K 1 ]  
 G O  
 / * * * * * *   O b j e c t :     F o r e i g n K e y   [ a c _ W i s h l i s t I t e m s _ a c _ W i s h l i s t I t e m I n p u t s _ F K 1 ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 4   * * * * * * /  
 A L T E R   T A B L E   [ d b o ] . [ a c _ W i s h l i s t I t e m I n p u t s ]     W I T H   C H E C K   A D D     C O N S T R A I N T   [ a c _ W i s h l i s t I t e m s _ a c _ W i s h l i s t I t e m I n p u t s _ F K 1 ]   F O R E I G N   K E Y ( [ W i s h l i s t I t e m I d ] )  
 R E F E R E N C E S   [ d b o ] . [ a c _ W i s h l i s t I t e m s ]   ( [ W i s h l i s t I t e m I d ] )  
 O N   D E L E T E   C A S C A D E  
 G O  
 A L T E R   T A B L E   [ d b o ] . [ a c _ W i s h l i s t I t e m I n p u t s ]   C H E C K   C O N S T R A I N T   [ a c _ W i s h l i s t I t e m s _ a c _ W i s h l i s t I t e m I n p u t s _ F K 1 ]  
 G O  
 / * * * * * *   O b j e c t :     F o r e i g n K e y   [ a c _ P r o d u c t s _ a c _ W i s h l i s t I t e m s _ F K 1 ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 4   * * * * * * /  
 A L T E R   T A B L E   [ d b o ] . [ a c _ W i s h l i s t I t e m s ]     W I T H   C H E C K   A D D     C O N S T R A I N T   [ a c _ P r o d u c t s _ a c _ W i s h l i s t I t e m s _ F K 1 ]   F O R E I G N   K E Y ( [ P r o d u c t I d ] )  
 R E F E R E N C E S   [ d b o ] . [ a c _ P r o d u c t s ]   ( [ P r o d u c t I d ] )  
 G O  
 A L T E R   T A B L E   [ d b o ] . [ a c _ W i s h l i s t I t e m s ]   C H E C K   C O N S T R A I N T   [ a c _ P r o d u c t s _ a c _ W i s h l i s t I t e m s _ F K 1 ]  
 G O  
 / * * * * * *   O b j e c t :     F o r e i g n K e y   [ a c _ W i s h l i s t s _ a c _ W i s h l i s t I t e m s _ F K 1 ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 4   * * * * * * /  
 A L T E R   T A B L E   [ d b o ] . [ a c _ W i s h l i s t I t e m s ]     W I T H   C H E C K   A D D     C O N S T R A I N T   [ a c _ W i s h l i s t s _ a c _ W i s h l i s t I t e m s _ F K 1 ]   F O R E I G N   K E Y ( [ W i s h l i s t I d ] )  
 R E F E R E N C E S   [ d b o ] . [ a c _ W i s h l i s t s ]   ( [ W i s h l i s t I d ] )  
 O N   D E L E T E   C A S C A D E  
 G O  
 A L T E R   T A B L E   [ d b o ] . [ a c _ W i s h l i s t I t e m s ]   C H E C K   C O N S T R A I N T   [ a c _ W i s h l i s t s _ a c _ W i s h l i s t I t e m s _ F K 1 ]  
 G O  
 / * * * * * *   O b j e c t :     F o r e i g n K e y   [ a c _ U s e r s _ a c _ W i s h l i s t s _ F K 1 ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 4   * * * * * * /  
 A L T E R   T A B L E   [ d b o ] . [ a c _ W i s h l i s t s ]     W I T H   C H E C K   A D D     C O N S T R A I N T   [ a c _ U s e r s _ a c _ W i s h l i s t s _ F K 1 ]   F O R E I G N   K E Y ( [ U s e r I d ] )  
 R E F E R E N C E S   [ d b o ] . [ a c _ U s e r s ]   ( [ U s e r I d ] )  
 G O  
 A L T E R   T A B L E   [ d b o ] . [ a c _ W i s h l i s t s ]   C H E C K   C O N S T R A I N T   [ a c _ U s e r s _ a c _ W i s h l i s t s _ F K 1 ]  
 G O  
 / * * * * * *   O b j e c t :     F o r e i g n K e y   [ a c _ S t o r e s _ a c _ W r a p G r o u p s _ F K 1 ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 4   * * * * * * /  
 A L T E R   T A B L E   [ d b o ] . [ a c _ W r a p G r o u p s ]     W I T H   C H E C K   A D D     C O N S T R A I N T   [ a c _ S t o r e s _ a c _ W r a p G r o u p s _ F K 1 ]   F O R E I G N   K E Y ( [ S t o r e I d ] )  
 R E F E R E N C E S   [ d b o ] . [ a c _ S t o r e s ]   ( [ S t o r e I d ] )  
 G O  
 A L T E R   T A B L E   [ d b o ] . [ a c _ W r a p G r o u p s ]   C H E C K   C O N S T R A I N T   [ a c _ S t o r e s _ a c _ W r a p G r o u p s _ F K 1 ]  
 G O  
 / * * * * * *   O b j e c t :     F o r e i g n K e y   [ a c _ T a x C o d e s _ a c _ W r a p S t y l e s _ F K 1 ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 4   * * * * * * /  
 A L T E R   T A B L E   [ d b o ] . [ a c _ W r a p S t y l e s ]     W I T H   C H E C K   A D D     C O N S T R A I N T   [ a c _ T a x C o d e s _ a c _ W r a p S t y l e s _ F K 1 ]   F O R E I G N   K E Y ( [ T a x C o d e I d ] )  
 R E F E R E N C E S   [ d b o ] . [ a c _ T a x C o d e s ]   ( [ T a x C o d e I d ] )  
 O N   D E L E T E   S E T   N U L L  
 G O  
 A L T E R   T A B L E   [ d b o ] . [ a c _ W r a p S t y l e s ]   C H E C K   C O N S T R A I N T   [ a c _ T a x C o d e s _ a c _ W r a p S t y l e s _ F K 1 ]  
 G O  
 / * * * * * *   O b j e c t :     F o r e i g n K e y   [ a c _ W r a p G r o u p s _ a c _ W r a p S t y l e s _ F K 1 ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 4   * * * * * * /  
 A L T E R   T A B L E   [ d b o ] . [ a c _ W r a p S t y l e s ]     W I T H   C H E C K   A D D     C O N S T R A I N T   [ a c _ W r a p G r o u p s _ a c _ W r a p S t y l e s _ F K 1 ]   F O R E I G N   K E Y ( [ W r a p G r o u p I d ] )  
 R E F E R E N C E S   [ d b o ] . [ a c _ W r a p G r o u p s ]   ( [ W r a p G r o u p I d ] )  
 O N   D E L E T E   C A S C A D E  
 G O  
 A L T E R   T A B L E   [ d b o ] . [ a c _ W r a p S t y l e s ]   C H E C K   C O N S T R A I N T   [ a c _ W r a p G r o u p s _ a c _ W r a p S t y l e s _ F K 1 ]  
 G O  
 / * * * * * *   O b j e c t :     F o r e i g n K e y   [ a c _ P r o d u c t s _ a c _ P r o d u c t E x t e n d e d _ F K 1 ]         S c r i p t   D a t e :   0 9 / 2 4 / 2 0 1 1   2 2 : 2 4 : 2 4   * * * * * * /  
 A L T E R   T A B L E   [ d b o ] . [ b h _ P r o d u c t E x t e n d e d ]     W I T H   C H E C K   A D D     C O N S T R A I N T   [ a c _ P r o d u c t s _ a c _ P r o d u c t E x t e n d e d _ F K 1 ]   F O R E I G N   K E Y ( [ P r o d u c t I D ] )  
 R E F E R E N C E S   [ d b o ] . [ a c _ P r o d u c t s ]   ( [ P r o d u c t I d ] )  
 G O  
 A L T E R   T A B L E   [ d b o ] . [ b h _ P r o d u c t E x t e n d e d ]   C H E C K   C O N S T R A I N T   [ a c _ P r o d u c t s _ a c _ P r o d u c t E x t e n d e d _ F K 1 ]  
 G O  
 
