trpnbillie
Programmer
Hi guys, I 'll try to be articulate on this one!
On Table A, I have an insert trigger that calls a stored procedure. The stored procedure contains local temp tables (#tempTable).
Considering that many records can be inserted into Table A at any time, at close intervals and by the same person, are the local temp tables safe when the stored procedure is kicked off multiple times? Do they retain their contents or can the temp tables be adversely affected. (That is, if records are inserted back to back, will the second execution of stored procedure affect the same temp table if the first execution is still running?)
I suppose I am not clear on "Connections" (if the smae trigger calls the sproc 3 times in a 2 seconds, is that 1, 2 or 3 connections?)
Can I use my local temp tables like this and be safe?
Thanks you SO much for any help!!
On Table A, I have an insert trigger that calls a stored procedure. The stored procedure contains local temp tables (#tempTable).
Considering that many records can be inserted into Table A at any time, at close intervals and by the same person, are the local temp tables safe when the stored procedure is kicked off multiple times? Do they retain their contents or can the temp tables be adversely affected. (That is, if records are inserted back to back, will the second execution of stored procedure affect the same temp table if the first execution is still running?)
I suppose I am not clear on "Connections" (if the smae trigger calls the sproc 3 times in a 2 seconds, is that 1, 2 or 3 connections?)
Can I use my local temp tables like this and be safe?
Thanks you SO much for any help!!