ADO return varchar string with space trimmed
- From: wdwedw <wdwedw@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Thu, 28 Jul 2005 12:42:10 -0700
I have a stored procedure like this:
select CASE WHEN LEN(D1) < = 10
THEN D1 + REPLICATE(' ', 10 - len(D1))
ELSE LEFT(D1,10)
END AS D1
from table1
When ADO retrieved the record in VB, the appended spaces were trimmed! I can
work around with REPLICATE(N' ', 10 - len(D1)). But what's wrong?
.
- Follow-Ups:
- Re: ADO return varchar string with space trimmed
- From: Daniel Crichton
- Re: ADO return varchar string with space trimmed
- Prev by Date: Re: IDispatch error #3149
- Next by Date: RE: 0x80020008 error
- Previous by thread: Can this small function be sped up? VB6 COM ADO (2.8) question...new to this stuff!
- Next by thread: Re: ADO return varchar string with space trimmed
- Index(es):