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

When using Powershell to control Azure the Cloud Shell doesn’t require an additional login.

By

When studying Azure one of the things you’ll be asked to learn is the...

SQL Server Statistics Health Reminder

By

I’ve written about statistics in SQL Server a few times now. Through conversations  I...

Running SQL Server containers as non-root

By

Recently I noticed that Microsoft uploaded a new dockerfile to the mssql-docker repository on...

Read the latest Blogs

Forums

Is Data the Future of the Vibrant Web?

By Steve Jones - SSC Editor

Comments posted to this topic are about the item Is Data the Future of...

transaction delay when replica unavailable - what effect?

By snomadj

I'm using AlwaysOn synchronous replica.  User issues an update on primary via SSMS.  In...

need to calculate Group by date

By nrdroque

hi, i'm creating a view and need some help. i have the column "valorTotal"...

Visit the forum

Ask SSC

SQL Server Q&A from the SQLServerCentral community

Get answers