Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us in Bucharest on Sept 18th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
guruprem
Partner - Creator III
Partner - Creator III

using select * giving wrong result

Hi,

One of my old query started throwing error very recently. When I investigated I found that SQL statement SELECT * FROM TABLE is not fetching all Fields from Table. Issue was corrected when I mentioned Field Names instead of *

I faced this issue on MSSQL 2008 DB. Has any one faced similar challenge? What could be best practise?

3 Replies
Not applicable

Can you share the error msg (Image), by this we can help you to identify which error exactly it is.

Miguel_Angel_Baeyens

Wrong result means it pulls no rows, only some rows, only some fields?

Easiest way to check is using the assistant in the script editor > Connect > then Select and see if the fields you see there are the same ones you see using MSSQL Studio.

marcus_sommer

Maybe there are more fields or fieldnames with special chars or something similar within your database-table as the driver could handle - the use of Select * is always a bit risky.

- Marcus