I'm new to the forum so I hope this is the right place to ask this question.
I have a production and an archive database. I want to create a way to pull a combined report with data from both databases.
The databases are identical and on the same SQL instance.
I'm looking for the best solution to fit my needs.
Can I create a view that will pull from views already created in both databases?
Would SSAS or SSIS be more helpful in this?
Ultimately I need to be able to run a report that pulls information from both databases into a single report where it looks like it comes from one data source.
if they are on the same server, you can just use three part naming conventions.
if they are on separate servers, you can add a linked server, and use full four part names.
FROM PRODUCTION.dbo.MyTable T1
INNER JOIN Archive.dbo.OtherTable T2
On T1.Keys = T2.Keys
help us help you! If you post a question, make sure you include a CREATE TABLE... statement and INSERT INTO... statement into that table to give the volunteers here representative data. with your description of the problem, we can provide a tested, verifiable solution to your question! asking the question the right way gets you a tested answer the fastest way possible!