i f   n o t   e x i s t s   ( s e l e c t   *   f r o m   s y s . o b j e c t s   w h e r e   t y p e   =   ' P '   A N D   O B J E C T _ I D   =   O B J E C T _ I D ( ' S p _ A p i R e q u e s t L o g _ I n s e r t ' ) ) 
 
 b e g i n 
 
 	 e x e c ( ' C R E A T E   P R O C E D U R E   [ d b o ] . [ S p _ A p i R e q u e s t L o g _ I n s e r t ]   a s   b e g i n   s e l e c t   0   e n d ' ) 
 
 e n d 