to need to return the total number of products in sql server database code example
Example 1: To count number of rows in SQL table
SELECT count(*)
FROM information_schema.columns
WHERE table_name = 'Your_table_nale';
Example 2: how to count number of rows in sql
SELECT COUNT(*)
FROM dbo.bigTransactionHistory;