Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Find a record in a datareader
Message
De
03/12/2003 21:09:24
Keith Payne
Technical Marketing Solutions
Floride, États-Unis
 
 
À
03/12/2003 01:08:36
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Divers
Thread ID:
00855308
Message ID:
00855698
Vues:
15
>Is it possible for me to find a record in a datareader .. I use below code .. (I don't want to use "Where clause in my SQL statement")
>
>Dim mKode as string
>Dim mSQLCheckData As String = "Select * from MyTable01 Order by Kode"
>Dim DataReader As SqlDataReader
>
>Dim SQLCommand As New SqlCommand(mSQLCheckData, SqlConnection1)
>
>SqlConnection1.Open()
>DataReader = SQLCommand.ExecuteReader()
>
>--
>--
>--
>
>SqlConnection1.Close()
>
>please help
>
>TIA
>
>Winanjaya

Winan,

You would have to loop through the DataReader and test each row for the record you are looking for.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform