Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2005 Forums
 Transact-SQL (2005)
 How to search for a table name in each stored proc

Author  Topic 

skp_01702
Starting Member

2 Posts

Posted - 2008-05-22 : 11:43:59
Hi All,

We have modified a column name for a table. Now we need to find out all the database objects (stored procedures, functions, views) which access this table so that we can modify them. This is a very big database and its not easy to open the code for each object and check if its access that table.
To add to the complexity, its not just one table and column but a number of tables have been modified.

Any pointers is highly appreciated

Thanks,
Krishna.

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2008-05-22 : 11:48:29
Try using sp_depends system stored procedure

http://technet.microsoft.com/en-us/library/ms189487.aspx
Go to Top of Page

skp_01702
Starting Member

2 Posts

Posted - 2008-05-22 : 13:08:28
Hey thanks a lot. Works gr8 for my requirement.
Just wondering frm ur id...r u frm Vizag?
Go to Top of Page

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2008-05-22 : 13:09:36
quote:
Originally posted by skp_01702

Hey thanks a lot. Works gr8 for my requirement.
Just wondering frm ur id...r u frm Vizag?


Nope. My name is Visakh. But i'm from Trivandrum
Go to Top of Page
   

- Advertisement -