SQL Server creating a temporary table from another table -
I am looking to create a temporary table that is used as an intermediate table when compiling a report .
For a little background, I am porting VB6 apps to .net
I can use it to create a table ...
SELECT TOP 0 * INTO #temp_copy from temporary;
This creates an empty copy of the temporary, but it is not a primary key
Is there a way to create a temporary table and barriers?
Should I create obstacles after this?
Am I just making the table using table form, I did not want to do this because there are 45 columns in the table and it will have to fill the process with a lot of unnecessary cruelty.
The table is necessary because many people can create reports at the same time, so I can not use an intermediary table
Do you really need the primary key? If you are making a mistake and are only selecting the data needed for the report, then you will not have to go through every row in the temporary table anyway?
Comments
Post a Comment