temp table in sysobjects

  • jts_2003 (11/23/2010)


    What interested me was how long the random names are in sysobjects - obviously Microsoft planning for LOTS of temporary objects being created!

    It's not the number of names, it's to lower the chances of generating duplicate names. That's why GUID/UNIQUEIDENTIFIER values are so long.

    David Lathrop
    DBA
    WA Dept of Health

  • This will surely work :

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

  • archana.singh 38798 (11/23/2010)


    This will surely work :

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

    No, because it will also return tables called '#testvm_something' etc. as was explained earlier

  • Thanks for the question.

    Jason...AKA CirqueDeSQLeil
    _______________________________________________
    I have given a name to my pain...MCM SQL Server, MVP
    SQL RNNR
    Posting Performance Based Questions - Gail Shaw[/url]
    Learn Extended Events

  • Well said Nigel. 🙂

  • Thanks for the question, and the discussion.

Viewing 6 posts - 31 through 35 (of 35 total)

You must be logged in to reply to this topic. Login to reply