Hi all,I have a stored procedure, sp_util_getauthorstring, which returns a single value. I'd like to include this value as part of a larger select statement. Assuming the procedure itself works when called separately, can anyone tell me why the following...select exec(sp_util_buildauthorstring 2,1,'=','^') as authorlist
...fails to work? The errors I'm getting are:Server: Msg 156, Level 15, State 1, Line 1Incorrect syntax near the keyword 'exec'.Server: Msg 170, Level 15, State 1, Line 1Line 1: Incorrect syntax near 'sp_util_buildauthorstring'.
I've tried all the permutations of spaces and parentheses I can think of, and searched both the site and the forum, with no luck.Thanks in advance,matt