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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
PaulyWally
Contributor III
Contributor III

Database Connections & Inputs - Best Practices

I have a Job that needs to read 12 different tables from the same MSSQL database.

Is it better to use 1 tMSSqlConnection and set all 12 tMSSqlInput to "Use Existing Connection"?  Or is it better to keep the database parameters local to each tMSSqlInput?

Thank you in advance!

Labels (2)
1 Reply
vapukov
Master II
Master II

it depend from You Job logic
generally more easy define single connection and close it after finish Job
with single connection You are as well can enable auto commit or use manual/rollback commit when it needed
but at the same time - all Your tables must be in same database(schema)

without single connection:
You can manage commit windows (commit every XXX rows)
You can have separate Database(schema) for each Input component

From information point of view:
if You use context variables instead of hardcoded details - change any information will be same, in single place only