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 2000 Forums
 SQL Server Development (2000)
 sys_depnds

Author  Topic 

Jam
Starting Member

1 Post

Posted - 2002-09-11 : 07:48:36
I am simpley trying to gain all the dependencies of my SQL data base into a singel table. I Want to be able to run the sp_dependes query for all the stored procs in my database.

To automate this i decided to

1. List all SPs in a simple table.
2. Select them into a cursor
3. Run the sp_depends querey
4. insert the result + the SP name into a db Table

thanks

Made my own copy of sp_depends that output what i wanted based on a join to all my SP_list table



Edited by - Jam on 09/11/2002 09:22:42

nr
SQLTeam MVY

12543 Posts

Posted - 2002-09-11 : 08:22:08
Why not look at what the sp_depends SP does.
You can copy that processing into a query and run it on your dataset without a cursor.

==========================================
Cursors are useful if you don't know sql.
DTS can be used in a similar way.
Beer is not cold and it isn't fizzy.
Go to Top of Page
   

- Advertisement -