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 - 2005-01-04 : 08:45:16
|
| ARMIN writes "Hihow i can create the temporary table inside the stored procedure" |
|
|
RM
Yak Posting Veteran
65 Posts |
Posted - 2005-01-04 : 08:56:04
|
| CREATE PROCEDURE ProcedureName( @myVar1 datatype , @myVar2 datatype . .)AS DECLARE @localTable Table ---This is the table datatype ( field1 datatype, field2 datatype . . . ) if you want to create a temporary table you can use create table #localTable -- local ( field1 datatype, field2 datatype . . . ) create table ##localTable -- global ( field1 datatype, field2 datatype . . . ) |
 |
|
|
|
|
|