Alternatives
Members may post updates or alternatives to this current article in order to show different
approaches or add new features.
CREATE FUNCTION [dbo].[com_CountString](@Input nVarChar(max), @SearchString nVarChar(1000))RETURNS INTBEGIN if @Input is null or @SearchString is null return 0 DECLARE @InputLength INT, @SearchLength INT SELECT...
25 Jun 2010Chris Maunder 2 alternatives
I had a need to count the number of times a certain string appeared within a column in a SQL table. I came up with this simple function that may be of use to others
Since I've begun my profession as a software developer, I've learned one important fact - change is inevitable. Requirements change, code changes, and life changes.
So..If you're not moving forward, you're moving backwards.