×

Loading...
Ad by
  • 最优利率和cashback可以申请特批,好信用好收入offer更好。请点链接扫码加微信咨询,Scotiabank -- Nick Zhang 6478812600。
Ad by
  • 最优利率和cashback可以申请特批,好信用好收入offer更好。请点链接扫码加微信咨询,Scotiabank -- Nick Zhang 6478812600。

SQL2000 question - xp_sendmail

Our SQL server is upgraded from SQL7 to SQL2000 on Window2000, SQLMail is working fine without using @query, for example, the below code works.

master..xp_sendmail
@Subject='TEST',
@ receipts='HHua@abc.com'

However, if I use @query, which has a simple select statement, for example

master..xp_sendmail
@Subject='TEST',
@ receipts='HHua@abc.com',
@query = ....

I get error,
...DomainUser\DomainAdmin can not login SQL server...

(DomainUser\DomainAdmin-it is our window domain admin account which starts SQL server and SQLagent, but in SQL login, we deny this account, like "Guest" account)

It is very strange, we have another SQL2000 server, in sql login,we also deny window domain account, the same code works fine in this server and the old SQL7 server.

Does anyone have any idea about this issue?

Thanks in advance!!!
Report

Replies, comments and Discussions:

  • 工作学习 / IT技术讨论 / SQL2000 question - xp_sendmail
    Our SQL server is upgraded from SQL7 to SQL2000 on Window2000, SQLMail is working fine without using @query, for example, the below code works.

    master..xp_sendmail
    @Subject='TEST',
    @ receipts='HHua@abc.com'

    However, if I use @query, which has a simple select statement, for example

    master..xp_sendmail
    @Subject='TEST',
    @ receipts='HHua@abc.com',
    @query = ....

    I get error,
    ...DomainUser\DomainAdmin can not login SQL server...

    (DomainUser\DomainAdmin-it is our window domain admin account which starts SQL server and SQLagent, but in SQL login, we deny this account, like "Guest" account)

    It is very strange, we have another SQL2000 server, in sql login,we also deny window domain account, the same code works fine in this server and the old SQL7 server.

    Does anyone have any idea about this issue?

    Thanks in advance!!!
    • DXs, please help!
    • Can you believe it! It is microsoft bug for SQL2000 service package 3, we tired several things, after we took out SP3, xp_sendmail is working with @Query.