SP to search String in TEXT of SPs

Well this is an addendum to my earlier post for searching a specific string in all the Stored Procedures defined in a database and returning the name of the stored procedure in which it is contained. This is optimized based on suggestion of Greg and I thank him for his advise.

4 (1)

2004-04-09

489 reads

Function To Retrieve Last Index

This Function Enables the user to retrieve the Last Index of the character/string in a predetermined string.Eg If you want search for the Last Occurance of 'SQL' in 'SQL SERVER2000 USES ANSI SQL' thenSELECT dbo.LastIndexOf('SQL SERVER2000 USES ANSI SQL','SQL')will return 26.Tested Only in SQL SERVER2000

5 (3)

2004-03-25

2,625 reads

Blogs

The Diverse Data Platform–Dativerse.io

By

The other day I got a note from Ben Weissman the other day that...

Extended Events and Azure SQL Database

By

Knowledge of how your system behaves is vital to better control, maintain, and grow...

Daily Coping 19 Apr 2021

By

I started to add a daily coping tip to the SQLServerCentral newsletter and to...

Read the latest Blogs

Forums

Replication - not all columns are updating

By screenshot

I've set up replication but I'm having difficulties in my testing. I've changed 3...

The Security of Source Code

By Steve Jones - SSC Editor

Comments posted to this topic are about the item The Security of Source Code

Running SSIS in ADF

By Steve Jones - SSC Editor

Comments posted to this topic are about the item Running SSIS in ADF

Visit the forum

Ask SSC

SQL Server Q&A from the SQLServerCentral community

Get answers