473,666 Members | 2,634 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..TL D_Reconciliatio n'
Declare @Sub nvarchar(60)
Select @Sub = 'TLD Reconciliation - Condensed Report'
SELECT @rlist = 'j******@wbhq.c om'
exec master..xp_send mail @recipients=@rl ist,@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 3152
je**********@ho tmail.com (Jennifer) wrote in message news:<33******* *************** ****@posting.go ogle.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..TL D_Reconciliatio n'
Declare @Sub nvarchar(60)
Select @Sub = 'TLD Reconciliation - Condensed Report'
SELECT @rlist = 'j******@wbhq.c om'
exec master..xp_send mail @recipients=@rl ist,@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
1634
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 memo... but I find that none of the JS or DHTML code is working at all on page... if I download page and view it locally the JS & DHTML code work fine, I don't understand this.. I'm very anxious b/c I just submitted this page as a demo for a...
9
3168
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 Windows authentication. The error occurs on the FindAll method. The exceptions are as follows. anyway of getting the code working with Integrated Windows authentication (too annoying for user to enter user-name/password). Note I do need to use...
1
2043
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 harddrive. The operating system is Win XP professional and I have no other programs installed on this box. My program is communicating with other devices using two network cards. The communication is time critical in a sence that the messages...
11
1653
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
2619
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
1423
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 invalid, so the World Wide Web Publishing Service can not create a worker process to serve the application pool. Therefore, the application pool has been disabled. For more information, see Help and Support Center at
1
2552
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
2532
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 = new SqlConnection(strconnection); cmd = new SqlCommand(strsqlinsert, conn); cmd.Parameters.Add("@user_id", SqlDbType.Int).Value = Class1.loginUserid.Trim();
1
1761
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 first thought it was caused by the SPLIT but now ive opened backedup files from weeks ago and it ALSO gives me error 2465 which it didnt give me before. What could have happened??? What can i do??? Example: this function worked EXCELLENT, now its...
0
8440
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8352
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
8549
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8636
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
5661
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4192
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4358
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2765
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 we have to send another system
2
2005
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.