StoredProcedure
How to write insert,update,select in single storedProcedure
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.
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
DRISHTY134 reputationPosted May 18, 2010, 12:46 AM EDT
Hi,
CREATE PROC USP_Test
AS
BEGIN
INSERT INTO Table1(ID,Name) VALUES(1,'Sam')
UPDATE Table1 SET Name='Sandy' WHERE ID=1
SELECT * FROM Table1
END
Venkatesan JayakanthamRank #256 · 9.8K reputationPosted May 18, 2010, 10:01 AM EDT
Check my blog for more sample,
http://venkattechnicalblog.blogspot.com/
Cheers,
Venkatesan Prabu .J