SQL Server - Using Declare in Table value Function

Sql Server - Using Declare in Table value Function

create function Func()
returns @T table(ColName int)
as
begin
          declare @Var int
          set @Var = 10
          insert into @T(ColName) values (@Var)
          return
end

Comments

Popular posts from this blog

Rebuild Index

Exclude property of Class Object from Serialization

Multiple Connection from Config File