SQL Server 2005: Subquery in EXEC ?

Posted by BahaiResearch.com on Stack Overflow See other posts from Stack Overflow or by BahaiResearch.com
Published on 2010-04-19T12:42:39Z Indexed on 2010/04/19 12:43 UTC
Read the original article Hit count: 187

Filed under:
|
|
|
EXEC [dbo].[pr_cfgAddFact] 
@SettingName = 'TransferBatch', 
@RoleFK = SELECT TOP 1 rolepk FROM cfgRole WHERE cfgRole.Name = 'SuperAdmin'

Why would SQL complain about the SELECT clause here? I am trying to run the proc with the sub query getting the data.

© Stack Overflow or respective owner

Related posts about sql

Related posts about subquery