Skip to main content

Data selection wizard shows no table when connecting to SQL Server

No ratings
cancel
Showing results for 
Search instead for 
Did you mean: 
Sonja_Bauernfeind
Digital Support
Digital Support

Data selection wizard shows no table when connecting to SQL Server

Last Update:

Sep 14, 2020 10:44:28 AM

Updated By:

Sonja_Bauernfeind

Created date:

Apr 12, 2018 3:16:53 AM

When creating ODBC/ OLE DB connection from QlikView to SQL Server, data selection wizard in QlikView successfully fetches database and owner lists, but shows no table to select. This happens if the database (schema) name contains a dot (.) character, for example qlikview.1.1.

User-added image
 

Cause:


This type of issue happens not only to QlikView, but with any OLE DB/ OBDC connection to SQL server. For example, similar issue can be seen when using the same ODBC connection in Excel:

User-added image

Root cause is that the dot character breaks the interpretation of full table name (database.owner.tablename). This is therefore a native issue of SQL server and the ODBC driver rather than QlikView.

Refer to https://stackoverflow.com/questions/23110263/could-not-find-server-db-name-in-sys-servers-not-dbo-is... for more related discussions.

Environment: All QlikView versions 

 

Resolution:


A work-around solution is to quote the database name with square brackets [ ], for example

SQL SELECT * FROM [qlikview.1.1].dbo.sqlwb;

You will need to compose the SQL statement manually without assistance from the data selection wizard though.
 

Labels (1)
Contributors
Version history
Last update:
‎2020-09-14 10:44 AM
Updated by: