Blog comprises different TSQL solutons and useful ways to optimize our database and queries.
Tuesday, April 14, 2009
Query to retrieve stored procedures and views for a particular text
select so.id,so.name,so.xtype, sc.text from syscomments sc inner join sysobjects so on so.id = sc.id where sc.text like '%select *%' and so.xtype in('P','V')
No comments:
Post a Comment