This is a discussion on sys.tables starting with # within the SQL Server forums, part of the Microsoft SQL Server category; --> Hello, if there are tables with names starting with a # I canīt look into them, e.g. by doing ...
| |||||||
| Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| Hello, if there are tables with names starting with a # I canīt look into them, e.g. by doing "select * from tempdb.sys.tables". What is the reason for such tables, who creates them and how I can see their content? thanks and regards Mark |
| ||||
| Mark wrote: > Hello, > > if there are tables with names starting with a # I canīt look into them, > e.g. by doing "select * from tempdb.sys.tables". What is the reason for such > tables, who creates them and how I can see their content? > > thanks and regards > Mark Table names beginning with # are temp tables. They can be created like any other but they reside in tempdb rather than the current database. Try: SELECT * FROM tempdb.sys.tables WHERE name LIKE '#%'; -- David Portas, SQL Server MVP Whenever possible please post enough code to reproduce your problem. Including CREATE TABLE and INSERT statements usually helps. State what version of SQL Server you are using and specify the content of any error messages. SQL Server Books Online: http://msdn2.microsoft.com/library/m...S,SQL.90).aspx -- |