Technical Article

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

492 reads

Technical Article

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,648 reads

Blogs

Daily Coping 26 Jan 2023

By

Today’s coping tip is to focus on what’s good, even if today feels tough....

Using SQL Data Compare from the Command Line with a Project

By

SQL Data Compare (SDC) is a great way to sync data among tables. It’s...

Daily Coping 25 Jan 2023

By

Today’s coping tip is to be gentle with yourself when you make mistakes. I...

Read the latest Blogs

Forums

Can't Add Delegation for MSSQLSvc to IIS for AG Listener

By skreebydba

I have a two-replica SQL Server Availability Group running on Windows VMs in the...

Read # of trace files

By Chitown

I have a SQL agent job which starts the trace (for audit purpose) everyday...

cannot grant user view definition on a database

By winston Smith

I have a number of databases on a sql server 2017 instance. For most...

Visit the forum

Ask SSC Logo Ask SSC

SQL Server Q&A from the SQLServerCentral community

Get answers