How I Count All Rows From All Tables From Database UiPath ?
Can you Suggest The Documentation Or Just Give Me any Ideas To Count All Rows From Database UiPath ?
How I Count All Rows From All Tables From Database UiPath ?
Use Database activities for this.
dbConnection.dtTables.SELECT TABLE_NAME
FROM INFORMATION_SCHEMA.TABLES
WHERE TABLE_TYPE = 'BASE TABLE';
For Each row in data table activity and pass dtTables to get count of rows from each Table.dtRowCount.SELECT 'TableName' AS TableName, COUNT(*) AS RowCount FROM TableName
Append this dtRowCount to an datatable which is outside of the For Each.
That’s it. You will have row counts of all tables.
Thanks,
Ashok ![]()
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.