Get DTS Step Description from TSQL?

谁说胖子不能爱 提交于 2020-01-24 21:28:12

问题


I am trying to get the DTS Step Name/Description of a given DTS Package in SQL2000. I am not able to see anything in the msdb database. I can see the initial DTS name, however I dont see anything to get the details. Anybody knows where this info is stored?


回答1:


You can't access the contents of a DTS package directly through SQL server (they are stored as binary in msdb.dbo.sysdtspackages when stored in SQL server, or as binary files in the file system).

However, you can access them via the relevant OLE object - dts.package2.

There are several examples of using the OLE interface to extract DTS step information - this is one of them, which uses another DTS package to run VBScript to extract package information into a file. You could modify this to write data into a table in the database.



来源:https://stackoverflow.com/questions/2883352/get-dts-step-description-from-tsql

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!