Am!T
4|v|!"|" "|"3<|-||\|0 800|{
Tuesday, June 21, 2011
Findout the recently modified objects in sql database
SELECT name, create_date, modify_date
FROM sys.objects
WHERE type = 'P'
order by modify_date desc
Monday, June 20, 2011
Find a string in all Stored Procedures
Find a string in all Stored Procedures:
SELECT OBJECT_NAME(id)
FROM syscomments
WHERE [text] LIKE '%foobar%'
AND OBJECTPROPERTY(id, 'IsProcedure') = 1
GROUP BY OBJECT_NAME(id)
Newer Posts
Older Posts
Home
Subscribe to:
Posts (Atom)