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 SQL string to ASP

Author  Topic 

AskSQLTeam
Ask SQLTeam Question

0 Posts

Posted - 2001-11-26 : 09:34:20
PAdraig writes "Hi

Basically I want to return an SQL string like "I found the record on this date to ASP" and I am coming back with a blank recordset when I use...this

Select @Message="Found Record"

How can I fix this..."

royv
Constraint Violating Yak Guru

455 Posts

Posted - 2001-11-26 : 09:56:47
You need to alias the variable:

SELECT @Message='Found Record' AS Message

*************************
Just trying to get things done
Go to Top of Page
   

- Advertisement -