如果sp中有个字符串,怎么找到这个sp?
SELECT OBJECT_NAME(object_id)
FROM sys.sql_modules
WHERE Definition LIKE '%范维肖%'
AND OBJECTPROPERTY(object_id, 'IsProcedure') = 1
SQL Server 2005下测试
SELECT OBJECT_NAME(object_id)
FROM sys.sql_modules
WHERE Definition LIKE '%范维肖%'
AND OBJECTPROPERTY(object_id, 'IsProcedure') = 1
SQL Server 2005下测试