﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>SQLServerCentral / SQL Server 2008 / SQL Server 2008 - General  / sp_send_dbmail error : Attachment file ***** is invalid / Latest Posts</title><generator>InstantForum.NET v2.9.0</generator><description>SQLServerCentral</description><link>http://www.sqlservercentral.com/Forums/</link><webMaster>notifications@sqlservercentral.com</webMaster><lastBuildDate>Sun, 19 May 2013 17:56:18 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: sp_send_dbmail error : Attachment file ***** is invalid</title><link>http://www.sqlservercentral.com/Forums/Topic1384423-391-1.aspx</link><description>Hi,Yes I am sure of the location and the file name and extension.When I try doing the same from our QA server,it works fine, but from our production cluster, I keep getting this error</description><pubDate>Wed, 14 Nov 2012 00:52:01 GMT</pubDate><dc:creator>Casper101</dc:creator></item><item><title>RE: sp_send_dbmail error : Attachment file ***** is invalid</title><link>http://www.sqlservercentral.com/Forums/Topic1384423-391-1.aspx</link><description>[quote][b]Casper101 (11/14/2012)[/b][hr]When I try to send and Attachment (@file_attachments ) with sp_send_dbmail, I receive this error:"Attachment file ***** is invalid"The file does exist and the SQL login is sysadmin.The file location is not locally on the SQL server but on a different server (shared folder).I have given the SQL Service Account (Service and Agent) Full permissions to this share folder, but I still get the error. What am I doing wrong? What am I missing?I even tried mapping the shared folder to a drive letter and using this drive letter in the @file_attachments parameter - but stil the error.Please help....  :([/quote]are you providing the correct extension to file ?</description><pubDate>Wed, 14 Nov 2012 00:44:06 GMT</pubDate><dc:creator>sanket kokane</dc:creator></item><item><title>sp_send_dbmail error : Attachment file ***** is invalid</title><link>http://www.sqlservercentral.com/Forums/Topic1384423-391-1.aspx</link><description>When I try to send and Attachment (@file_attachments ) with sp_send_dbmail, I receive this error:"Attachment file ***** is invalid"The file does exist and the SQL login is sysadmin.The file location is not locally on the SQL server but on a different server (shared folder).I have given the SQL Service Account (Service and Agent) Full permissions to this share folder, but I still get the error. What am I doing wrong? What am I missing?I even tried mapping the shared folder to a drive letter and using this drive letter in the @file_attachments parameter - but stil the error.Please help....  :(</description><pubDate>Wed, 14 Nov 2012 00:41:36 GMT</pubDate><dc:creator>Casper101</dc:creator></item></channel></rss>