Click here to Skip to main content
15,896,526 members
Please Sign up or sign in to vote.
3.00/5 (1 vote)
See more:
can you provide sample code on how calling two stored procedure in one function method using SqlCommand with Transaction and Commit?

thanks
Posted
Comments
Sergey Alexandrovich Kryukov 11-Feb-12 21:02pm    
Do you think executing one is different from executing two or more? Why?
--SA
zyck 12-Feb-12 2:25am    
yes actually, base on your links given below this is very good links thanks anyway

1 solution

First, learn how to use stored procedures and how to execute one:

http://www.csharp-station.com/Tutorials/AdoDotNet/Lesson07.aspx[^],
http://msdn.microsoft.com/en-us/library/ms131094%28v=sql.100%29.aspx[^].

This CodeProject article can also be useful: Calling Stored procedures in ADO.NET[^].

After this is accomplished, write some method which executes of stored procedure, then another one. You will get a method which executes two. :-)

—SA
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900