»
 

Go Back   ResellerRatings Store Ratings > ResellerRatings Forums > Tech Support

Reply
 
LinkBack Thread Tools Display Modes
Old 07-28-2003, 01:14 PM   #1 (permalink)
Registered User
 
omalleytrading's Avatar
 
Join Date: Apr 2003
Location: Albany, NY
Posts: 425
omalleytrading is on a distinguished road
DTS Help Needed

Are there any SQL Server DTS experts out there?

I'm trying to create a local package that will back a set of SQL Server tables up to a local Access file on a regular basis. The goal is to have the DTS job create a new access file each day, then backup the tables from SQL Server to Access.

I used Enterprise Manager to Export the data from SQL to Access, and had it save it as a local DTS Package. That produces something like what you'll see in the attached graphic.

I also know how to make an ActiveX (VBScript) component that will make the Access file for me, and set each of the destination data sources to point to the access file.

The question is, how do I put them together?

How do I get that ActiveX task to execute before any of the others? I could set each of the table copy tasks to be dependent on the ActiveX task, but there are hundreds of tables, and that will take forever.

Is there any other way?
Attached Images
File Type: gif dts.gif (22.7 KB, 56 views)

omalleytrading is offline   Reply With Quote
Old 07-28-2003, 08:39 PM   #2 (permalink)
Registered User
 
Join Date: Sep 2002
Posts: 265
Creosote is on a distinguished road
I don't get exactly what you are asking. Are you trying to make those 3 steps execute one after another? What about putting a workflow--> on success between them.
Creosote is offline   Reply With Quote
Old 07-28-2003, 08:47 PM   #3 (permalink)
Registered User
 
Join Date: Oct 2001
Location: TOO close to Wash DC
Posts: 7,956
vass0922 is on a distinguished road
yes you want to click on the first task, then hold ctrl and click on the 2nd task.. then go up to workflow and hit "On Success" (can't remember the name of the toolbar link)
__________________
<< Insert exceedingly large and overly verbose message of how 1337 you are here including full specs of every vehicle you've ever driven and PC you've owned >>
vass0922 is offline   Reply With Quote
Old 07-29-2003, 07:29 AM   #4 (permalink)
Registered User
 
omalleytrading's Avatar
 
Join Date: Apr 2003
Location: Albany, NY
Posts: 425
omalleytrading is on a distinguished road
Thanks. I understand the Workflow -> On Success approach. My issue is that there are well over 100 tables, and it would take me several hours to set up all of those relationships.

As it stands now, there are no success or failure dependencies on the job, and yet it does seem to execute in a predictable order. I'm just not clear on what that order is.

Do job execute from Left to Right? Right to Left? Top to Bottom?
omalleytrading is offline   Reply With Quote
Old 07-29-2003, 08:12 PM   #5 (permalink)
Registered User
 
Join Date: Sep 2002
Posts: 265
Creosote is on a distinguished road
Probably the order you created the tasks. I'm not sure
Creosote is offline   Reply With Quote
Old 07-31-2003, 09:33 AM   #6 (permalink)
Registered User
 
omalleytrading's Avatar
 
Join Date: Apr 2003
Location: Albany, NY
Posts: 425
omalleytrading is on a distinguished road
I hope not. Since Enterprise Manager created the initial set of commands, and I tacked on the ActiveX step, that would mean the things I want to run first, would actually run last!
omalleytrading is offline   Reply With Quote
Old 07-31-2003, 05:52 PM   #7 (permalink)
Registered User
 
Join Date: Oct 2001
Location: TOO close to Wash DC
Posts: 7,956
vass0922 is on a distinguished road
You can export the DTS package into a VBS file. Maybe export it, put it in the order YOU want it in, put in some IF statements
(Package --> Save As.. for filetype change it from SQL Server to VB File)
__________________
<< Insert exceedingly large and overly verbose message of how 1337 you are here including full specs of every vehicle you've ever driven and PC you've owned >>
vass0922 is offline   Reply With Quote
Old 08-01-2003, 07:03 AM   #8 (permalink)
Registered User
 
omalleytrading's Avatar
 
Join Date: Apr 2003
Location: Albany, NY
Posts: 425
omalleytrading is on a distinguished road
That's a good idea. I'll look into that...
omalleytrading is offline   Reply With Quote
Reply




Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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

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


Most Active Discussions

Recent Discussions

All times are GMT -6. The time now is 01:38 AM.