How would you assign a variable the total number of rows a table has in SQL Server
?
Something like the following should do the trick:
Declare @VariableName int
Select @VariableName=count(1) from TableName
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With