用于存储过程的 SQL 表和列解析器 [英] SQL Table and column Parser for stored procedures

查看:30
本文介绍了用于存储过程的 SQL 表和列解析器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有应用程序可以解析一组给定的存储过程 (SQL Server 2000) 并获取其中正在使用的所有表和相关列.存储过程可以有来自不同数据库的表.

Is there an application , which can parse a given set of stored procedures (SQL Server 2000) and gets all tables and associated columns that are being used in it. The stored procedure can have tables from different databases.

输出应该像表AA列C列列D

Output should be like TableA columnA columnC columnD

表B列EF列列G

我用Database Edition GDR写了一个小应用,有兴趣的可以参考http://tsqlparsergdr.codeplex.com

I have written an small application using Database Edition GDR Any one interested can refer to http://tsqlparsergdr.codeplex.com

推荐答案

您可以使用 SHOWPLAN_ALL 设置并解析输出.

You can use SHOWPLAN_ALL setting and parse the output.

这篇关于用于存储过程的 SQL 表和列解析器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆