SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 SQL Server 2008 Forums
 SQL Server Administration (2008)
 Job failed
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Peter99
Constraint Violating Yak Guru

494 Posts

Posted - 09/28/2012 :  18:14:16  Show Profile  Reply with Quote
Hi,

Trying to send text file through email attachment through job. Job failed with following error:
Message
Executed as user: xxxx\SQLService_agent_account. Attachment file test.txt is invalid. [SQLSTATE 42000] (Error 22051). The step failed.

Any help?

Thanks

jackv
Flowing Fount of Yak Knowledge

United Kingdom
2067 Posts

Posted - 09/29/2012 :  14:03:05  Show Profile  Visit jackv's Homepage  Reply with Quote
Could you also post the full EXEC msdb.dbo.sp_send_dbmail? Is the path valid?

Jack Vamvas
--------------------
http://www.sqlserver-dba.com
Go to Top of Page

visakh16
Very Important crosS Applying yaK Herder

India
52317 Posts

Posted - 10/01/2012 :  11:32:51  Show Profile  Reply with Quote
is file in your local machine or inside server path?

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/

Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.05 seconds. Powered By: Snitz Forums 2000