Solved

how to autodocument DTS packages and Agent Jobs

Posted on 2004-10-12
12
271 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
  • 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
U.S. Department of Agriculture and Acronis Access

With the new era of mobile computing, smartphones and tablets, wireless communications and cloud services, the USDA sought to take advantage of a mobilized workforce and the blurring lines between personal and corporate computing resources.

 
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

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

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

Everyone has problem when going to load data into Data warehouse (EDW). They all need to confirm that data quality is good but they don't no how to proceed. Microsoft has provided new task within SSIS 2008 called "Data Profiler Task". It solve th…
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…
Familiarize people with the process of utilizing SQL Server functions from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Microsoft Ac…
Using examples as well as descriptions, and references to Books Online, show the different Recovery Models available in SQL Server and explain, as well as show how full, differential and transaction log backups are performed

777 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