USEFUL SQL QUERIES FOR IDENTIFYING CONTENTS
TO IDENTIFY COLUMN NAME IN DATABASE
SELECT sc.[name] AS column_name ,so.[name] FROM syscolumns sc
INNER JOIN sysobjects so ON sc.id=so.id
WHERE sc.[name] = 'ColumnName'
AND so.xtype = 'U'
ORDER BY so.name
IDENTIFY TEXT CONTENT IN THE STORED PROCEDURES
sc.TEXT LIKE '%TextContent%'
SELECT * FROM sys.sysobjects WHERE id in (
select id from sys.syscomments where text like '%TextContent%')
No comments :
Post a Comment