About 796,000 results
Open links in new tab
  1. Search text in stored procedure in SQL Server - Stack Overflow

    Feb 5, 2013 · I want to search a text from all my database stored procedures. I use the below SQL: SELECT DISTINCT o.name AS Object_Name, o.type_desc FROM sys.sql_modules m INNER JOIN sys.objects o ON m.object_id = o.object_id WHERE m.definition Like '%[ABD]%';

  2. sql server - How do I find a stored procedure containing <text ...

    Feb 22, 2011 · How to Find a Stored Procedure Containing Text or String. Many time we need to find the text or string in the stored procedure. Here is the query to find the containing text. SELECT OBJECT_NAME(id) FROM SYSCOMMENTS WHERE [text] LIKE '%Text%' AND OBJECTPROPERTY(id, 'IsProcedure') = 1 GROUP BY OBJECT_NAME(id)

  3. How to Search Text in a SQL Server Stored Procedure

    Feb 2, 2024 · In this article, we will look into different ways of how to search text in stored procedures and what are the possible uses. A stored procedure generally contains different SQL queries like SELECT query, INSERT query, DELETE query, or an UPDATE query. From the stored procedure we can also call another stored procedure or another FUNCTION.

  4. Find Text in Stored Procedure, Function, View, or Trigger

    Jan 28, 2025 · Find text in stored procedures, functions, views, triggers by searching SQL Server system tables using PowerShell and SQL.

  5. How to find a text inside SQL Server procedures / triggers?

    Any searching with select statement yield you only object name, where search keyword contains. Easiest and efficient way is get script of procedure/function and then search in generated text file, I also follows this technique :) So you are exact pinpoint.

  6. How to Find Text in a SQL Server Stored Procedure: Just run this …

    May 30, 2022 · This query simply utilizes a few handy system tables to search through all the stored procedures in our database looking for procedures that contain a specific word or text. You would replace TEXT_TO_LOOK_FOR with the actual text you want to search for.

  7. Find Stored Procedures Containing Text In SQL Server

    This is a simple script working with SQL Sever to find a stored procedure containing a text string. It’s very useful for auditing bad procedures or looking for similarly named fields when you find yourself stuck.

  8. SQL Server find text in stored procedure - DatabaseFAQs.com

    Sep 27, 2021 · In SQL Server, there are many ways to find a stored procedure containing a specific string or text. We will try to cover some standard ways to implement this. The first and simplest way to find a stored procedure with a specific text is by using the sys.procedures.

  9. How to Find Stored Procedures Containing Specific Text in SQL

    Feb 18, 2025 · Here are two common methods to achieve this: Method 1: Using syscomments. The syscomments system table stores the text of SQL objects, including stored procedures. By querying this table, you can filter for procedures containing …

  10. Microsoft SQL Server - Find a particular text within Stored Procedure ...

    Jul 29, 2020 · In this tutorial, we’ll discuss on how to find Stored Procedures, Views and Functions which contain a particular text in it. Also, we’ll discuss on how to find tables which has a column name with a particular text. To demonstrate this topic, SQL Server 2008 R2 Express version is being used. The exact version information is.

  11. Some results have been removed
Refresh