Subquery returned more than 1 value

前端 未结 2 1848
青春惊慌失措
青春惊慌失措 2021-01-16 05:01

I need to set up a job in SQL Server 2008 to run at the first of the month sending an email to our customers. However, I do not know how to loop through the results of the s

2条回答
  •  臣服心动
    2021-01-16 05:51

    the problem is @recipients = @MailRecipients. It is expecting a string (an email address) and you are giving it a recordSet.

提交回复
热议问题