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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

sql server2000, i need help with "xp_sendmail" 1

Status
Not open for further replies.

tempo1

Programmer
Feb 20, 2007
118
0
0
Hi everyone,
i run the following code (xp_sendmail)
Code:
CREATE TABLE ##texttab (c1 text)
INSERT ##texttab values ('Put your long message here.')
DECLARE @cmd varchar(56)
SET @cmd = 'SELECT c1 FROM ##texttab'
EXEC master.dbo.xp_sendmail 'robertk', 
    @query = @cmd, @no_header= 'TRUE'
DROP TABLE ##texttab
And any way i run it i get the same error message:
xp_sendmail: Procedure expects parameter @user, which was not supplied.
Anyone can tell me hw to supply that "@user" missing parameter and what is it ?
thanks
 
Hi klewis 10367,
Thanks,
I ran the code as you suggested
Code:
CREATE TABLE ##texttab (c1 text)
INSERT ##texttab values ('Put your long message here.')
DECLARE @cmd varchar(56)
DECLARE @recipients varchar(20)
SET @cmd = 'SELECT c1 FROM ##texttab'
EXEC master.dbo.xp_sendmail @recipients='robertk', 
    @query = @cmd, @no_header= 'TRUE'
DROP TABLE ##texttab
But unluckily for me, the same error message show up again...
Thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top