How do I use store procedures?

G

Guest

How do I create and use "store procedures" with an SqlConnection object? I need to create a procedure that will add a record and return the new ID of said record. I know that I can accomplish this with "store procedures." If you can direct me to a simple sample, I would really appreciate it.

- Rashad Rivera
 
W

William Ryan eMVP

Check out Bill Vaughn's article on Retrieving the Gozoutas at
www.betav.com -> Articles -> MSDN
Rashad Rivera said:
How do I create and use "store procedures" with an SqlConnection object?
I need to create a procedure that will add a record and return the new ID of
said record. I know that I can accomplish this with "store procedures." If
you can direct me to a simple sample, I would really appreciate it.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top