# [Temporary Table]
Ø The
name of this table starts with #.
Ø
Temp table can be accessed within the
declared stored procedure.
Ø The
scope of temp table does not exist beyond the stored procedure.
Ø Temporary table will be dropped automatically on end of each session.
But it will always
be better to drop the table physically using the code
Ø Temp
tables can be created with the same name in multiple windows.
Ø Different
users can create diff temp tables with the same name.
Ø The
tables created will be having a unique id for each session.
Ø The
table name will be appended with the number allocated for that session.
Ø It
will always be better to create indexes on the temp tables and use that within
the stored procedures.
Ø Any procedure with a temporary table cannot be pre-compiled

Join the conversation! Your thoughts help the community grow.