Count number of strings within a string

This function will return the number of occurrences of one string within another string. I was looking for something like this recently, and the only thing I could find was needlessly complicated. Don't forget, when calling a scalar function, you must qualify with username like this:Select dbo.StringCount('Hi There','e') This function may be a little too […]

2004-03-09

149 reads

Blogs

What the ???? T-SQL Tuesday #120

By

Hey, it’s T-SQL Tuesday again! I almost forgot about it what with Summit and...

First Time Speaking at PASS Summit

By

This week, I filmed my experience as a first time speaker at PASS Summit...

Azure SQL Best Practices?

By

A way to enforce good practice and standards is by Azure Policy. As stated...

Read the latest Blogs

Forums

Limiting the Data Frame

By Steve Jones - SSC Editor

Comments posted to this topic are about the item Limiting the Data Frame

Micro Credentials

By Steve Jones - SSC Editor

Comments posted to this topic are about the item Micro Credentials

CheckDB on VLDB, Geography data type

By el_Guapo

I've narrowed down a DBCC CheckDB issue to a set of tables with Geography...

Visit the forum

Ask SSC

SQL Server Q&A from the SQLServerCentral community

Get answers