iwrk4dedpr
Programmer
Hello,
I'm in dire need of some help. I've taken control of a project for our training department. It uses a database on a SQL 7 database server. Which I've never used.
I've created a new table and now want to create a stored procedure ( that would be called from a .asp web page ), however, I've been less than successful. I've read in various places that using stored procedures is more efficient than sending the SQL string each time. So that's what I'm trying to accomplish. The following is some of the datagbase specific information.
Table Inforamtion
Name: tbl_ReviewQuestions
Fields
Category
Version
Section
Number
Question
SQL statment that I came up with ( query parameters are [] )
SELECT *, Category, Version, Section, Number
FROM tbl_ReviewQuestions
WHERE (Category = [Enter Category])
ORDER BY Category, Version, Section, Number
The real questions are these.
1. How do I create a stored procedure?
2. How do I test the stored procedure?
I'm using the SQL Server Enterprise Manager. Any help will be greatly appreciated.
I'm in dire need of some help. I've taken control of a project for our training department. It uses a database on a SQL 7 database server. Which I've never used.
I've created a new table and now want to create a stored procedure ( that would be called from a .asp web page ), however, I've been less than successful. I've read in various places that using stored procedures is more efficient than sending the SQL string each time. So that's what I'm trying to accomplish. The following is some of the datagbase specific information.
Table Inforamtion
Name: tbl_ReviewQuestions
Fields
Category
Version
Section
Number
Question
SQL statment that I came up with ( query parameters are [] )
SELECT *, Category, Version, Section, Number
FROM tbl_ReviewQuestions
WHERE (Category = [Enter Category])
ORDER BY Category, Version, Section, Number
The real questions are these.
1. How do I create a stored procedure?
2. How do I test the stored procedure?
I'm using the SQL Server Enterprise Manager. Any help will be greatly appreciated.