SELECT COUNT(*) FROM SYS.TABLES OR SELECT COUNT(*) FROM SYS.OBJECTS WHERE TYPE = 'U' /* HERE OBJECT 'U' NOTED FOR USER DEFINED TABLES */
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)