dbTalk Databases Forums  

Out in email.

microsoft.public.sqlserver.clients microsoft.public.sqlserver.clients


Discuss Out in email. in the microsoft.public.sqlserver.clients forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Rogers
 
Posts: n/a

Default Out in email. - 10-30-2006 , 07:20 AM






I am using extended stored procedure xp_sendmail to send the email now my
question is, is there any way in can write the out of following query into
one file and send it to through email? or output directly goes to email..

restore FILELISTONLY from disk = 'c:\fullpath.bak'

Thanks



Reply With Quote
  #2  
Old   
Sue Hoegemeier
 
Posts: n/a

Default Re: Out in email. - 10-30-2006 , 07:49 PM






Probably a few ways but a couple off the top of my head -
Execute the command using osql and specify an output file in
the osql command.
Execute the command within a job - for the job step doing
the restore filelistonly, go to the advanced tab and specify
an output file.
You can then send the output file as an attachment using
xp_sendmail.

-Sue

On Mon, 30 Oct 2006 08:20:28 -0500, "Rogers"
<naissani (AT) hotmail (DOT) com> wrote:

Quote:
I am using extended stored procedure xp_sendmail to send the email now my
question is, is there any way in can write the out of following query into
one file and send it to through email? or output directly goes to email..

restore FILELISTONLY from disk = 'c:\fullpath.bak'

Thanks



Reply With Quote
  #3  
Old   
Rogers
 
Posts: n/a

Default Re: Out in email. - 11-22-2006 , 07:36 AM



Thanks Sue...


"Sue Hoegemeier" <Sue_H (AT) nomail (DOT) please> wrote

Quote:
Probably a few ways but a couple off the top of my head -
Execute the command using osql and specify an output file in
the osql command.
Execute the command within a job - for the job step doing
the restore filelistonly, go to the advanced tab and specify
an output file.
You can then send the output file as an attachment using
xp_sendmail.

-Sue

On Mon, 30 Oct 2006 08:20:28 -0500, "Rogers"
naissani (AT) hotmail (DOT) com> wrote:

I am using extended stored procedure xp_sendmail to send the email now my
question is, is there any way in can write the out of following query into
one file and send it to through email? or output directly goes to email..

restore FILELISTONLY from disk = 'c:\fullpath.bak'

Thanks





Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.