I am trying to diagnose T-sql that writes out temporary tables, but the SQL Server Management Studio returns an error when you attempt to examine the temporary tables - either by listing the contents, or examining the structure:
************** Exception Text **************
Microsoft.SqlServer.Management.Sdk.Sfc.EnumeratorException: Failed to retrieve data for this request. ---> Microsoft.SqlServer.Management.Sdk.Sfc.InvalidQueryExpressionEnumeratorException: urn could not be resolved at level Column.
The same thing happens if you try to look at the Index category, but with Index instead of Column in the error. I am using SQL Server Express 2008, and have tried SQL Server Management Studios 2008a nd 2012.
Anyone have any ideas on how to work around this?