What is a temp table? how to denote temp table?
Answer Posted / jayakumar
Temporary tables are created in the tempdb database. To
create a temporary table, you must have created table
permission in tempdb.
You can create temp tables in 2 ways :
1. Create table #tablename
2. Create table tempdb..tablename
a).If you create the table as per the above mentioned ways,
the table will get dropped automatically when the
session/procedure ends or you drop it manually.
b).If you don’t use the above mentioned ways and use
only "create table table name" command in tempdb the table
will stay there as long as you drop in manually.
c).If you create a table in any other database other than
tempdb, it will not be a temp table.
| Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
Explain about the features of sybase iq?
Does table partitioning require user-defined segments in sybase?
How do I set ts role in order to run certain dbccs?
Can you create your own sps for system wise?
How do I tell which tables have identities in sybase?
Why not max out all my columns sybase?
How to check if sybase database is up and running?
What do you mean by sybase iq?
When should I execute an sp_recompile in sybase?
You need to manipulate varbinary columns in sybase. How would you do that?
How do I exclude a column in sybase?
What is the default table size in sybase?
Explain the advantages of sybase iq.
How to swap a db device with another?
What are the main differences between 11.x and 12.x versions of sybase?