RE: Result of dynamic query in variable
But Somehow i am again where i was before when i create the function using same statements Example: Create Function fnTest123() Returns varchar(255) As Begin declare @SQL nvarchar(4000) declare @Params nvarchar(4000) declare @name varchar(255) select @SQL = 'Select @nm = name from sysobjects where id = 1' select @Params = '@nm varchar(255) output' EXECUTE sp_executesql […]
2003-12-15
2 reads