Dumb dbmail ?

  • Ok I am stumped, got dbmail to work however, when I wanted to add another name to the receipt line I get an error, can't find anything in BOL which shows how to separate

    EXEC msdb.sp_send_dbmail

    @profile_name = 'QCSIPRODSQLEXEC',

    @recipients = 'user1@msstl.com';'user2@cmsstl.com',

    @subject = 'Incorrect QCSD Seq Counts';

    If I pull out 2nd name it works

  • timscronin (12/14/2009)


    Ok I am stumped, got dbmail to work however, when I wanted to add another name to the receipt line I get an error, can't find anything in BOL which shows how to separate

    EXEC msdb.sp_send_dbmail

    @profile_name = 'QCSIPRODSQLEXEC',

    @recipients = 'user1@msstl.com';'user2@cmsstl.com',

    @subject = 'Incorrect QCSD Seq Counts';

    If I pull out 2nd name it works

    Per BOL:

    [ @recipients = ] 'recipients'

    Is a semicolon-delimited list of e-mail addresses to send the message to. The recipients list is of type varchar(max). Although this parameter is optional, at least one of @recipients, @copy_recipients, or @blind_copy_recipients must be specified, or sp_send_dbmail returns an error.

    So,

    @recipients = 'user1@msstl.com;user2@cmsstl.com', -- like this

  • Duh, thanks for pointing out the obvious, can't see the trees through the forest

  • No problem, happens to us all at one time or another.

  • Now that I am turning 50 it seems more frequent

  • timscronin (12/14/2009)


    Now that I am turning 50 it seems more frequent

    I'm right there with you.

Viewing 6 posts - 1 through 5 (of 5 total)

You must be logged in to reply to this topic. Login to reply