Most likely no. If the temporary table is defined as #temp
or @temp
, then you will be safe, since these temporary tables can only be accessed when creating a connection and will only last for the duration of the stored procedure. If, however, you use tables ##temp
(two pound signs), while these tables are also preserved as long as the created stored procedure is executed, they are available and available for all connections to this SQL instance.
Itβs good that you are not using tables ##, so you are probably safe.
Philip kelley
source share