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
 Transact-SQL (2000)
 Could not find stored procedure 'xp_sendmail'.

Author  Topic 

imughal
Posting Yak Master

192 Posts

Posted - 2004-07-28 : 06:52:14
when i tried to send test email through sql server 2000 xp_sendmail procedure i m getting following error message.

Could not find stored procedure 'xp_sendmail'.

code is used as
exec xp_sendmail 'im_xiber@hotmail.com', @query='select * from caclientslogin'

tell me what's wrong with the code. or do i need some thing to install in order to access extended procedures.

thx in advance

ditch
Master Smack Fu Yak Hacker

1466 Posts

Posted - 2004-07-28 : 07:17:45
You must use the Master database for this.


Duane.
Go to Top of Page

derrickleggett
Pointy Haired Yak DBA

4184 Posts

Posted - 2004-07-28 : 08:45:46
exec master..xp_sendmail 'im_xiber@hotmail.com', @query='select * from caclientslogin'


Just for clarification. :)

MeanOldDBA
derrickleggett@hotmail.com

When life gives you a lemon, fire the DBA.
Go to Top of Page
   

- Advertisement -