Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 SQL Server Administration (2000)
 Using stored procedure ' xp_sendemail'

Author  Topic 

AskSQLTeam
Ask SQLTeam Question

0 Posts

Posted - 2002-12-17 : 08:13:52
Shaid writes "I have wrote a simple trigger that send's an email upon an Insert\update of a value in a column. The problem with using extended stored procedure xp_sendmail is that in order to use it in a trigger, xp_sendmail must reside in the same database of the table of which the trigger relates to. I do not want to create the trigger in the master table obviously. Is there a way I could use the xp_sendmail in any database I choose.

I am using Windows XP Pro, and SQL Server 2000."

KnooKie
Aged Yak Warrior

623 Posts

Posted - 2002-12-17 : 08:33:51
Check out this link

http://www.sqlteam.com/Forums/topic.asp?TOPIC_ID=17845

===========
Paul
Go to Top of Page

m_mussu
Starting Member

4 Posts

Posted - 2002-12-23 : 03:24:30
no need to create the trigger in Master,what the usere login u r using grant the XP_SENDMAIL execute permission.After that u can create trigger any database and can use it for mail.

MOhammed A.Musaddique
Go to Top of Page
   

- Advertisement -