hwaturbo.blogg.se

Sql server sp send dbmail file attachment
Sql server sp send dbmail file attachment












This has been one of the more frustrating issues I've tried to resolve and I've basically gotten nowhere. It looks like tey need appropriate permissions on to access the files on '\\ remote_server\share_name\'. Shouldn't need to give everyone sysadmin rights. Also the Windows Authentication test login I am using has full control of the remote share. I am running SQL Server 2008 R2 (64-bit) on Windows 2008 R2 Server (64-bit). Obviously I can't just give everyone sysadmin rights on the server in order to let them include attachments in e-mail. It would appear there is some SQL Server permission setting that I'm missing to allow any user to add remote attachments. The Windows Authentication test logon is in the DatabaseMailUserRole Database Role and has full control of the remote share.

sql server sp send dbmail file attachment

However, if I try sending email with a remote attachment as a non-administrative user, the attachment fails.įailed to open attachment file '\\ remote_server\share_name\test.txt'. It works for remote attachments (as \\remote_server\share_name\test.txt) **if** I am connected to SQL Server as a sysadmin (Windows Authentication test logon in the sysadmin role). It also works if I try to send email with a local attachment (on the SQL Server machine). Sending email works if I do not try to add a remote attachment.

sql server sp send dbmail file attachment

I am using Windows Authentication to send email using sp_send_dbmail.














Sql server sp send dbmail file attachment