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

159 reads

Blogs

On Dynamic Ports, Named Instances, and Firewalls

By

Recently I had a client and their vendor trying to configure a firewall for...

Daily Coping 13 Jul 2020

By

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

Last Week Reading (2020-07-12)

By

Press Azure resource providers operations List of all of the available ADF-specific RBAC permissions....

Read the latest Blogs

Forums

Disk space

By Admingod

I noticed the system volume information is consuming the disk space on database server...

Creating a Dimension with no Primary Key

By daithiboy

Hi all, I'm rebuilding some cubes in SQL Server 2017 using Visual Studio and...

Code signing a dll with certificate for use in SQL Server 2016

By fafful

I have a dll that will perform some webservice calls function. in order to...

Visit the forum

Ask SSC

SQL Server Q&A from the SQLServerCentral community

Get answers