Search of table names

前端 未结 9 1227
傲寒
傲寒 2021-01-29 22:10

I use the following to search for strings in my stored procedures:

use DBname
SELECT Name
FROM sys.procedures
WHERE OBJECT_DEFINITION(OBJECT_ID) LIKE \'%xxx%\'
<         


        
9条回答
  •  闹比i
    闹比i (楼主)
    2021-01-29 22:44

    I'm using this and works fine

    SELECT * FROM INFORMATION_SCHEMA.TABLES 
    WHERE TABLE_NAME LIKE '%%'
    

提交回复
热议问题