stored procedures - SQL Azure Schema issue error code 208 with temporary table -


i have couple of stored procedures create different temporary tables. @ end of procedure drop them (know not required, it's practice).

the stored procedures executed part of ssis package. got 4 different sql jobs execute same ssis package running in parallel.

when logging azure portal , using performance recommendation feature, recommendation fix schema issues. states sql error code 208. according documentation means "object not found".

temporary tables valid within scope of stored procedure , should unique name in database, not think conflicts.

i have no idea causes this, , stored procedures seems work alright. know cause here?

simplified sample of 1 of procedures:

        set nocount on;      create table #tmptransean         (           ean_art_str_id bigint ,           artikler_id bigint         );      insert  #tmptransean             ( ean_art_str_id ,               artikler_id             )             select  distinct                     eas.ean_art_str_id ,                     a.artikler_id                dbo.artikkel_priser ap                     join ean_art_str eas on eas.artikler_id = ap.artikler_id                     join wskasse_til_kasselogg ktk on eas.ean_art_str_id = ktk.id_primary                     join dbo.artikler on a.artikler_id = eas.artikler_id                     join dbo.felles_butikker b on b.butikker_id = ap.butikker_id               ktk.id_table = object_id('ean_art_str')                     , len(a.artikkelnr) >= 8                     , ktk.tidspunkt >= @tidspunkt                     , ( ( ap.butikker_id = @nbutikker_id1                             , @alle_artikler_til_kasse = 'n'                           )                           or ( b.databaser_id = @databaser_id                                , @alle_artikler_til_kasse = 'j'                              )                         )                     , b.akt_kode = 'a'                     , a.akt_kode = 'a'                     , a.databaser_id in ( -1, @databaser_id )      select  distinct             a.artikkelnr ,             s.storrelse ,             eas.* ,             ean_12 = left(eas.ean_13, 12)        dbo.ean_art_str eas             join #tmptransean t on t.artikler_id = eas.artikler_id             join artikler on a.artikler_id = eas.artikler_id             join dbo.felles_storrelser s on s.storrelser_id = eas.storrelser_id       drop table #tmptransean; end; 


Comments

Popular posts from this blog

Sort a complex associative array in PHP -

vb.net - How to ignore if a cell is empty nothing -

recursion - Can every recursive algorithm be improved with dynamic programming? -