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: 397 | 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

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
Editor, SQLServerCentral.com

Already a member? Jump in:

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