diff --git a/src/Platforms/SqlServerPlatform.php b/src/Platforms/SqlServerPlatform.php index f48318c..d9af697 100644 --- a/src/Platforms/SqlServerPlatform.php +++ b/src/Platforms/SqlServerPlatform.php @@ -45,7 +45,7 @@ public function getTables(?string $schema = null): array { $result = $this->connection->query(/** @lang GenericSQL */ " SELECT TABLE_NAME, TABLE_TYPE, TABLE_SCHEMA - FROM information_schema.tables + FROM [INFORMATION_SCHEMA].[TABLES] WHERE TABLE_SCHEMA = COALESCE(%?s, SCHEMA_NAME()) ORDER BY TABLE_NAME ", $schema);