Hi,
MSSQL Version 8.0.760
On HeidiSql 8.1.0.4554 the count rows fonction was :
SELECT COUNT(*) FROM ."TABLE";
And worked.
Since HeidiSql 8.2...
it uses :
SELECT object_name(object_id) AS tablename, SUM(rows) AS rows
FROM sys.partitions
WHERE
index_id IN (0, 1)
AND object_name(object_id) IS NOT NULL
GROUP BY object_id
ORDER BY tablename
Witch may be faster but makes Crash HeidiSql on MSSQL 8.0.760
Will there be a workaround on this ?
Thanks !
MSSQL sys.partitions Crash
Hi,
Yes may be I did not run tests on Big tables for now.
But I thinks it's better to have a function witch works with all version for now.
Else You would need a table of versions with compliant fonctions ...
I'll try to run some test with count(*) on small to big tables and send you the results.
Yes may be I did not run tests on Big tables for now.
But I thinks it's better to have a function witch works with all version for now.
Else You would need a table of versions with compliant fonctions ...
I'll try to run some test with count(*) on small to big tables and send you the results.
Code modification/commit
db76b2f
from ansgarbecker,
10 years ago,
revision 9.1.0.4941
Outsource RowCount into TDBObject which calls TDBConnection.GetRowCount with a server and version specific query. Introduce SELECT COUNT(*) for MSSQL 2000.
See
* http://www.heidisql.com/forum.php?t=18158
* http://www.heidisql.com/forum.php?t=15438
Code modification/commit
b73043f
from ansgarbecker,
10 years ago,
revision 9.1.0.4942
Use table schema only when not empty, otherwise use database name, in TAdoDBConnection.GetRowCount(). See http://www.heidisql.com/forum.php?t=15438#p18200
Please login to leave a reply, or register at first.