.Net

By Piush Shukla

Tuesday, 9 July 2013

get total number of tables in a database in SQL

How to get total number of tables in a database in SQL?

It might happen that you will have to start working on a big database, someday. So, just out of curiosity if you ever want to find total number of tables that are in your table you can use this simple query:
 
SELECT COUNT(*) as TotalTables FROM sys.tables WHERE type in ('u')
Posted by Piush shukla at 05:52 No comments:
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest
Labels: Dotnet Solutions by Piush Shukla, get total number of tables in a database in SQL, Piush Shukla
Newer Posts Older Posts Home
Subscribe to: Posts (Atom)

Piush Shukla has about 5 years of work experience on Microsoft technologies (C#.NET,Asp.Net,WPF,

Piush shukla
View my complete profile

Blog Archive

  • ▼  2025 (2)
    • ▼  July (1)
      • Subject: Classic ASP Compatibility on Windows Serv...
    • ►  April (1)
  • ►  2022 (5)
    • ►  June (1)
    • ►  April (3)
    • ►  March (1)
  • ►  2017 (1)
    • ►  September (1)
  • ►  2016 (14)
    • ►  May (1)
    • ►  April (13)
  • ►  2015 (18)
    • ►  December (18)
  • ►  2014 (11)
    • ►  July (3)
    • ►  April (2)
    • ►  January (6)
  • ►  2013 (24)
    • ►  December (11)
    • ►  November (7)
    • ►  July (6)
  • ►  2012 (324)
    • ►  December (1)
    • ►  November (2)
    • ►  September (1)
    • ►  August (3)
    • ►  July (1)
    • ►  June (2)
    • ►  May (5)
    • ►  April (67)
    • ►  March (35)
    • ►  February (77)
    • ►  January (130)
  • ►  2011 (6)
    • ►  December (3)
    • ►  November (3)
Ethereal theme. Powered by Blogger.