
(c) KDV, http://ib.demo.ru

 CheckNull    null   not null .

 ,     :
Interbase  " "    ,  .
    .     
    .
,           NOT NULL.
      ,    
  .    backup,   
,   restore  "",    
 .

         restore.
     :
1.   not null    .
         IB,  .
2.   not null  - 
   -,      . -,
     ""  .  , 
      100      ,    
   update  .  .
3.   restore    - 
   "-" -  . restore, ,   
         , ..  -
      .
4.   not null   restore.
      , ..     .
   ,       IB,  
       .  .

    -  backup   , 
  not null    null-.
     ,     not null
   ,       unique constraint
(       ,       null).
     ,   " " ( ) 
  :

select distinct f.rdb$relation_name, f.rdb$field_name
from rdb$relation_fields f
left outer join rdb$index_segments s
on f.rdb$field_name = s.rdb$field_name
left join rdb$indices i
on s.rdb$index_name = i.rdb$index_name
where 
f.rdb$relation_name not starting with 'RDB$' and
f.rdb$null_flag = 1 and
rdb$unique_flag is null
order by f.rdb$relation_name, f.rdb$field_name

,     .   CHECKNULL  
  -.

          ,
     .

( ,   ,          .
  ,       "".
     Connect.     
 .       ).

         ,  
:
1.     .   ,    .
2.     "" .    
    select count(*) from table where field is null.
     where field1 is null or field2 is null...     not null
   ?        ,    
    null.
3.  count > 0       log -    
   .

!:
    count     , 
  ""  ,     
no_garbage_collect. ..     ,  
     restored, ..  .

! IBX       isc_dpb_no_garbage_collect,
..       Jeff-.    
 ,      
      isc_dpb_num_buffers, isc_dpb_dbkey_scope, isc_dpb_force_write,
      isc_dpb_no_reserve, isc_dpb_damaged, isc_dpb_verify,
  
  GenerateDPB  IBDatabase.pas.

     ib@demo.ru.

(c) KDV, http://ib.demo.ru
