IF OBJECT_ID('AUK_KONFIGURACJA') IS NULL
and OBJECT_ID('AUK_ALL_TRANSAKCJE') IS not NULL
and not exists (select 1 from WAPRODBSTATE where PRGKOD = 9)
drop table AUK_ALL_TRANSAKCJE
go

IF OBJECT_ID('AUK_KONFIGURACJA') IS NULL
and OBJECT_ID('AUK_ALL_AUKCJE') IS not NULL
and not exists (select 1 from WAPRODBSTATE where PRGKOD = 9)
drop table AUK_ALL_AUKCJE
go