Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations sizbut on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Creating and then executing Stored Procedures

Status
Not open for further replies.

Rexolio

Technical User
Aug 29, 2001
230
Hi...

I'm TRYING to learn how to create a Stored Procedure in SQL for adding new records to a table and then creating an ASP that will collect data from a user via a form and then add it to the SQL table via the Stored Procedure.

Can anyone provide me with some sample code for one of the 2 or both? I'm using my books as a go-by, but still having trouble.

Thanks,
Rexolio
 
the table will look like this:
firstname char(30)
email char(30)
so here is the SP:
CREATE PROCEDURE [sp_insertvalues]
(
@firstname char(30),
@email char(30)
)
AS
Begin
insert into tablename values (@firstname,@email)
END

and for the asp code you should check
thread333-80293 or
thread333-75792

Hope it helps,
Durug
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top