You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 29, 2025. It is now read-only.
Repository navigation
This repository was archived by the owner on Aug 29, 2025. It is now read-only.
Using the Falcon SQL Client v2.8.0 under Windows 7 and connecting to a Microsoft SQL Server where multiple databases reside, I get the wrong table overview for the database. The tables shown and the corresponding columns in the dropdown correspond to other databases present on the server. Queries on the 'correct' database, the one I actually connected to, work.
Oh! it looks like when we get the tables schemas we don't filter by database name.
Currently, we are using this query to build the overview:
SELECTT.nameAS Table_Name, C.nameAS Column_Name, P.nameAS Data_Type
FROMsys.objectsAS T
JOINsys.columnsAS C ONT.object_id=C.object_idJOINsys.typesAS P ONC.system_type_id=P.system_type_idWHERET.type_desc='USER_TABLE';
After some experimentation, this query works for me:
SELECT table_name, column_name, data_type
FROMinformation_schema.columnsWHERE table_catalog ='${database}'ORDER BY table_name
@pabucur please, could you check whether the above query works for you? You need to replace ${database} by your database name.
Activity
[-]Database table overview wrong[/-][+]MSSQL: Database table overview wrong[/+]n-riesco commentedon Jun 22, 2018
Please, could you check what errors are reported in the log file
%USERPROFILE%\.plotly\connector\log.log?In particular, I'm interested in errors with the responses to
sql-tablesandsql-schemas.n-riesco commentedon Jun 22, 2018
Oh! it looks like when we get the tables schemas we don't filter by database name.
Currently, we are using this query to build the overview:
After some experimentation, this query works for me:
@pabucur please, could you check whether the above query works for you? You need to replace
${database}by your database name.mssql: get schemas for current database only
mssql: quote database, schema and table names
Merge pull request #464