Hello Wyldcard9,
This is wat I try tu use (f.i. from master database):
EXEC xp_sendmail @recipients = 'mark.jansen@vito.be',
@subject = 'SQL email test',
@query='select count(*) from sysobjects',
@message = 'Paul says HELLO from SQL'.
It's the @query-parameter that causes the error.
We have 6 SQL-server machines with SQL 2000, just 2 of them have this stange behaviour. I don't find any references to "sp_setuserbylogin". This sp seems not to exist in any SQL-server database.
Greetz,
Mark