This could be happening cause @chCustName is getting adicional spaces from the field Name:
@chCustName = 'Ruzic~Predrag '
Before setting @intLen, try to remove the spaces from @chCustName using:
@chCustName = Trim(@chCustName)
Hope this helps.
Hi.
I've never needed some solution for this situation and I don't know if this is possible with a simgle query. If you don't get it, I suggest two ways:
1. Use a datetime variable within a "while" loop and test each date with a "not exists" row in the table.
2. Create a...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.