How to insert in .net using store procedure
how to insert in .net (asp.net using c#) using store procedure
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
Abhijit baruaRank #3,722 · 397 reputationPosted Aug 6, 2012, 1:45 AM EDT
con.open();
SqlCommand cmd = new SqlCommand("storedproname", conn);
cmd.executenonquery();
con.close();
create procedure like below
create procedure storedproname
@id int,
@name varchar(50)
as
begin
insert into table_name(id,name) values(@id,@name)
end
any problem let me know.
Enjoy Codding.
Satyapriya NayakRank #47 · 31.5K reputationPosted Aug 6, 2012, 4:06 AM EDT