Stored procedures are a feature of popular database management systems such as Oracle and Microsoft SQL Server 2000. This article will give you a quick overview of stored procedures and how to pass parameters to them from ASP.
Stored procedures are a feature of popular database management systems such as Oracle and Microsoft SQL Server 2000. They allow a developer to access and manipulate databases quickly and efficiently, and, because they’re compiled, they execute much faster that normal interpreted SQL queries.
When you’re developing web apps using ASP and Microsoft SQL Server 2000, it’s all too easy to “hard code” your SQL queries directly into ASP. Hard coding your SQL queries not only adds spaghetti code to your script, but it also under utilises the power that Microsoft SQL Server 2000 has to offer.
In this article, I’ll show you how to use ADO parameters to work with stored procedures using Active Server Pages. To get started, you’ll need:
A web server running Windows 2000 with IIS5 installed
Access to a computer running SQL Server 2000
An intermediate understanding of ASP and SQL
You can also use Personal web server for Windows 9x or Windows NT4 with IIS4.