Quantcast
Channel: Transact-SQL forum
Viewing all articles
Browse latest Browse all 23857

Dependencies between Objects

$
0
0

Hi Folks,

My client has asked me to move from one db to another. (I don't know why, may be they are restructuring). Now the problem is that there are many stored procedures, functions and tables which I have created and also using somewhere. Now for moving these objects I have to do manual checks on each of my procedure to find out dependencies.

First I used SP_DEPENDS but that didn't show correct results. Then I did useSYS.DM_SQL_REFERENCING_ENTITIES, but a weird thing I noticed. Some of my procedures are not listed in this table.

Basically I need the output in below format:

NAME TYPE DEPENDED UPON TYPE COLUMN NAME
RealTimeLeads Stored Proc INSTrigger Trigger OfferDateTime
RealTimeLeads Stored Proc INSTrigger Trigger EnquiryDateTime
RealTimeLeads Stored Proc cc_lead__c_upd User Table ID__c
RealTimeLeads Stored Proc cc_lead__c_upd User Table CustomerName__c
RealTimeLeads Stored Proc cc_lead__c_upd User Table Product__c
SP_CampaignDashboard Stored Proc CampaignDashboard User Table CD_ID
SP_CampaignDashboard Stored Proc EmailCampaign_Attempts User Table AttemptCount
SP_CampaignDashboard Stored Proc OfferProduct_Master User Table Product__c
SP_CampaignDashboard Stored Proc Portal_Campaign_Attempts User Table AttemptCount
SP_CampaignDashboard Stored Proc Responses User Table ResponseDate
SP_CampaignDashboard Stored Proc SMS_Campaign_Attempts User Table AttemptCount


Chaos isn’t a pit. Chaos is a ladder. Many who try to climb it fail and never get to try again. The fall breaks them. And some are given a chance to climb, but they refuse. They cling to the realm, or the gods, or love. Illusions. Only the ladder is real. The climb is all there is.



Viewing all articles
Browse latest Browse all 23857

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>