Quantcast
Viewing all articles
Browse latest Browse all 14773

substring() on huge text column - response (4) by dnoeth

Hi Herman, this error is not because of the long string, there are some rows where there's a "user=", but no "reportPath=" resulting in a negative value in FOR which errors out. You need a WHERE condition or a CASE to filter: CASE WHEN SqlTextInfo like ''%user=%reportPath=%' THEN SUBSTRING... END Dieter  

Viewing all articles
Browse latest Browse all 14773

Trending Articles