Click here to monitor SSC
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 

Get your favorite SSC scripts directly in SSMS with the free SQL Scripts addin. Search for scripts directly from SSMS, and instantly access any saved scripts in your SSC briefcase from the favorites tab.
Download now (direct download link)

User-defined data type dependencies

By Gulappa Vijaya Kumar,

MSSQLServer has got sp_depends system sp to display the dependencies for a stored procedure, table and view.  sp_depends does not support to display the User-defined data type dependencies.  For custom database, we will create user defined data types (UDDT) and add this UDDT to a column/variable in a table/stored procedure.  This sp (UDTDepends) will help to display the User-defined data type dependencies in a database for a Tables and Stored Procedure. 

Compile this sp in a database and execute the same.  It will display the dependencies for the user defined data types if it exists in a database.

Criticize are welcome.

Total article views: 430 | Views in the last 30 days: 0
 
Related Articles
FORUM

dependencies between stored procedures

Is there a way to identify the dependencies between stored procedures

BLOG

Scripting dependencies of User-defined Table Types

I was using user-defined tables types (UDTT) quite intensively despite of their current disadvantage...

FORUM

Sequence of Database Objects Dependency - SQL 2005

Sequence of Database Objects Dependency - SQL 2005

SCRIPT

Dependencies View 2008

Provides a list of dependencies for a stored procedure

FORUM

Stored procedure in User defined function?

Can I call Stored procedure in User defined function?

 
Contribute