Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
| Author |
Topic |
|
AskSQLTeam
Ask SQLTeam Question
0 Posts |
Posted - 2004-02-06 : 08:16:38
|
| Susan writes "I have a stored procedure (proc1) that creates a local temporary table. This stored procedure (proc1) calls another procedure (proc2). Can the temporary table be sent as a parameter to the stored procedure(proc2)? OR if I change the local temporary table to a global temporary table will I be able to access it in the (proc2) stored procedure?" |
|
|
robvolk
Most Valuable Yak
15732 Posts |
Posted - 2004-02-06 : 08:18:49
|
| You don't need to do either (can't pass it anyway), you can reference a temp table in a procedure if it was created before the procedure was called, as long as it was created by the same connection/session. |
 |
|
|
|
|
|