![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
|
I create a DTS package but the job will be running manually from account admin's desktop, I want SQL to sent me a mail once they run the batch file |
|
I installed MAPI client Outlook 2000 on the SQL server, configured the profile. I know how to use xp_sentmail, my question is how to implement this with SQL mail xp_sentmail. |
#2
| |||
| |||
|
|
I create a DTS package but the job will be running manually from account admin's desktop, I want SQL to sent me a mail once they run the batch file and call 'dtsrun /S sqlserver /E /N tableImport' from their workstation. It is SQL 7. I installed MAPI client Outlook 2000 on the SQL server, configured the profile. I know how to use xp_sentmail, my question is how to implement this with SQL mail xp_sentmail. |
#3
| |||
| |||
|
|
What I like to do is create a script to use CDONTS to mail me something. This way you do not have to worry about a profile and things like that. Just make sure that IIS is installed, and you are good to go. Ozone "LY" <lixiay (AT) hotmail (DOT) com> wrote in message news:5619ACCE-0479-4614-8281-2308807050EA (AT) microsoft (DOT) com... I create a DTS package but the job will be running manually from account admin's desktop, I want SQL to sent me a mail once they run the batch file and call 'dtsrun /S sqlserver /E /N tableImport' from their workstation. It is SQL 7. I installed MAPI client Outlook 2000 on the SQL server, configured the profile. I know how to use xp_sentmail, my question is how to implement this with SQL mail xp_sentmail. |
#4
| |||
| |||
|
|
-----Original Message----- In message <5619ACCE-0479-4614-8281- 2308807050EA (AT) microsoft (DOT) com>, LY lixiay (AT) hotmail (DOT) com> writes I create a DTS package but the job will be running manually from account admin's desktop, I want SQL to sent me a mail once they run the batch file and call 'dtsrun /S sqlserver /E /N tableImport' from their workstation. It is SQL 7. I installed MAPI client Outlook 2000 on the SQL server, configured the profile. I know how to use xp_sentmail, my question is how to implement this with SQL mail xp_sentmail. Add a new Execute SQL Task to the start of your package that calls xp_sendmail. -- Darren Green (SQL Server MVP) DTS - http://www.sqldts.com PASS - the definitive, global community for SQL Server professionals http://www.sqlpass.org . |
#5
| |||
| |||
|
|
Darren,I thought I configured the profile successfully, I tested every step for the profile. But when I test the xp_sendmail in QA, it is running forever, and it did not reach recipient. I have to cancel it manually, does it mean this is a problem with the Profile setup? |
|
I have check 'Auto start SQL mail when SQL server started' in the SQL Mail property, the only thing that I can think of is that Outlook 2002 does not compatible with SQL server7. |
![]() |
| Thread Tools | |
| Display Modes | |
| |