由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Database版 - Need help on finding dependency objects
相关主题
如何在数据库中进行复杂查询, 但不把中间结果放到程序内存求救,这个更新如何写?
Interview question about Microsoft Access and SQL. please help一个sql问题:怎样实现 (((a1*10)+a2)*10+a3)*10 ... (转载)
SQL Server 2005 Exec( )SQL run a stored procedure by fetching from a cursor row by row
测一下你的t-sql 功力get value returned by SQLstored procedure from python (转载)
问个 sp_send_dbmail 的问题请帮忙读懂这个sql script
[转载] Hehe,不好意思,another question:)what's difference between MIS and CS?
How to merge tables in SQL Server 2000?关于FoxPro的容量问题
请问sql server里面怎么输出变量到文本文件?Some tips about 031 (Oracle 9i)!
相关话题的讨论汇总
话题: need话题: dependency话题: objects话题: finding
进入Database版参与讨论
1 (共1页)
p********b
发帖数: 7
1
Hi,
Currently i am verifying a list of obsolet tables and stored procs coz
my boss is aware of some are still in use by applications on production side.
I am able to find all the dependencies from the obsolete object's
database. But i cant figure out a way to get dependencies inter-databases.
Is there any approach to do that? I use sybase, by the way.
Thanks a lot
m******y
发帖数: 588
2
Try to use sysdepends if you can.
If not, you could use sp_helptext like the below if you try to find the
depend object of a obsolete table or procedure in whatever database you want
to search:
CREATE TABLE #tmpObjResult(ObjText nvarchar(1000))
DECLARE @ObjName nvarchar(100)
DECLARE curObject CURSOR LOCAL READ_ONLY FOR
Select s.name from sysobjects s
where s.xtype<>'PK' AND s.xtype<>'F' AND s.xtype<>'IT' AND s.xtype<>'D'
AND s.xtype<>'C' AND s.xtype<>'U' AND s.xtype<>'S' AND s.xtype<>'UQ
1 (共1页)
进入Database版参与讨论
相关主题
Some tips about 031 (Oracle 9i)!问个 sp_send_dbmail 的问题
请问如何在C里面写进行数据库操作.[转载] Hehe,不好意思,another question:)
看来确实不能从程序里去删Excel RecordHow to merge tables in SQL Server 2000?
请教一个oracle的quick question请问sql server里面怎么输出变量到文本文件?
如何在数据库中进行复杂查询, 但不把中间结果放到程序内存求救,这个更新如何写?
Interview question about Microsoft Access and SQL. please help一个sql问题:怎样实现 (((a1*10)+a2)*10+a3)*10 ... (转载)
SQL Server 2005 Exec( )SQL run a stored procedure by fetching from a cursor row by row
测一下你的t-sql 功力get value returned by SQLstored procedure from python (转载)
相关话题的讨论汇总
话题: need话题: dependency话题: objects话题: finding