You are creating a stored procedure named usp1. Usp1 will create a table that will be used during the execution
of usp1. Only usp1 will be allowed to access the table.
You need to write the code required to create the table for usp1. The solution must minimize the need to
recompile the stored procedure.
Which code segment should you use to create the table?
A.
CREATE TABLE oneTable
B.
CREATE TABLE ##oneTable
C.
CREATE TABLE #oneTable
D.
DECLARE oneTable TABLE
B is incorrect. Global temp table can be seen outside the procedure.
C is the correct answer. Local temp table
https://technet.microsoft.com/en-us/library/ms186986.aspx
https://stackoverflow.com/questions/2920836/local-and-global-temporary-tables-in-sql-server