N
N! Xau
Hi,
I'm trying to get the row count from a table, in the fastest way (con
is the connection name).
Dim NRows As Integer
Dim CountQuery As String = "select count(*) from MyTable"
Dim cmdNR As New OracleCommand(CountQuery, con)
Try
NRows = cmdNR.ExecuteScalar()
Return NRows
Catch ex As Exception
....
End Try
I get an Exception.
TIA
N! Xau
I'm trying to get the row count from a table, in the fastest way (con
is the connection name).
Dim NRows As Integer
Dim CountQuery As String = "select count(*) from MyTable"
Dim cmdNR As New OracleCommand(CountQuery, con)
Try
NRows = cmdNR.ExecuteScalar()
Return NRows
Catch ex As Exception
....
End Try
I get an Exception.
TIA
N! Xau