I have declared a procedure which creates a temporary table like:
create table #parents(
id integer null,
)
now there is something like an insert into #parents using the result of a different procedure, let's say GetSpecialParents.
The GetSpecialParents procedure uses again a statement like
create table #parents(
id integer null,
)
Will the two temporary table definitions conflict with each other? Will both procedures use the same table, or will the tables be local to the procedure which created it?
So do I have to make sure, that all temporary tables which might be called in a sequence of procedures have a unique name?