using SQL Advanced Server 2000
I have some jobs that use views. The first step creates the view and the last step drops the view. I have been reading up on temporary tables (#mytable, ##mytable) and want to know:
If I want a temporary portion of a database, so that I can run queries against it, is it better to use a view and drop it when I'm done or should I create a temporary table.
Also, does a temporary table get dropped automatically or does it require the DROP TABLE command?
-SQLBill
I have some jobs that use views. The first step creates the view and the last step drops the view. I have been reading up on temporary tables (#mytable, ##mytable) and want to know:
If I want a temporary portion of a database, so that I can run queries against it, is it better to use a view and drop it when I'm done or should I create a temporary table.
Also, does a temporary table get dropped automatically or does it require the DROP TABLE command?
-SQLBill