我执行以下操作:
DECLARE @return_code_as_nvarchar AS NVARCHAR(16)
SET @return_code_as_nvarchar = CAST(@return_code AS NVARCHAR)
DECLARE @notification_message AS NVARCHAR(255)
SET @notification_message = N'New Activity added with Id ' + @return_code_as_nvarchar
EXEC dbo.AddNote 0, @responsible_username, @notification_message
但我在标题中收到错误。这个演员在哪里出错了?当我试图将整数转换为nvarchar而非nvarchar转换为整数时,错误消息也会向后发声。