Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

DTS Export from tabelXPTO to file and then update tableXPTO

Status
Not open for further replies.

y3by

Programmer
Jan 15, 2002
92
0
0
PT
hi ppl,
i'm trying to design a dts that does the following:

1st - select COD,NAME,PHONE from TABLEXPTO where SENTFLAG=0
2nd - write thoose records into a file expfile.txt
3rd - if the writing of the records runs well then
update TABLEXPTO set SENTFLAG = 1 and SENTDATE = getdate() where SENTFLAG = 0
4th - send an email with the atach file expfile.txt

Note: the tabelxpto is like this
COD,NAME,PHONE,SENTFLAG,SENTDATE,PKID

I try to use datadrivenquery but something is in may way...
BY

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top