Re: Parameter it doesn't work (for me) II
- From: "Stephany Young" <noone@localhost>
- Date: Tue, 5 Apr 2005 20:28:26 +1200
As you were told last time you posted this question, the wildcard for like
in ADO and ADO.NET is %, not *.
"Fia" <fiaolle@xxxxxxxxx> wrote in message
news:%2309jVdbOFHA.3444@xxxxxxxxxxxxxxxxxxxxxxx
> Hi again
> I tried the code below and know the CommandText looks like it should from
> the Trace,
> but I still don't get any records.
> When I'm running the SQL statement in the Access database I get records.
>
> sökaOrdCom = New OleDbCommand("Select * from kött where köttid Like " &
> "'"
> & PubStr & "*'", DBConn)
> sökaOrdRead = sökaOrdCom.ExecuteReader
> Trace.WriteLine(sökaOrdCom.CommandText)
>
> Do While sökaOrdRead.Read
> recCount += 1 'this code never happens
> Loop
>
> I don't get this, please help me.
>
> Fia
>
>
.
- Follow-Ups:
- Re: Parameter it doesn't work (for me) II
- From: Cor Ligthert
- Re: Parameter it doesn't work (for me) II
- References:
- Parameter it doesn't work (for me) II
- From: Fia
- Parameter it doesn't work (for me) II
- Prev by Date: double post was Re: Parameter it doesn't work (for me) II
- Next by Date: Parameter it doesn't work (for me) III
- Previous by thread: double post was Re: Parameter it doesn't work (for me) II
- Next by thread: Re: Parameter it doesn't work (for me) II
- Index(es):
Relevant Pages
|
|