DECLARE @DNNo NVARCHAR(15), @InvDNNo NVARCHAR(200)
SELECT @DNNo='11-0748-DN01', @InvDNNo='11-0748-DN01,11-0748-DN02,11-0748-DN03,11-0748-DN04'
Select 1 Where @DNNo IN (''''+ REPLACE(@InvDNNo,',',''',''') + '''' )
It must be worked as per syntax, but it doesn't
Anybody can help me out?
Thanks & regards
Abdul Rahiman