Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
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: 423 | Views in the last 30 days: 2
Related Articles

dependencies between stored procedures

Is there a way to identify the dependencies between stored procedures


Scripting dependencies of User-defined Table Types

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


Sequence of Database Objects Dependency - SQL 2005

Sequence of Database Objects Dependency - SQL 2005


Dependencies View 2008

Provides a list of dependencies for a stored procedure


Stored procedure in User defined function?

Can I call Stored procedure in User defined function?


Join the most active online SQL Server Community

SQL knowledge, delivered daily, free:

Email address:  

You make SSC a better place

As a member of SQLServerCentral, you get free access to loads of fresh content: thousands of articles and SQL scripts, a library of free eBooks, a weekly database news roundup, a great Q & A platform… And it’s our huge, buzzing community of SQL Server Professionals that makes it such a success.

Join us!

Steve Jones

Already a member? Jump in:

Email address:   Password:   Remember me: Forgotten your password?
Steve Jones