• if not exists(select object_id('tempdb..#temp_work'))

      print 'create temp table'

    else

      print 'exists'