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)
 retrieving values from sp by ASP page

Author  Topic 

JNotenboom
Starting Member

27 Posts

Posted - 2001-06-28 : 10:54:03
Hello,

Is it possible to retrieve fields from a certain table AND to get an OUTPUT variable at the same time by calling a stored procedure once?

for example, the sp contains:
select name, surename from tblUser
and a outputvariable (for example an amount):
@amount = 1200

In my asp page, I want to get these three fields. Can I do it like this:
Set conDB = server.createObject("blabla")
strSQL = sp_johan
Set rstGet = conDB.Execute(strSQL)

rstGet.Fields("name")
rstGet.Fields("surename")
rstGet.Fields("amount")

Can anybody help me? thanx in advance!


   

- Advertisement -