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

PREVIOUS NEXT
Code Example
Sql :: mysql find most common value 
Sql :: t-sql remove all non-alphanumeric characters from a string 
Sql :: see all users mysql 
Sql :: sql between date range 
Sql :: mariadb get column names from table 
Sql :: mariadb alter user host 
Sql :: postgresql concatenate multiple rows in group by 
Sql :: add column table sql default value 
Sql :: postgresql convert text to float 
Sql :: how to check all scheduled jobs in oracle 
Sql :: get date from now() mysql 
Sql :: select dba users oracle 
Sql :: mysql monthname 
Sql :: add column in mysq 
Sql :: mysql greater thatn a week ago 
Sql :: oracle reset sequence 
Sql :: t-sql disable system versioning 
Sql :: sql server 2012 query history 
Sql :: postgres convert exisiting column to text 
Sql :: delete triger pl pg sql 
Sql :: mysql random number between 1 and 100 
Sql :: oracle kill session by sql_id 
Sql :: mysql between start date and end date 
Sql :: oracle activate job 
Sql :: mysql insert generate serie 
Sql :: postgres get database encoding 
Sql :: how do you use sql in you company 
Sql :: postgresql if null then 0 
Sql :: Sql creating roles 
Sql :: table drop if exist sql server 
ADD CONTENT
Topic
Content
Source link
Name
9+2 =