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

Announcements
Write Table now available in Qlik Cloud Analytics: Read Blog
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

SQL statement working in Query builder but not in component view - table not found

Hello community,

i created a job to query data from a sybase DB. I added a connection in the meta data section which I the use in tDBConnection. To query data i use tDBrow wich i configured with the mentioned tDBConnection.

0683p000009M8Zp.jpg

 

When i add my query in query builder and execute it, I get a adaquate result set also shown in the section of the query builder.

When I then use that configured query for my tDBrow component and start the job i get the following error:

[SAP][JDBC Driver][SQL Anywhere]table 'cc_statistik' not found

I am using jconn4.jar & sajdbc4.jar in my config.

 

0683p000009M8Zu.jpg

 

What am I doing wrong? Why does the query work in the query builder but not in the component view?

 

Thanks in advance & best regards,

AK

Labels (2)
4 Replies
Anonymous
Not applicable
Author

Hi
If the table already exists in database, retrieve the table schema under DB metadata, then drag and drop the table schema from Repository to a job, select tDBInput(Sybase) to query data from a Sybase DB. It will fill in the right syntax in the Query.

0683p000009M8aJ.png

Regards
Shong

Anonymous
Not applicable
Author

Hello Shong,

 

I did have the chance to try your proposal because I changed the DB-driver type to JDBC. That did the trick for me.

May be I check your way later.

 

Thanks for helping out!

AK

hosman
Contributor
Contributor

Hi Arko,

 

how were you able to change the Db driver to jdbc?

 

I suspect that I'm facing the same problem.

 

Thanks for your reply in advance!

 

Best Regards!

Anonymous
Not applicable
Author

Hi,

 

I created a connection in the meta data section and used context mode. In the context I am delegation to the specific drivers:

0683p000009MaO2.png

 

Hope that helps?