Site Sponsored By: SQLDSC - SQL Server Desired State Configuration
Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
I have had this script for some time now. Forget where i got it.
select so.name as [Object Name]from sysobjects soinner join syscomments sc on so.id = sc.id WHERE sc.text like '%@@IDENTITY%'--and so.xtype = 'P' --Search just stored procedures