I am trying to execute below sp but i am unable to get the result.
reasion is i am using function which is return string values like ('ab','df','dff f').when i use this function in operator it is not returning any value ..anybody help me why it is not returning ?.
reasion is i am using function which is return string values like ('ab','df','dff f').when i use this function in operator it is not returning any value ..anybody help me why it is not returning ?.
Code:
function name ([dbo].fnParseSplitString(@stQueueName))) ALTER PROCEDURE [Strategies_uspGetNoCreditBureauReview] -- Add the parameters for the stored procedure here @StrategiesId int AS BEGIN -- SET NOCOUNT ON added to prevent extra result sets from -- interfering with SELECT statements. SET TRANSACTION ISOLATION LEVEL READ UNCOMMITTED DECLARE @stQueueName varchar(50) SET NOCOUNT ON; if @StrategiesId is not null begin -- select statements for procedure here select @stQueueName = (SELECT StrategiesQueueandWamName from [dbo].[Strategies] where StrategiesId = @StrategiesId) select qc.QueueId,qc.QueueName,wc.WamName,lc.LocationName from Channelsmapping cm join [dbo].[QueueChannels] qc on cm.QueueId = qc.QueueId join LocationChannels lc on lc.LocationId = cm.LocationId join [dbo].[WamChannels] wc on wc.WamId = cm.WamId where qc.Queueid in (select queueid from [dbo].[QueueChannels] where queuename in ([dbo].fnParseSplitString(@stQueueName))) group by qc.QueueId,qc.QueueName,wc.wamname,lc.locationname order by qc.QueueId,qc.QueueName,wc.wamname,lc.locationname asc End END
Comment