I have a situation to insert records from table of one database to a
table of another database. Previously I did it using the following code
in the script.
What are the alternatives? I mean we know the port for the database
was closed, but is there a live application on that server that access
that database? can you install a new application there? can you run a
rake task there?
I would use that application to create the new records. If you can
modify the application that will receive the data, you can add some
service to receive a batch of records so you don't have to add them
one by one wich will be noticeably slower.