• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

Calling a Stored Procedure inside a SELECT

SoftwareEng

Senior member
Hi guys, something doesn't add up.

I wrote a stored proc in SQL Server 2000, called "SP_MultiplyByTen", which simply takes a number as its parameter, and returns that number multiplied by 10.

Now, I want to call it in a SELECT statement, like this:

SELECT Account, Price, SP_MultiplyByTen(Price) FROM Accounts


But I can't! How can I call a stored proc directly in a SELECT and pass it a value from the "current" row? It's driving me nutzzz

thanks
 
Back
Top