나는 스팸 메일을 보낼 수있는 데이터베이스를 사용하여 조언하지 않습니다,하지만 당신은 사용하여 데이터베이스를 통해 전자 메일을 보낼 수 있습니다
EXEC msdb.dbo.sp_send_dbmail
...
잘 모르겠어요 어떻게 영향을 실제 데이터베이스 성능 (SELECT/INSERT/UPDATE/DELETE)하지만 그건 내 호출이 아닙니다.
http://technet.microsoft.com/en-us/library/ms190307.aspx
sp_send_dbmail [ [ @profile_name = ] 'profile_name' ]
[ , [ @recipients = ] 'recipients [ ; ...n ]' ]
[ , [ @copy_recipients = ] 'copy_recipient [ ; ...n ]' ]
[ , [ @blind_copy_recipients = ] 'blind_copy_recipient [ ; ...n ]' ]
[ , [ @subject = ] 'subject' ]
[ , [ @body = ] 'body' ]
[ , [ @body_format = ] 'body_format' ]
[ , [ @importance = ] 'importance' ]
[ , [ @sensitivity = ] 'sensitivity' ]
[ , [ @file_attachments = ] 'attachment [ ; ...n ]' ]
[ , [ @query = ] 'query' ]
[ , [ @execute_query_database = ] 'execute_query_database' ]
[ , [ @attach_query_result_as_file = ] attach_query_result_as_file ]
[ , [ @query_attachment_filename = ] query_attachment_filename ]
[ , [ @query_result_header = ] query_result_header ]
[ , [ @query_result_width = ] query_result_width ]
[ , [ @query_result_separator = ] 'query_result_separator' ]
[ , [ @exclude_query_output = ] exclude_query_output ]
[ , [ @append_query_error = ] append_query_error ]
[ , [ @query_no_truncate = ] query_no_truncate ]
[ , [ @mailitem_id = ] mailitem_id ] [ OUTPUT ]
난 당신이 말씀에서 편지 병합으로이 작업을 실행해야 할 수 있도록 데이터 소스로 SQL Server를 사용하여, SQL에서 .doc 파일을 변경할 수있는 방법을 잘 모르겠어요 :
http://msdn.microsoft.com/en-us/library/aa140183%28office.10%29.aspx