Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase

Nested Stored Procedure Expand / Collapse
Author
Message
Posted Thursday, April 1, 2010 7:22 PM


SSC Journeyman

SSC JourneymanSSC JourneymanSSC JourneymanSSC JourneymanSSC JourneymanSSC JourneymanSSC JourneymanSSC Journeyman

Group: General Forum Members
Last Login: Friday, July 27, 2012 11:13 AM
Points: 88, Visits: 334
Comments posted to this topic are about the item Nested Stored Procedure

Vaibhav K Tiwari
To walk fast walk alone
To walk far walk together
Post #895433
Posted Thursday, April 22, 2010 11:09 PM


Hall of Fame

Hall of FameHall of FameHall of FameHall of FameHall of FameHall of FameHall of FameHall of FameHall of Fame

Group: General Forum Members
Last Login: Friday, June 27, 2014 8:02 AM
Points: 3,241, Visits: 4,996
Very helpful script.


----------------------------------------------------------------------------------------------------------------------------------------------------------------------

Sometimes, winning is not an issue but trying.

You can check my BLOG here

Post #909188
Posted Friday, April 23, 2010 12:21 AM


SSC Journeyman

SSC JourneymanSSC JourneymanSSC JourneymanSSC JourneymanSSC JourneymanSSC JourneymanSSC JourneymanSSC Journeyman

Group: General Forum Members
Last Login: Friday, July 27, 2012 11:13 AM
Points: 88, Visits: 334
Thanks Atif...

Vaibhav K Tiwari
To walk fast walk alone
To walk far walk together
Post #909206
Posted Friday, April 23, 2010 1:53 AM


Hall of Fame

Hall of FameHall of FameHall of FameHall of FameHall of FameHall of FameHall of FameHall of FameHall of Fame

Group: General Forum Members
Last Login: Friday, June 27, 2014 8:02 AM
Points: 3,241, Visits: 4,996
Hope ther is any way to find the nested tables as well.

In dependency, we get tables used with Insert, Update and Delete Operations. No way to find the tables used with simple Select statement.

i have been thinking over it. Any idea?


----------------------------------------------------------------------------------------------------------------------------------------------------------------------

Sometimes, winning is not an issue but trying.

You can check my BLOG here

Post #909239
Posted Friday, April 23, 2010 2:23 AM


SSC Journeyman

SSC JourneymanSSC JourneymanSSC JourneymanSSC JourneymanSSC JourneymanSSC JourneymanSSC JourneymanSSC Journeyman

Group: General Forum Members
Last Login: Friday, July 27, 2012 11:13 AM
Points: 88, Visits: 334
We can do it but that will not standard and even it will not achieve great level of correctness.
as we can find out table names in procedure script with sql pogramming.
but it will read commented part also so there will be possibility of unwanted output


Vaibhav K Tiwari
To walk fast walk alone
To walk far walk together
Post #909250
Posted Thursday, July 22, 2010 1:37 PM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Monday, March 25, 2013 8:55 AM
Points: 1, Visits: 48
Liked the idea of quickly getting a list of dependent procs. I took your sql and modified it...

SELECT
SCHEMA_NAME(o.schema_id) + '.' + o.name AS proc_name,
SCHEMA_NAME(o2.schema_id) + '.' + o2.name AS dependent_proc_name
FROM
sysdepends d
LEFT JOIN sys.objects o
ON d.id = o.object_id
LEFT JOIN sys.objects o2
ON d.depid = o2.object_id
AND o2.Type = o.Type
WHERE
o.Type = 'p'
AND o2.object_id IS NOT NULL
ORDER BY
1, 2
Post #957530
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse