Quantcast
Channel: Teradata Forums - All forums
Viewing all articles
Browse latest Browse all 27759

Space in the database - response (1) by sachin.sebastian

$
0
0
Use the below sql to find out the remaining space in a Database: SELECT DatabaseName ,SUM(CurrentPerm)/1024/1024 AS USEDSPACE_IN_MB ,SUM(MaxPerm)/1024/1024 AS MAXSPACE_IN_MB ,SUM(CurrentPerm)/ NULLIFZERO (SUM(MaxPerm)) *100 (FORMAT 'zz9.99%') AS Percentage_Used ,MAXSPACE_IN_MB- USEDSPACE_IN_MB AS REMAININGSPACE_IN_MB FROM DBC.DiskSpace WHERE DatabaseName = <<DatabaseName>> GROUP BY DatabaseName;

Viewing all articles
Browse latest Browse all 27759

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>