dbTalk Databases Forums  

DTS package to execute stored proc and export data into Excel

microsoft.public.sqlserver.dts microsoft.public.sqlserver.dts


Discuss DTS package to execute stored proc and export data into Excel in the microsoft.public.sqlserver.dts forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Ilin Start via SQLMonster.com
 
Posts: n/a

Default DTS package to execute stored proc and export data into Excel - 06-26-2005 , 01:04 PM






I need to create a DTS package, which will execute stored proc and
export a result set into Excel without creating intermidiate table in SQL and
export it to Excel

Reply With Quote
  #2  
Old   
Darren
 
Posts: n/a

Default Re: DTS package to execute stored proc and export data into Excel - 06-26-2005 , 03:31 PM






If the stored procedure returns a result set then you can use a
Transform Data Task in the DTS Designer. In the Transform Data Task
properties "Source" section, select to use a SQL query and write "exec
<stored proc name>"

I hope that helps.


Reply With Quote
  #3  
Old   
Ilin Star via SQLMonster.com
 
Posts: n/a

Default Re: DTS package to execute stored proc and export data into Excel - 06-26-2005 , 07:02 PM



Darren,
Thank you very much, it works.
Regards,
Ilin

--
Message posted via http://www.sqlmonster.com

Reply With Quote
  #4  
Old   
Ilin Star via SQLMonster.com
 
Posts: n/a

Default Re: DTS package to execute stored proc and export data into Excel - 06-26-2005 , 07:07 PM



Darren,
One more question: Is it possible do not save this excel file anywhere but
create it on a fly and send it in email at certain time using DTS?

Thanks,
Ilin

--
Message posted via http://www.sqlmonster.com

Reply With Quote
  #5  
Old   
Darren
 
Posts: n/a

Default Re: DTS package to execute stored proc and export data into Excel - 06-27-2005 , 03:05 AM



I'm afraid I don't know how to do that. But perhaps somebody else can
help you there?


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.