From 9d796b20df5d02a10d00103a6e2ed94f6fe2bd8b Mon Sep 17 00:00:00 2001 From: deecay Date: Mon, 13 Feb 2017 14:10:48 +0900 Subject: [PATCH] Fix for #1571 --- redash/query_runner/mssql.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/redash/query_runner/mssql.py b/redash/query_runner/mssql.py index e814d914..11dcd00b 100644 --- a/redash/query_runner/mssql.py +++ b/redash/query_runner/mssql.py @@ -94,7 +94,7 @@ class SqlServer(BaseSQLQueryRunner): def _get_tables(self, schema): query = """ SELECT table_schema, table_name, column_name - FROM information_schema.columns + FROM INFORMATION_SCHEMA.COLUMNS WHERE table_schema NOT IN ('guest','INFORMATION_SCHEMA','sys','db_owner','db_accessadmin' ,'db_securityadmin','db_ddladmin','db_backupoperator','db_datareader' ,'db_datawriter','db_denydatareader','db_denydatawriter'