Forum Replies Created

Viewing 3 posts - 1 through 3 (of 3 total)

  • RE: xp_sendmail and variables in @query

    final solution:

    I created a stored procedure of the query with an input parameter of @authoremail. This allowed me to set a string variable, @myquery, equal to the execute statement +...

  • RE: xp_sendmail and variables in @query

    Thanks for the replies. I will try a temp table.

    I have removed code for the sake of simplification, that is why some parts are not there.

  • RE: xp_sendmail and variables in @query

    SAMPLE CODE:

    declare @authoremail as varchar(80)

    declare @authorhomeemail as varchar(80)

    declare emcursor cursor

    global

    for

    select distinct authorid, authoremail from authors

    where authorid is not null and authoremail is not null

    and authoremail not like '' and authorid...

Viewing 3 posts - 1 through 3 (of 3 total)