Hi,
i writen stored procedure for getting values based on location but my problem is if i entered single location means its working but if i enteres multi location means its not working
ex: if i entered Chennai means its working then if i entered Chennai,Bangalo re means its not working???
set ANSI_NULLS ON
set QUOTED_IDENTIFI ER ON
GO
ALTER PROCEDURE [dbo].[Get]
@ID varchar(500)=NU LL,
@Location varchar(50)=NUL L
AS
BEGIN
select * from Details where Location in (@Location)
End
i writen stored procedure for getting values based on location but my problem is if i entered single location means its working but if i enteres multi location means its not working
ex: if i entered Chennai means its working then if i entered Chennai,Bangalo re means its not working???
set ANSI_NULLS ON
set QUOTED_IDENTIFI ER ON
GO
ALTER PROCEDURE [dbo].[Get]
@ID varchar(500)=NU LL,
@Location varchar(50)=NUL L
AS
BEGIN
select * from Details where Location in (@Location)
End
Comment