I have run into a bit of a strange issue regarding a SQL server project. We have a process that is in the in the middle of a database migration. One database is now on one server, the other is still on the old server. Originally, we had the two databases linked while on the same server as to make the union of the data we needed possible for the jdbc driver to commit in one query.
With this new setup, there are security concerns preventing us from connecting the databases between servers. With my options somewhat limited, my next thought was to get a dataset from one database on one server, turnaround, and insert that dataset as a temp table into the other server so we can union the data as we were originally doing.
This is not inherently easy to do. I wanted to throw a line out and see if anyone has attempted something like this they would be willing to share. I dug through Exchange but couldn't find anything like it. Thanks for any help.