Got more questions? Find advice on: ASP | XML | Regular Expressions | Windows
in Search
Welcome to SqlAdvice Sign in | Join | Help

facing problem in store procedure

Last post 05-17-2008, 3:26 AM by walia_jagwinder. 0 replies.
Sort Posts: Previous Next
  •  05-17-2008, 3:26 AM 42358

    facing problem in store procedure

    hi all
    i have made a procedure. In which i use IN condition but the condition is not working.

    create procedure getbalance
    @acode varchar(2000),
    @csh varchar(2000)
    as
    select * from tablename where acode = @acode and c_sh in (@csh)




    when i pass @acode=111 and @csh='PNW'
    then this procedure work
    but i pass @acode=111 and @csh =('PNW','PPL')
    then this procudre doesnot work
    please suggest
    Filed under:
View as RSS news feed in XML