Re: Dependencies of stored procedures in DTS packages
- From: "Matt Williamson" <ih8spam@xxxxxxxxxxx>
- Date: Wed, 12 Oct 2005 14:07:02 -0400
SP_depends is the stored proc I was referring to. Although, I can't filter
the output from it in my code. Is there anyway to see the SQL code for
sp_depends so I can add a where clause to it?
-TIA
Matt
"Matt Williamson" <ih8spam@xxxxxxxxxxx> wrote in message
news:erxr970zFHA.612@xxxxxxxxxxxxxxxxxxxxxxx
>I think sp_sysdepends is giving me exactly what I want.
>
> Thanks
>
> -Matt
>
> "Jacco Schalkwijk" <jacco.please.reply@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx>
> wrote in message news:upq3vrzzFHA.1624@xxxxxxxxxxxxxxxxxxxxxxx
>> You can get the dependencies between stored procedures, tables and other
>> objects from the sysdepends table.
>>
>> BUT, and this is a big but, the sysdepends table is not always
>> up-to-date, specially if you drop and recreate objects. If you recreate
>> the database from script though (on a development server for example) and
>> make sure that the script doesn't generate any
>> "Cannot add rows to sysdepends for the current stored procedure because
>> it depends on the missing object 'you stored procedure name here'. The
>> stored procedure will still be created."
>> errors, the information in sysdepends will be correct.
>>
>> --
>> Jacco Schalkwijk
>> SQL Server MVP
>>
>>
>> "Matt Williamson" <ih8spam@xxxxxxxxxxx> wrote in message
>> news:%23ajuwWzzFHA.2792@xxxxxxxxxxxxxxxxxxxxxxx
>>> I'm working on a little program to document all of my DTS packages using
>>> the DTS package library and vb6. I have written the code to enumerate
>>> all the DTS packages and step through each one getting the connections
>>> and various steps of the ExecuteSQL and Datapump tasks. I'm trying to
>>> figure out how to get the dependencies of the Stored Procs called from
>>> the ExecuteSQL tasks like in query analyzer. Can anyone point me in the
>>> right direction? I'm working with SQL 2000.
>>>
>>> TIA
>>>
>>> Matt
>>>
>>
>>
>
>
.
- Follow-Ups:
- Re: Dependencies of stored procedures in DTS packages
- From: Jacco Schalkwijk
- Re: Dependencies of stored procedures in DTS packages
- References:
- Dependencies of stored procedures in DTS packages
- From: Matt Williamson
- Re: Dependencies of stored procedures in DTS packages
- From: Jacco Schalkwijk
- Re: Dependencies of stored procedures in DTS packages
- From: Matt Williamson
- Dependencies of stored procedures in DTS packages
- Prev by Date: Re: Dependencies of stored procedures in DTS packages
- Next by Date: Can SQL Server import with errors?
- Previous by thread: Re: Dependencies of stored procedures in DTS packages
- Next by thread: Re: Dependencies of stored procedures in DTS packages
- Index(es):
Relevant Pages
|