Click here to Skip to main content
15,886,830 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
HI,

can any one help me out,i want to delete one table from production before delete the table i want check the table dependent object on server level

Regards
Ramesh.m
Posted
Comments
n.podbielski 11-Oct-12 3:33am    
Do you want to that from tsql script?

To check the table dependencies, you can try this query:
SQL
SELECT routine_name, routine_type FROM INFORMATION_SCHEMA.ROUTINES WHERE ROUTINE_DEFINITION LIKE '%sdfUser%'



--Amit
 
Share this answer
 
Comments
ramesh4128 11-Oct-12 4:23am    
here i want dependency on total databases available on the server
Hi Ramesh You can use

EXEC sp_depends @objname = N'Your Table Name';

-- Mukesh
 
Share this answer
 
Comments
ramesh4128 11-Oct-12 4:23am    
here i want dependency on total databases available on the server

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900