Skip to content

Commit

Permalink
Changed the stored procedure call to work on case sensitive instances (
Browse files Browse the repository at this point in the history
  • Loading branch information
Peter-Schneider authored and kburtram committed Jun 30, 2018
1 parent 8cb67b4 commit 9baee1c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions samples/serverReports/src/sql/all_db_space_used.sql
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ declare @dbsize table
Free_Space_MB decimal(20,2) default (0))
insert into @dbsize
(Dbname,file_Size_MB,Space_Used_MB,Free_Space_MB)
exec sp_msforeachdb
exec sp_MSforeachdb
'use [?];
select DB_NAME() AS DbName,
sum(size)/128.0 AS File_Size_MB,
Expand All @@ -24,7 +24,7 @@ declare @logsize table
log_Free_Space_MB decimal(20,2)default (0))
insert into @logsize
(Dbname,Log_File_Size_MB,log_Space_Used_MB,log_Free_Space_MB)
exec sp_msforeachdb
exec sp_MSforeachdb
'use [?];
select DB_NAME() AS DbName,
sum(size)/128.0 AS Log_File_Size_MB,
Expand All @@ -38,7 +38,7 @@ declare @dbfreesize table
Freespace varchar(50)default (0.00))
insert into @dbfreesize
(name,database_size,Freespace)
exec sp_msforeachdb
exec sp_MSforeachdb
'use [?];SELECT database_name = db_name()
,database_size = ltrim(str((convert(DECIMAL(15, 2), dbsize) + convert(DECIMAL(15, 2), logsize)) * 8192 / 1048576, 15, 2) + ''MB'')
,''unallocated space'' = ltrim(str((
Expand Down

0 comments on commit 9baee1c

Please sign in to comment.