• Correct sql is

    select * from tempdb..sysobjects where name like '%#testvm%'