Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

The Database Forum


You are currently viewing our The Database Forum as a guest. Please register to participate.
Login



Reply
Old 05-16-2006, 09:23 PM Help w/ DTS Package
Average Talker

Posts: 25
Location: Seattle, WA
Trades: 0
Hi everyone,

I need to execute a store procedure and save the results into an excel file. These events are scheduled to happen at a specific time. I have the parameters for the store procedure saved, just need to pass it in to the DTS package... is this possible?

Can anyone offer some pointers?
kbychu is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 05-16-2006, 09:27 PM Re: Help w/ DTS Package
mgraphic's Avatar
Truth Seeker

Latest Blog Post:
JAMISONTUNES
Posts: 2,898
Name: Keith Marshall
Location: Connecticut
Trades: 0
It sounds like you need a script to connect, pull data, and create a csv file that is executed by a cron tab
__________________

<mgraphic /> - I don't have a solution but I admire the problem.
mgraphic is offline
Reply With Quote
View Public Profile
 
Old 05-17-2006, 05:39 AM Re: Help w/ DTS Package
Minaki's Avatar
Defies a Status

Posts: 1,626
Location: Guildford, UK
Trades: 0
If it's a pretty simple export, have you tried using the Import/Export wizard in SQL Enterprise Manager to do it for you? You can enter the SQL Command as EXEC YourSPName and select the output type as Excel.
__________________
Minaki Serinde MCP
"Wow, Linux is nearly on-par with Windows ME!"

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
Minaki is offline
Reply With Quote
View Public Profile Visit Minaki's homepage!
 
Old 05-17-2006, 12:34 PM Re: Help w/ DTS Package
Average Talker

Posts: 25
Location: Seattle, WA
Trades: 0
It is easy with the IMport/Export wizard. But I need to do this by code. So what needs to happen is that I need to generate an excel file that are the results of a query given a set of parameters at a specific time. Any ideas?
kbychu is offline
Reply With Quote
View Public Profile
 
Old 05-17-2006, 03:05 PM Re: Help w/ DTS Package
Average Talker

Posts: 25
Location: Seattle, WA
Trades: 0
Well, I decided that I am just going to execute my store proc, get the result back and generate the excel file by code. After doing some research on the DTS package, it just seems to complicated...
kbychu is offline
Reply With Quote
View Public Profile
 
Old 05-18-2006, 09:41 AM Re: Help w/ DTS Package
Minaki's Avatar
Defies a Status

Posts: 1,626
Location: Guildford, UK
Trades: 0
What do you mean 'by code'? What sort of code? DTS Packages are complex things that contain a number of building blocks, links & steps and bits of code, including SQL and VBScript...

You can create a DTS package very easily using the Import/Export wizard (just select the option at the end to save to DTS) then you can either shcedule it using the SQL Scheduler or run it manually.
__________________
Minaki Serinde MCP
"Wow, Linux is nearly on-par with Windows ME!"

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE

Last edited by Minaki; 05-18-2006 at 09:43 AM..
Minaki is offline
Reply With Quote
View Public Profile Visit Minaki's homepage!
 
Reply     « Reply to Help w/ DTS Package
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.19641 seconds with 12 queries