Question : 2008 query in 2000

trying to simulate SQL 2008's in 2000
SELECT SCHEMA_NAME(o.schema_id) AS dependent_object_schema
  ,OBJECT_NAME(o.object_id) AS dependent_object_name
  ,o.type_desc AS dependent_object_type
  ,d.class_desc AS kind_of_dependency
  ,TYPE_NAME (d.referenced_major_id) AS type_name
  ,d.*
FROM sys.sql_dependencies AS d
JOIN sys.objects AS o
  ON d.object_id = o.object_id

by trying
select OBJECT_NAME(o.id) ,OBJECT_NAME(d.id)
FROM sysdepends AS d
JOIN sysobjects AS o
  ON d.id = o.id

could you guide me how to get the first query's results (similar/comparative) in SQL 2000's.

the real goal is to get the result format like
<tableName1><Sp1,Sp2,SP3>
<tableName2><Sp4>
<tableName3>,NULL (no dependency) etc

thanks.

Answer : 2008 query in 2000

OK, for a start, look at :

select o.type as Object_Type, o.name ,do.name as From_Table from sysobjects o inner join sysdepends d on o.id = d.id inner join sysobjects do on d.depid = do.id

does that give the "raw" information ?  Where type can be :

C = CHECK constraint
D = Default or DEFAULT constraint
F = FOREIGN KEY constraint
FN = Scalar function
IF = Inlined table-function
K = PRIMARY KEY or UNIQUE constraint
L = Log
P = Stored procedure
R = Rule
RF = Replication filter stored procedure
S = System table
TF = Table function
TR = Trigger
U = User table
V = View
X = Extended stored procedure
Random Solutions  
 
programming4us programming4us