Syntax :
Create table #TableName
(
--Colun Names
)
Here # is a must when creating Temporary table
EX :
(
// Parameters
)
as
begin
create table #TempTable
(
ID int identity(1,1),
Name varchar(250),
Address varchar(500)
)
drop #TempTable
End
#TempTable should be dropped else we will get ERROR while executing SP 2nd time..
drop #TempTable
End
#TempTable should be dropped else we will get ERROR while executing SP 2nd time..
No comments:
Post a Comment