Zeichenfolge im SQL Code finden
DECLARE @codesnippet varchar(100);
SET @codesnippet = 'EnterStringHere';
SELECT
O.type_desc AS ObjectType,
(LEFT(OBJECT_NAME(M.[object_id]), 50)) AS ObjectName
FROM
sys.sql_modules M
JOIN
sys.objects O ON M.[object_id] = O.[object_id]
WHERE
definition LIKE '%' + @codesnippet + '%'
AND
OBJECTPROPERTY(M.[object_id], 'IsMSShipped') = 0
ORDER BY
ObjectName;
| Print article | This entry was posted by Frank Kalis on 22.09.08 at 14:05:11 . Follow any responses to this post through RSS 2.0. |
Noch kein Feedback
Einen Kommentar hinterlassen
Trackback-Adresse für diesen Eintrag
http://www.insidesql.org/blogs/htsrv/trackback.php?tb_id=949
