Site Sponsored By: SQLDSC - SQL Server Desired State Configuration
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.
I have the following function.It is working fine however it's slow.Is it possible to speed it up?CREATE FUNCTION dbo.viewAnswers (@TranID decimal,@groupID varchar(10) ) RETURNS varchar(8000)ASBEGIN Declare @Notes varchar(8000) Set @Notes='' Select @Notes=@Notes + Case Answer when 'Yes' then 'Y' else 'N' end + ' ' From answers Where GroupID=@groupID and tranid=@TRANID Return @NotesEND