Dataread

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • ousta

    Dataread

    Bonsoir,
    j'aurais aimé savoir s'il etait possibl;e d'acceder a une ligne specifique
    d'un datareader (donc pas de while(dr.read() ) et si cette methode est plus
    rapide d'acces qu'une boucle

    Merci


  • Tarakeshwar L

    #2
    Re: Dataread

    Its not clear what you have typed. Guessing by what u have typed the
    solution would be using '!' which means not

    while(!dr.Read( ))

    --
    Tarkeshwar
    CCIE Q(Routing and Switching)
    Fifth Generation Technologies

    "ousta" <oustaeff@hotma il.com> wrote in message
    news:eGQJxtBnEH A.1672@TK2MSFTN GP09.phx.gbl...[color=blue]
    > Bonsoir,
    > j'aurais aimé savoir s'il etait possibl;e d'acceder a une ligne specifique
    > d'un datareader (donc pas de while(dr.read() ) et si cette methode est plus
    > rapide d'acces qu'une boucle
    >
    > Merci
    >
    >[/color]


    Comment

    • ousta

      #3
      Re: Dataread

      Sorry NewsGroup Error :)
      Is there any method for find a specific line of the dataread.

      Not with while(!dr.Read)


      "Tarakeshwa r L" <l.tarakeshwar@ fifthgentech.co m> a écrit dans le message de
      news:OLcusxBnEH A.3968@TK2MSFTN GP11.phx.gbl...[color=blue]
      > Its not clear what you have typed. Guessing by what u have typed the
      > solution would be using '!' which means not
      >
      > while(!dr.Read( ))
      >
      > --
      > Tarkeshwar
      > CCIE Q(Routing and Switching)
      > Fifth Generation Technologies
      >
      > "ousta" <oustaeff@hotma il.com> wrote in message
      > news:eGQJxtBnEH A.1672@TK2MSFTN GP09.phx.gbl...[color=green]
      > > Bonsoir,
      > > j'aurais aimé savoir s'il etait possibl;e d'acceder a une ligne[/color][/color]
      specifique[color=blue][color=green]
      > > d'un datareader (donc pas de while(dr.read() ) et si cette methode est[/color][/color]
      plus[color=blue][color=green]
      > > rapide d'acces qu'une boucle
      > >
      > > Merci
      > >
      > >[/color]
      >
      >[/color]


      Comment

      • Ignacio Machin \( .NET/ C#  MVP \)

        #4
        Re: Dataread

        Hi,

        Are you talking about a DataReader ?

        IF so the answer is not, the DataReader is a readonly, forward only cursor.

        If it's a binary file then you can use FileStream.Seek .

        Cheers,

        --
        Ignacio Machin,
        ignacio.machin AT dot.state.fl.us
        Florida Department Of Transportation



        "ousta" <oustaeff@hotma il.com> wrote in message
        news:enmklBCnEH A.3876@TK2MSFTN GP15.phx.gbl...[color=blue]
        > Sorry NewsGroup Error :)
        > Is there any method for find a specific line of the dataread.
        >
        > Not with while(!dr.Read)
        >
        >
        > "Tarakeshwa r L" <l.tarakeshwar@ fifthgentech.co m> a écrit dans le message[/color]
        de[color=blue]
        > news:OLcusxBnEH A.3968@TK2MSFTN GP11.phx.gbl...[color=green]
        > > Its not clear what you have typed. Guessing by what u have typed the
        > > solution would be using '!' which means not
        > >
        > > while(!dr.Read( ))
        > >
        > > --
        > > Tarkeshwar
        > > CCIE Q(Routing and Switching)
        > > Fifth Generation Technologies
        > >
        > > "ousta" <oustaeff@hotma il.com> wrote in message
        > > news:eGQJxtBnEH A.1672@TK2MSFTN GP09.phx.gbl...[color=darkred]
        > > > Bonsoir,
        > > > j'aurais aimé savoir s'il etait possibl;e d'acceder a une ligne[/color][/color]
        > specifique[color=green][color=darkred]
        > > > d'un datareader (donc pas de while(dr.read() ) et si cette methode est[/color][/color]
        > plus[color=green][color=darkred]
        > > > rapide d'acces qu'une boucle
        > > >
        > > > Merci
        > > >
        > > >[/color]
        > >
        > >[/color]
        >
        >[/color]


        Comment

        Working...