Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
phil-ebm
Creator
Creator

Check if Table available in Database

Hello

I spent a lot of Time in searching a solution for the topic but I can't find the right one.

My Problem is that I have a Load-Script for loading tables from several different Databases. Most of the tables are available in all of this Systems. They are decentral production servers. But some tables are not available in all Databases.

My question is:

Is there an option how i can check that the table exists in the database or not? And just when the table exist I start the Data-Load with a sql.

Regards

Philipp

3 Replies
adamdavi3s
Master
Master

Hi Philipp,

Is this a SQL server?

If so then you can do your ODBC / OLEDB connect then run a:

select name

from sys.tables

where name = 'table to check'

phil-ebm
Creator
Creator
Author

Hi Adam

thanks for your reply.

Yes it's an Oracle SQL Server.

I will try it.

PrashantSangle

Hi,

try with below sql query

SELECT TABLE_NAME

FROM INFORMATION_SCHEMA.TABLES

WHERE TABLE_TYPE = 'BASE TABLE'

Regards,

Prashant

Great dreamer's dreams never fulfilled, they are always transcended.
Please appreciate our Qlik community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved 🙂