Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

OLEDB read failed SQL SELECT * FROM EMP

Hi All,

When I use the below code, getting the error:

EMP:

LOAD*,text(EMPNO) as EMP_NBR_Char,text(MGR) as MGR_NBR_Char,

SQL SELECT * FROM EMP;

OLEDB read failed

SQL SELECT * FROM EMP

But when I rename the ailas names, working fine.

EMP:

LOAD*,text(EMPNO) as EMP_NBR_Char1,text(MGR) as MGR_NBR_Char1,

SQL SELECT * FROM EMP;

Why?

Any idea? Thanks in advance.

1 Solution

Accepted Solutions
arulsettu
Master III
Master III

HI

try like this

EMP:

LOAD*,text(EMPNO) as EMP_NBR_Char1,text(MGR) as MGR_NBR_Char1;

SQL SELECT * FROM EMP;

View solution in original post

3 Replies
arulsettu
Master III
Master III

HI

try like this

EMP:

LOAD*,text(EMPNO) as EMP_NBR_Char1,text(MGR) as MGR_NBR_Char1;

SQL SELECT * FROM EMP;

SunilChauhan
Champion
Champion

indication of end of load should be ; inplace of '.

see below code

EMP:

LOAD*,text(EMPNO) as EMP_NBR_Char,text(MGR) as MGR_NBR_Char;

SQL SELECT * FROM EMP;

if you have same field name twice the this erro will occur and when you rename then it will execute.

so make sure EMP_NBR_Char and MGR_NBR_Char not exist in  SQL SELECT * FROM EMP;

hope this helps

Sunil Chauhan
Not applicable
Author

arulsettu,Actually I tried that method only.