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)
 Returning output parameters from SQL to ASP

Author  Topic 

AskSQLTeam
Ask SQLTeam Question

0 Posts

Posted - 2001-07-19 : 12:54:57
Lorraine writes "SQL Server 2000 Enterprise
Windows 2000 Server

I am trying to return a recordset of data based on an input parameter, along with an output parameter
that contains the recordcount, using a stored procedure for display on an ASP page.

The execution statement looks like this:

exec sp_kywdsearch 'Alabama', @reccount = reccount OUTPUT

The error message looks like this:
Cannot use the OUTPUT option when passing a constant to a stored procedure.

Can this be done?
What am I doing wrong?

Please help!"
   

- Advertisement -