G
Guest
Hi,
I'm trying to count rows in each of the tables in an SQL DB. I tried the
following ExecuteScalar command:
"Select Count(*) from " & mTableName
The problem is that one of the tables is huge and I'm getting a time out.
I thought I could do this with a stored procedure using the TableName as a
parmeter, but I couldn't get this to work. I thought that I could somehow
use the metadata (maybe from GetSchema) to just ask for the row count. I
couldn't figure that out either.
Can anyone help me out with this?
Art
I'm trying to count rows in each of the tables in an SQL DB. I tried the
following ExecuteScalar command:
"Select Count(*) from " & mTableName
The problem is that one of the tables is huge and I'm getting a time out.
I thought I could do this with a stored procedure using the TableName as a
parmeter, but I couldn't get this to work. I thought that I could somehow
use the metadata (maybe from GetSchema) to just ask for the row count. I
couldn't figure that out either.
Can anyone help me out with this?
Art