Correction to parsestring

The original function fails when a mistaken split char is being snet to the function.This can easly be corrected by adding an if to check the value of the @holdpos inside the loop before sending it to the substring functionif the value is 0 then break the loop

2005-02-23 (first published: )

106 reads

Blogs

When Read Committed Snapshot Goes Bad – Version Store Filling TempDB

By

We all had those calls, it’s the middle of the night and we get...

Daily Coping 17 Jun 2021

By

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

#PowershellBasics: Finding a common AD group for a set of users.

By

A while back (almost 7 years ??) I wrote a post on finding the...

Read the latest Blogs

Forums

UniqueIdentifier as Primary Key, non-clustered index, fragmentation issue

By oRBIT

I've been working a little bit with a few tables here, they've got "CreatedDate"...

Multiple deadlocks occuring on simultaneous deletions from temporal table

By zoggling

We have a stored procedure which is attempting to delete 1-2 rows at a...

Foreign key for Xml Datatype

By IT researcher

Is foreign key constraint possible in xml data type? OR Is it possible to...

Visit the forum

Ask SSC

SQL Server Q&A from the SQLServerCentral community

Get answers