Complete Programming Stuff
.NET and SQL codes
Labels
SQL
(14)
Common static functions
(4)
ASP.NET
(1)
Other
(1)
Monday, January 28, 2013
Search a text from all Stored Procedures
SELECT
obj
.
Name
SPName
,
sc
.
TEXT
SPText
FROM
sys
.
syscomments
sc
INNER
JOIN
sys
.
objects
obj
ON
sc
.
Id
=
obj
.
OBJECT_ID
WHERE
sc
.
TEXT
LIKE
'%'
+
'YouTextHere'
+
'%'
AND
TYPE
=
'P'
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment