how to create stored porcedure using in clause sqlserver
mycode
create proc getemp(@ename varchar(25))
as
begin
select * from emp where ename in(@ename)
end
go
exec getemp 'aa','bb'
sqlserver showing error two many parametr passed
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Prasham SabadraRank #116 · 19.3K reputationPosted May 31, 2016, 9:51 PM EDT
Akshay PhadkeRank #161 · 14.6K reputationPosted May 31, 2016, 11:40 PM EDT
Avikshith AradhyaRank #4,672 · 331 reputationPosted Jun 1, 2016, 1:14 AM EDT
Raja TRank #685 · 3.5K reputationPosted Jun 2, 2016, 5:18 AM EDT
kumar yoga156 reputationPosted Jun 2, 2016, 8:25 PM EDT