thepracticaldev.com thepracticaldev.com

How to Setup a Minimal Node.js Server

Node.js is a JavaScript engine that let us use JS language in the backend. You can say goodbye to Apache, Ngix servers or something similar for your backend needs. Thanks to Node.js, your JS knowledge is enough to work in the backend. TL;DR–Explore the example repository Goals bootstrap a Node.js server serve up an HTML file Prerequisites have Node.js installed in your local machine (at least version 10) have a basic...

programmer group

A fast way to count the number of rows in each table in SQL Server

We all know that the aggregate function count() can count the number of rows in a table. If you need to count the number of rows of each table in the database (DBA may have this requirement), you must generate a dynamic SQL statement for each table and execute it with count() function to get the result. I used to see a good solution on the Internet. I forgot the source. Write it down and share it. This method makes use of the rows...