Re: # char in field name causing error by Brad
Brad
Fri May 14 15:12:18 CDT 2004
TIA,
If you are using an AS400 system (DB2) like I am, here is a sample SELECT
string from one of my apps:
SELECT CMNAME, CMADR1, CMCITY, CMST, CMZIP5, CMPHON, "CMCUS#", CMMAGC,
CMADR2, CMCONT, CMFAX
FROM QS36F.ARCUST
WHERE ("CMCUS#" = ?)
As you can see the field with the pound sign (#) is surrounded with
quotation marks. Now, this select statement was generated by the Command
Wizard.
Hope this helps.
Brad
"CSharpner" <google@easiesttoremember.com> wrote in message
news:30383b28.0405140552.4ac25217@posting.google.com...
> I'm using DB2 for my database server. I'm trying to configure a
> DataAtapter, but after selecting the fields I need, I get the error,
> "unable to parse query text". I know that the cause is a field name
> with the # (pound character) in the name, like "Part#".
>
> Changing the field name is, unfortunately, not an option. How the
> heck are you supposed to query a table like that?
>
> TIA