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)
 runniong an sp for each row in select statement

Author  Topic 

AskSQLTeam
Ask SQLTeam Question

0 Posts

Posted - 2000-12-07 : 08:38:11
Axel writes "Can I call a SP for each row in a select statement of another SP, like this:

CREATE PROCEDURE SP_getAllPublications

AS

SELECT
publicationID,
publicationHeader,
publicationPublishDate,
publicationCreatedDate,
publicationPublish,
publicationCategoryName = (SP_getCategoriesString publicationID)

FROM
publication

If so, why doesn ´t this work?
If not, how should i go about it? SP_getCategoriesString returns a string, built from a loop through a cursor.
/Axel"
   

- Advertisement -