Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2005 Forums
 SQL Server Administration (2005)
 xp_sendmail substitute

Author  Topic 

pareshmotiwala
Constraint Violating Yak Guru

323 Posts

Posted - 2010-05-10 : 16:15:35
team
I have an old sql 2000 server which has to be migrated to sql 2005.
Currently I have a job that runs xp_sendmail

xp_sendmail @recipients = 'xyz@yahoo.com',
@subject='MyFile',
@query='select * from....',
@ansi_Attachment='TRUE',@Width=8000,
@attach_results='TRUE',@separator=',',
@attachments='myfile.csv'

This job requires outlook installed on the server.
Not sure how woould I go about doing this without installing outlook on the new server?

Any help/ideas welcome.

Regards
Paresh Motiwala
Boston, USA

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2010-05-10 : 16:25:02
Starting with SQL Server 2005, you can now use Database Mail. Only an SMTP server is required to send the email.

SQL Mail is still available in 2005, however Database Mail is preferred.

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog
Go to Top of Page
   

- Advertisement -