Skip to content

../notes_to_myself

  • Home
  • Portfolio
  • Sample Page

Tag: Stored Procedures

Locate Stored Procedures Related To a Table

—-Option 1

SELECT DISTINCT so.name

FROM syscomments sc

INNER JOIN sysobjects so ON sc.id=so.id

WHERE LOWER(sc.TEXT) LIKE ‘%name%’

—-Option 2

SELECT DISTINCT o.name, o.xtype

FROM syscomments sc

INNER JOIN sysobjects o ON sc.id=o.id

WHERE LOWER(sc.TEXT) LIKE ‘%name%’

Author Chrystal SanderPosted on August 14, 2011July 26, 2023Categories SQLTags SQL Server, Stored Procedures

Searching the Text of Stored Procedures in SQL Server

–How To Search The Text of Stored Procedures in SQL Server:

SELECT OBJECT_NAME(id)

FROM syscomments

WHERE [text] LIKE ‘%dog%’

AND OBJECTPROPERTY(id, ‘IsProcedure’) = 1

GROUP BY OBJECT_NAME(id)

Author Chrystal SanderPosted on December 18, 2010July 26, 2023Categories SQLTags SQL Server, Stored Procedures
  • Get Command Line Help
  • Online C# Sandbox

Android Architecture Arduino ASP.NET AWS Azure Caching Constraints CSharp cybersecurity Design Patterns DotNet Excel git IIS IOT Linq log4net Master Chief MinIO mstest MVC Notes nunit oracle Partitioning PHP PowerShell Query Def Raspberry Pi REST S3 SQL SQL Server Stored Procedures Swagger systables tools Visual Basic Visual Studio WebApi windows WordPress Xml xunit

  • Home
  • Portfolio
  • Sample Page
../notes_to_myself