SQL script to read data from one database and write to a table in another db

More
3 years 11 months ago #21986 by ashokv
Could any tell me how we write SQL scripts so that we can read data from one database and write to a table in another database, since SQL scripts only allow one database connection. This can be achieved using transformations, but how can we do it in SQL script?

Please Log in or Create an account to join the conversation.

More
3 years 11 months ago #21987 by admin
What is your database type?

Mike
ETL Architect

Please Log in or Create an account to join the conversation.

More
3 years 11 months ago #21988 by ashokv
I want to read data from sql server table and write to db2 table using a sql script.

Please Log in or Create an account to join the conversation.

More
3 years 11 months ago #21989 by admin
In this case, the best option would be to use a linked server
www.sqlshack.com/how-to-create-and-confi...r-management-studio/

Please note that your question is irrelevant to our ETL software

Mike
ETL Architect

Please Log in or Create an account to join the conversation.

Cookies user preferences
We use cookies to ensure you to get the best experience on our website. If you decline the use of cookies, this website may not function as expected.
Accept all
Decline all
Read more
Marketing
Set of techniques which have for object the commercial strategy and in particular the market study.
Google
Accept
Decline
Analytics
Tools used to analyze the data to measure the effectiveness of a website and to understand how it works.
Google Analytics
Accept
Decline
Google Analytics
Accept
Decline
Functional
Tools used to give you more features when navigating on the website, this can include social sharing.
Advertisement
If you accept, the ads on the page will be adapted to your preferences.
Google Ad
Accept
Decline
Save