something like recordcount?

P

phil

Hi,

Does it exist a function or method like 'recordcount' of the asp 2.0?
Thanks
Phil
 
B

Bruno Alexandre

Yes but you need to use a way to get it

dim dReader as SqlDataReader

command.open()
dReader = command.ExecuteReader()

dReader.VisibleFieldCount() returns an integer with the number of rows

you can read all the fields with

While dReader.read()
name = dReader.Item("columnName")
End While
 
P

phil

Thanks

Bruno Alexandre said:
Yes but you need to use a way to get it

dim dReader as SqlDataReader

command.open()
dReader = command.ExecuteReader()

dReader.VisibleFieldCount() returns an integer with the number of rows

you can read all the fields with

While dReader.read()
name = dReader.Item("columnName")
End While
 
P

phil

Hi Bruno,

I tried dReader.VisibleFieldCount() but this gives the number of fields, not
the number of records (or rows).
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

RecordCount 6
DataReader and RecordCount 9
RecordCount of a datareader 1
File Management 2
File management 1
Accessing value from SqlDataSource 2
Math python question 10
SPROC Recordcount 11

Members online

Forum statistics

Threads
473,774
Messages
2,569,596
Members
45,141
Latest member
BlissKeto
Top