×

Loading...
Ad by
  • 推荐 OXIO 加拿大高速网络,最低月费仅$40. 使用推荐码 RCR37MB 可获得一个月的免费服务
Ad by
  • 推荐 OXIO 加拿大高速网络,最低月费仅$40. 使用推荐码 RCR37MB 可获得一个月的免费服务

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.