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: 
Anonymous
Not applicable

Copy table from one server to another

Hi everyone,
Does anyone know what would be the easiest or "normal" way to copy a table from one server to another using Talend? I mean, which components would normally be best suited for this job?
I already have the table created in my target database, so I only need to transfer the data in the source table.
Thanks!
Cihan
Labels (2)
11 Replies
Anonymous
Not applicable
Author

0683p000009MAw7.png
Would, for example, a simple job like this do it?
When I run it, I get a "Exception in component tMSSqlOutput_1 java.sql.SQLException: Network error IOException: Connection refused: connect" error message, but I guess that's beside the point.
Anonymous
Not applicable
Author

Hi Cihan
- Create metadata for first server
- Create metadata for second server
- use following flow
tDBInput(server1)-->tDBOutput(server2)
Above is sample scenario...
Vaibhav
Anonymous
Not applicable
Author

Hi,
DB input-->DB Output is a "normal" way to copy a table from one server to another.
For your error, Network error IOException: Connection refused: connect" error message.Your DB connection paramater is not correct. please check it.
Best regards
Sabrina
Anonymous
Not applicable
Author

OK, regarding my own job: I have corrected the connection, and everything works, but no rows are actually inserted into the target table. It is simply blank.
Regarding Vaibhav's solution: I'll do it in a minute and let you know how it went.
Thanks!
Anonymous
Not applicable
Author

  Test if the target output component has set the option Die on error.
Anonymous
Not applicable
Author

The documentation here https://help.talend.com/search/all?query=tDBInput&content-lang=en says that I need to fill in the database name of the tDBInput component, whereas in my Talend the field is called "datasource".
What exactly is the difference between them? What am I supposed to put in that field?
Anonymous
Not applicable
Author

Hi cihanc83,
What's your DB? Not Mssql server?
Best regards
Sabrina
Anonymous
Not applicable
Author

Both the target and the source DBs are on an MS SQL server.
@jlolling: Die on error is not checked and still nothing gets inserted...

0683p000009MAmn.png
Anonymous
Not applicable
Author

Because you are "Using an existing connection" you have changed Talend's transaction mode from implicit to explicit, meaning you must now specify the commit on that connection using a tMSSQLCommit after your tMSSQLOutput. If you are not sharing existing connections, then each component will create and use its own connection and auto-commit when finished.