Solved

convert query result to excel file and emailing using xp_sendmail

Posted on 2008-09-30
3
444 Views
Last Modified: 2010-05-18
Is there any way I can convert my query result to excel file and email that using xp_sendmail.


0
Comment
Question by:nakulamin
  • 2
3 Comments
 
LVL 25

Expert Comment

by:jogos
ID: 22605991
Exporting to excel, sounds like something you do with DTS (SQL 2000) or SSIS (SQL2005/SQL2008).
0
 

Author Comment

by:nakulamin
ID: 22606119
how can i use DTS with that....
0
 
LVL 25

Accepted Solution

by:
jogos earned 500 total points
ID: 22606574
DTS you can find in Enterprise manager.  In DTS you have to make your excel with your query-result.  
http://support.microsoft.com/kb/319951

Wtih the tasks you can do diffrent things, sql, script ..... send mail with attachement (if your server allows mail).
0

Featured Post

Complete Microsoft Windows PC® & Mac Backup

Backup and recovery solutions to protect all your PCs & Mac– on-premises or in remote locations. Acronis backs up entire PC or Mac with patented reliable disk imaging technology and you will be able to restore workstations to a new, dissimilar hardware in minutes.

Join & Write a Comment

In this article—a derivative of my DaytaBase.org blog post (http://daytabase.org/2011/06/18/what-week-is-it/)—I will explore a few different perspectives on which week today's date falls within using Microsoft SQL Server. First, to frame this stu…
Having an SQL database can be a big investment for a small company. Hardware, setup and of course, the price of software all add up to a big bill that some companies may not be able to absorb.  Luckily, there is a free version SQL Express, but does …
Via a live example, show how to setup several different housekeeping processes for a SQL Server.
Using examples as well as descriptions, and references to Books Online, show the documentation available for datatypes, explain the available data types and show how data can be passed into and out of variables.

757 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now