Solved

how to autodocument DTS packages and Agent Jobs

Posted on 2004-10-12
12
274 Views
Last Modified: 2013-11-30
i have been asked to document a sql server database.

i think i can export the table definitions and view sql as text.

is there an easy way to export all dts packages and agent jobs from a database in human readable form?

mtia,
porky.

0
Comment
Question by:porkygoodness
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 4
  • 3
12 Comments
 
LVL 9

Accepted Solution

by:
apirnia earned 30 total points
ID: 12289158
Basically you should back up the DTS packages and the jobs and then view the code.

First this is how to back up Jobs:

Open Enterprise Manager >> Management>> SQL Srevet Agent >> Jobs >>
Then right click on your job and one of the sub options is to genereate SQL Script.
Save it to your desk top and then open it with Note pad



Several ways to do do the DTS:

1)
go to the following page:
http://www.sqldts.com/default.aspx?272

and look for DTS back up.


2)
You can save the package to the SQL Server msdb database, to SQL Server 2000 Meta Data Services, as a structured storage file (.dts file), or as a Microsoft Visual Basic® file.

Using the dts file or VB option means you simply back up the files created when you saved the DTS package. The others are stored in the database and are backed up when you back up the SQL Server msdb database.


3)
And the best one is at this page. This is the one that I use. It was recomended to me by some one else from EE a while back.

http://www.sql.ru/faq/faq_topic.aspx?fid=136

Couple of notes:
(isin=0) Load them from SQL Server to folder
(isin=1) load them from that folder to sqlserver


This basically gets all your DTS [packages and puts them in a folder that ypu specify.

Let me know if you have any problems with this.
0
 
LVL 34

Expert Comment

by:arbert
ID: 12294595
Why go through all that effort.  Backup the MSDB database--it houses all SQLAgent jobs and all DTS packages....
0
 
LVL 1

Author Comment

by:porkygoodness
ID: 12296047
apirnia: you say to open each one and back it up individually: is there a way to automate this?

arbert: what format is the backup file in?

thanks,
porky


0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 34

Expert Comment

by:arbert
ID: 12299143
Internal SQL backup--you use the SQL restore command to get it back....
0
 
LVL 34

Expert Comment

by:arbert
ID: 12299150
(The DTSBackup application has a gui and can't be automated)
0
 
LVL 1

Author Comment

by:porkygoodness
ID: 12299240
is this internal sql backup format human readable?

or even parsable by vb(a)?

thanks,
porky.
0
 
LVL 34

Assisted Solution

by:arbert
arbert earned 20 total points
ID: 12299451
No, sorry, I saw apirnia's suggestion and went down the "backup" path.  There really isn't a way to automate the extract of the DTS packages the way you want.  Even with the DTS object model, it's not possible...
0
 
LVL 9

Expert Comment

by:apirnia
ID: 12299808
If you use this methode:

http://www.sql.ru/faq/faq_topic.aspx?fid=136

You don't have to back up one by one. It backs up all DTS packages you have into a directory.
It will create one file for each DTS package.
0
 
LVL 1

Author Comment

by:porkygoodness
ID: 12299850
arbert: there's an object model? hmm. nothing is impossible.

apirnia: the output from this stored procedure: is it human readable?
(i don't have sql server handy to test it, sorry)

thanks,
porky.

0
 
LVL 9

Expert Comment

by:apirnia
ID: 12299955
Yes it is human readable.
0
 
LVL 9

Expert Comment

by:apirnia
ID: 12506942
Split Points
0

Featured Post

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Ever wondered why sometimes your SQL Server is slow or unresponsive with connections spiking up but by the time you go in, all is well? The following article will show you how to install and configure a SQL job that will send you email alerts includ…
I have a large data set and a SSIS package. How can I load this file in multi threading?
This video shows, step by step, how to configure Oracle Heterogeneous Services via the Generic Gateway Agent in order to make a connection from an Oracle session and access a remote SQL Server database table.
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.

756 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