diff --git a/database/mssql/mode/databasessize.pm b/database/mssql/mode/databasessize.pm index 19b03463a..2d5ca5e4c 100644 --- a/database/mssql/mode/databasessize.pm +++ b/database/mssql/mode/databasessize.pm @@ -260,7 +260,7 @@ sub manage_selection { } $options{sql}->query(query => qq{ - EXEC sp_MSforeachdb 'USE ? + EXEC sp_MSforeachdb 'USE [?] SELECT DB_NAME(), [name],