1.根据字段名,查找相关表--INFORMATION_SCHEMA.COLUMNS
SELECT * FROM INFORMATION_SCHEMA.COLUMNS WHERE COLUMN_NAME='字段名' AND TABLE_CATALOG='DbName'
2.根据存储过程名查找其源码,输出格式化SQL--sp_helptext
sp_helptext PrcName
2024-02-27 23:42:45
1.根据字段名,查找相关表--INFORMATION_SCHEMA.COLUMNS
SELECT * FROM INFORMATION_SCHEMA.COLUMNS WHERE COLUMN_NAME='字段名' AND TABLE_CATALOG='DbName'
2.根据存储过程名查找其源码,输出格式化SQL--sp_helptext
sp_helptext PrcName