Hi ITBobbyP,
In SQL Server, global temporary tables are visible to any user after they are created, and they are deleted when all users referencing the table disconnect from the instance of SQL Server. If a temporary table is created with a named constraint and the temporary
table is created within the scope of a user-defined transaction, only one user at a time can execute the statement that creates the temp table. For more information, please refer to Temporary Tables section in this article:
https://technet.microsoft.com/en-us/library/ms177399.aspx .
To create a stored procedure using global temporary table, you can refer to links below:
Temporary Tables in SQL Server
SQL Server - Global temporary tables
Then you can create a dataset, set Query type as Stored Procedure to execute the procedure.
If you have any question, please feel free to ask.
Best Regards,
Qiuyun Yu
Qiuyun Yu
TechNet Community Support
