Solved

how to autodocument DTS packages and Agent Jobs

Posted on 2004-10-12
12
275 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
Back Up Your Microsoft Windows Server®

Back up all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

 
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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
SQL Convert rows to columns 5 34
exec SQL Server Change Tracking CurrentVersion()  across dbs 6 28
Question about Common Table Expressions 3 45
VM SQL server license. 1 67
JSON is being used more and more, besides XML, and you surely wanted to parse the data out into SQL instead of doing it in some Javascript. The below function in SQL Server can do the job for you, returning a quick table with the parsed data.
Ever needed a SQL 2008 Database replicated/mirrored/log shipped on another server but you can't take the downtime inflicted by initial snapshot or disconnect while T-logs are restored or mirror applied? You can use SQL Server Initialize from Backup…
Familiarize people with the process of retrieving data from SQL Server using an Access pass-thru query. Microsoft Access is a very powerful client/server development tool. One of the ways that you can retrieve data from a SQL Server is by using a pa…
This videos aims to give the viewer a basic demonstration of how a user can query current session information by using the SYS_CONTEXT function

738 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