我知道查询所有数据库名称的sql为
SELECT name FROM master..sysdatabases
查询当前数据库的sql为
select name
from sysobjects o, syscomments s
where o.id = s.id
and text like '%text%'
求大神帮忙。
我知道查询所有数据库名称的sql为
SELECT name FROM master..sysdatabases
查询当前数据库的sql为
select name
from sysobjects o, syscomments s
where o.id = s.id
and text like '%text%'
求大神帮忙。
select name
from sysobjects o, syscomments s
where o.id = s.id
and text like '%querytext%'
and o.xtype = 'P' ORDER BY name
将querytext替换成你想查找的字符串即可。