Home Forums SQL Server 2008 SQL Server 2008 Administration DMV query to get at data stored in tempdb tables, as well as metadata information on currently active tempdb tables RE: DMV query to get at data stored in tempdb tables, as well as metadata information on currently active tempdb tables

  • No. You cannot query temp tables that were created in other connections.

    Offhand don't know about the second, try sys.partitions or one of the related DMVs (sys.dm_db_partition_stats or something like that)

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass