473,508 Members | 2,357 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Sudden xp_send mail error

I've got a job that sends out the results of a stored procedure in an
email via xp_sendmail. The job code is as follows:

DECLARE @rlist varchar(1000)
Declare @Q varchar(100)

Select @Q = 'EXEC impact_exec..TLD_Reconciliation'
Declare @Sub nvarchar(60)
Select @Sub = 'TLD Reconciliation - Condensed Report'
SELECT @rlist = 'j******@wbhq.com'
exec master..xp_sendmail @recipients=@rlist,@query=@Q, @subject=@Sub

The error message I get when running this in Query Analyzer is:

ODBC error 7410 (42000) Remote access not allowed for Windows NT user
activated by SETUSER.

In Enterprise Manager the owner of the stored procedure in question is
dbo. Our SQL guru here suggested I change the owner of the stored
procedure from dbo to myself.

I did that and got a warning message that changing the owner will
break connections. (I'm paraphrasing here because I don't remember
the exact wording of the warning.) Anyhoo, after changing the owner,
and then trying to run the code in Query Analyzer I got the error
message that the stored procedure could not be found.

I'm not sure what to do here. I've never seen the error message
before. This same query worked just fine a couple of days ago.

Any ideas?

Thanks,
Jennifer
Jul 20 '05 #1
1 3142
je**********@hotmail.com (Jennifer) wrote in message news:<33**************************@posting.google. com>...
I've got a job that sends out the results of a stored procedure in an
email via xp_sendmail. The job code is as follows:

DECLARE @rlist varchar(1000)
Declare @Q varchar(100)

Select @Q = 'EXEC impact_exec..TLD_Reconciliation'
Declare @Sub nvarchar(60)
Select @Sub = 'TLD Reconciliation - Condensed Report'
SELECT @rlist = 'j******@wbhq.com'
exec master..xp_sendmail @recipients=@rlist,@query=@Q, @subject=@Sub

The error message I get when running this in Query Analyzer is:

ODBC error 7410 (42000) Remote access not allowed for Windows NT user
activated by SETUSER.

In Enterprise Manager the owner of the stored procedure in question is
dbo. Our SQL guru here suggested I change the owner of the stored
procedure from dbo to myself.

I did that and got a warning message that changing the owner will
break connections. (I'm paraphrasing here because I don't remember
the exact wording of the warning.) Anyhoo, after changing the owner,
and then trying to run the code in Query Analyzer I got the error
message that the stored procedure could not be found.

I'm not sure what to do here. I've never seen the error message
before. This same query worked just fine a couple of days ago.

Any ideas?

Thanks,
Jennifer


A similar problem is described in this KB article, and I guess one of
the proposed solutions should fix it:

http://support.microsoft.com/default...&Product=sql2k

I've seen this error occasionally in the past, and I've always
resolved it by setting the job owner to sa.

Simon
Jul 20 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
1619
by: Frances Del Rio | last post by:
please, can you go to http://www.francesdelrio.com/dhtml/ when you click the name of the character the font color for all the lines of that character should change.. this is a simple DHTML...
9
3161
by: Patrick | last post by:
I have an ASP.NET page that searches for someone in the corporate Active Directory. It had been working fine until recently when I changed from Basic Authentication on IIS6 back to Integrated...
1
2035
by: Henrik | last post by:
I have a problem with processor load in the enviroment where I'm running the firts installation of my new application. My program is running on a Pentium 4 3.0 GHz, wtih 1 GB DDR SDRAM and 80 GB...
11
1641
by: skishorev | last post by:
Hi, In sudden power off, How to backup means in which format(files, streams) & when to backup in C. Thanks, SAI
5
2613
by: PW | last post by:
Hi, All of a sudden, some clients of our Access 2003 software are getting Asian lettering in some text boxes, combo boxes, etc.... We have done nothing to it. Any ideas?
0
1410
by: =?Utf-8?B?TWF0dCBDYWxob29u?= | last post by:
Hi there, Have had Team Foundation Server working for months now and all of a sudden after a restart of IIS it has been failing with errors: The identity of application pool 'TFS AppPool' is...
1
2508
by: rajayan | last post by:
Jochen Kalmbach wrote: Thank you for your reply. Yes we do. Could you please elaborate. Are you referring to the CString::AllocBuffer related hangs or sudden crashes --
1
2515
by: trint | last post by:
This code was working just fine and all of the sudden, I get this error on 'SqlDbType': "The name 'SqlDbType' does not exist in the current context" Here is the code where it happens: conn =...
1
1754
by: Gilberto | last post by:
Hello I have a big BIG problem. Im new with acces and ive been creating a db for a month now. It was working perfectly and just after i did a db SPLIT some functions began displaying error 2465. I...
0
7224
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7323
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7380
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
7494
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
4706
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3192
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3180
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1553
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
415
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.