Search
 
SCRIPT & CODE EXAMPLE
 

SQL

sql database size

USE <database_name>;
EXEC sp_spaceused;
Comment

check database size sql

// QUERY 

SELECT table_schema AS "Database Name",
  ROUND(SUM(data_length + index_length) / 1024 / 1024, 2)
  AS "Size in (MB)"
  FROM information_schema.TABLES
  GROUP BY table_schema;
Comment

check database size

SELECT table_schema AS "Database Name",
  ROUND(SUM(data_length + index_length) / 1024 / 1024, 2)
  AS "Size in (MB)"
  FROM information_schema.TABLES
  GROUP BY table_schema;
Comment

PREVIOUS NEXT
Code Example
Sql :: how to see logical reads in sql server 
Sql :: set statiscis on in sql server 
Sql :: set statistics on in ssms 
Sql :: sql server add identity column to existing table 
Sql :: oracle alert log location 
Sql :: sqlite create integer column with limit 
Sql :: oracle sql assign unique number to each grouping 
Sql :: oracle current timestamp 
Sql :: mysql show table column full description 
Sql :: mysql bidirectional composite primary key 
Sql :: change mysql root password 
Sql :: get the mysql table columns data type mysql 
Sql :: how to check even or odd in sql 
Sql :: how to check nls format in oracle 
Sql :: show all table name mysql 
Sql :: my sql version 
Sql :: xampp mysql database server is not starting mac m1 
Sql :: split first name and last name in sql 
Sql :: how to insert into existing database postgresql sqlalchemy python 
Sql :: list columns in table postgres 
Sql :: oracle add month 
Sql :: oracle search columns in schema 
Sql :: sql today at midnight 
Sql :: datetime add 2 hours sql 
Sql :: alter table add column 
Sql :: Step 1: Installing MySQL Client You can install MySQL client directly through pip using the command pip install mysqlclient 
Sql :: display index in sql 
Sql :: centos 8 install mysql 
Sql :: oracle sql group by date year 
Sql :: An error occurred while installing mysql2 (0.3.20), and Bundler cannot continue. 
ADD CONTENT
Topic
Content
Source link
Name
5+9 =