Re: executescalar()
- From: "Robin Tucker" <idontwanttobespammedanymore@xxxxxxxxxxxxxxx>
- Date: Tue, 26 Jul 2005 16:03:36 +0100
Any idea what exception you are getting? ;)
"N! Xau" <nxau@xxxxxxxxxxx> wrote in message
news:1122389574.856810.58000@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
> 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
>
.
- References:
- executescalar()
- From: N! Xau
- executescalar()
- Prev by Date: Re: Maximum number of parameters for a procedure
- Next by Date: Re: FTP with VB6.0 vs VB.NET
- Previous by thread: executescalar()
- Next by thread: Re: executescalar()
- Index(es):
Relevant Pages
|