Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Find a record in a datareader
Message
From
03/12/2003 21:09:24
Keith Payne
Technical Marketing Solutions
Florida, United States
 
 
To
03/12/2003 01:08:36
General information
Forum:
ASP.NET
Category:
Other
Miscellaneous
Thread ID:
00855308
Message ID:
00855698
Views:
16
>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.
Previous
Reply
Map
View

Click here to load this message in the networking platform