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.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Satyapriya NayakPosted Aug 6, 2012, 8:06 AM
Abhijit baruaPosted Aug 6, 2012, 5:45 AM
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.