Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 SQL Server Development (2000)
 Pass variable from JSP/ASP to View

Author  Topic 

rml
Starting Member

7 Posts

Posted - 2002-02-23 : 03:51:24
How to create a View in SQL Server 2000 that can accept some variables to retreive data?
Also, how to use JSP / ASP to pass variables to that view?


robvolk
Most Valuable Yak

15732 Posts

Posted - 2002-02-23 : 09:53:37
Views cannot accept parameters, you can only pass parameters to stored procedures (and user-defined functions in SQL 2000, which can return table variables).

There are numerous ASP sites that document how to connect to databases and process information. JSP is a little different but similar enough that you could modify the ASP code to work for it. These sites are good starting points:

www.4guysfromrolla.com
www.15seconds.com
www.asp101.com
www.learnasp.com
www.aspalliance.com

Go to Top of Page
   

- Advertisement -