dbTalk Databases Forums  

Emailing data from a table

microsoft.public.sqlserver.dts microsoft.public.sqlserver.dts


Discuss Emailing data from a table in the microsoft.public.sqlserver.dts forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
borr
 
Posts: n/a

Default Emailing data from a table - 07-15-2003 , 09:38 AM






Hi,

I have created a DTS package with a SQL Task to query a
table that brings back around 100 records. The fields are:
Email address,
Title,
Problem ID.

I created 3 global variable gvEmail, gvTitle and gvProblem.

On the SQL Task, I selected the output Parameters type =
rowvalue. I then mapped the fields to the respective
global variables. When I execute the query, and look at
the values for the global variables, I always see the
first record.

My objective is to send emails to the email addresses that
are in my query. For each record in the query, I want to
send a seperate email (gvEmail), the problem Id
(gvProblem) and the title of the problem (gvTitle).

Can someone please give me some guidance?


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.