I'm sure there are better ways to do this, but here's a short tutorial I wrote a couple of weeks ago on databases .
Hope this helps
Duki
Nearly a Posting Virtuoso
1,475 posts since Jun 2006
Reputation Points: 817
Solved Threads: 32
You can add stored procedures from VS if you open the DB in the Server Explorer (View Menu - Server Explorer).
If your DB is not already in the window then you will have to open it using the "Connect to Database" button at the top of the window.
Once open, you should be able to find a "Strored Procedures" folder. Right click and select "Add New Stored Procedure".
You will need to know SQL to write the procedure. That is too much for me here.
Maybe someone else could provide some suitable links that will help.
nick.crane
Nearly a Posting Virtuoso
1,230 posts since Feb 2010
Reputation Points: 375
Solved Threads: 187
Duki
Nearly a Posting Virtuoso
1,475 posts since Jun 2006
Reputation Points: 817
Solved Threads: 32