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.
| 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 |
|
|
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 |
 |
|
|
|
|
|