I have a SQL Server 2000 stored procedure that accepts a number of input variables.
I need to concatenate two of them (both nvarchar) and pass that to another stored procedure. At the moment it looks like this:
EXEC usp_SProc @Variable1, @Variable2 + ' ' + @Variable3
However, when this is executed I receive the error:
Incorrect syntax near '+'
I receive the same error if I try this in a simple SELECT statement. Can anyone guide me in the right direction?
Thanks
1 Answer