I need to send an SQL query to a database that will tell me how many rows are in the table. I could get all the rows in the table using SELECT and then count them, but I don't like to do it that way. Is there any other way to set the number of rows in a table on an SQL server?
sql-server count rows database-table
Federico capece
source share