Function: TruncStrOnDeliminator


/ Published in: SQL
Save to your folder(s)

Function to truncate a string at the last instance of deliminator before exceeding cutoff.
Example:

select dbo.TruncStrOnDeliminator( 'Aggregates, Asphalt Cleaning, Coating, Cracks, Patching, Repairs, Sealing, Striping',60,default)

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.