Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 601
  • Last Modified:

text search in a dts package or sql job

Does anyone know of a good way to search text in a DTS package or SQL jobs? I need to search for a server name and a database name in in the DTS packages and SQL jobs.
0
dosa
Asked:
dosa
1 Solution
 
apirniaCommented:
You should first create a script from the DTS and the job which will create a txt file that you can open in Notepad and then do a search on it.


There are Ways to do a back up of your DTS and JOBS which will create the files which you can open for search:

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

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now