We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0efd78b commit 9d513c2Copy full SHA for 9d513c2
sqlserver-delta-plugins/src/main/java/io/cdap/delta/sqlserver/SqlServerTableRegistry.java
@@ -72,7 +72,7 @@ public TableList listTables() throws IOException {
72
try (Statement statement = connection.createStatement()) {
73
// we have to execute query here since the metadata will return sys tables back, and we cannot filter
74
// that, this query only works for SQL server 2005 or above
75
- String query = String.format("SELECT name FROM %s.sys.tables where is_ms_shipped = 0", config.getDatabase());
+ String query = String.format("SELECT name FROM [%s].sys.tables where is_ms_shipped = 0", config.getDatabase());
76
ResultSet resultSet = statement.executeQuery(query);
77
Set<String> tableNames = new HashSet<>();
78
while (resultSet.next()) {
0 commit comments