if exists(select 0 from table_name) and 1=1 and 2=2 and exists(select 0 from table_name)begin print 'OK'endelsebegin print ''end