If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > Microsoft SQL Server > Strange behavior from xp_sendmail

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 08-26-03, 09:10
bpdWork bpdWork is offline
Registered User
 
Join Date: Aug 2003
Location: Andover, MA
Posts: 256
Strange behavior from xp_sendmail

Here's a strange one...

I have a job that sends a notification when one of the steps throws an error. The notification contains the last error inserted into an error log table:

EXEC xp_sendmail @recipients = me@mycompany.com', @dbuse = 'Bridge_Metering', @query = 'SELECT TOP 1 error_msg FROM tbl_cdr_agent_errors', @subject = 'Retrieval Error'

Seems pretty straight forward. The problem is that the query is now returning the column nams instead of the data. I have played with * instead of a specific column, and I get all the column names.

It used to work fine, so I susoect it is patch-induced. Any one else have this problem?

TIA
__________________
-bpd
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On