use njls
go

select * from 
(
	select 
		name as name1,
		OBJECT_DEFINITION (object_id) as def,* 
	from sys.all_objects 
	--where type='P'
) r
 where lower(r.def) like '%password%' -- '%bulkadd%' 
 order by name1