Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase

Developing a report from two different databases Expand / Collapse
Author
Message
Posted Sunday, January 24, 2010 10:47 AM
Grasshopper

GrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopper

Group: General Forum Members
Last Login: Sunday, January 24, 2010 12:47 PM
Points: 10, Visits: 71
Hi,

how can we develop a report to pull the data from different database.
I need to develop a report which contains some fields from one database(sql server 2000) and some from other database(sql server 2005).
Also, how to connect my report server to the database(sql server 2000).
By default my report server connects to database(sql server 2005).Do i need to change the datasource name or connectivity?If yes, how to do this?

Please help me on this.....

Thanks in Advance.
Post #852751
Posted Sunday, January 24, 2010 5:31 PM


SSC-Dedicated

SSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-Dedicated

Group: General Forum Members
Last Login: 2 days ago @ 9:58 AM
Points: 36,995, Visits: 31,517
You're not only changing databases, but instances, as well. I don't know much about SSIS but I'd imagine you'd have to resort to the 4 part naming convention for the connection to the SQL Server 2000 database.

--Jeff Moden
"RBAR is pronounced "ree-bar" and is a "Modenism" for "Row-By-Agonizing-Row".

First step towards the paradigm shift of writing Set Based code:
Stop thinking about what you want to do to a row... think, instead, of what you want to do to a column."

(play on words) "Just because you CAN do something in T-SQL, doesn't mean you SHOULDN'T." --22 Aug 2013

Helpful Links:
How to post code problems
How to post performance problems
Post #852798
Posted Monday, January 25, 2010 8:17 AM


SSChampion

SSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampion

Group: General Forum Members
Last Login: Saturday, August 30, 2014 4:51 PM
Points: 11,264, Visits: 13,023
This is a classic "It Depends" situation. Does the report need to merge data from the 2 data sources or is each data source a different section on the report?



Jack Corbett

Applications Developer

Don't let the good be the enemy of the best. -- Paul Fleming

Check out these links on how to get faster and more accurate answers:
Forum Etiquette: How to post data/code on a forum to get the best help
Need an Answer? Actually, No ... You Need a Question
How to Post Performance Problems
Crosstabs and Pivots or How to turn rows into columns Part 1
Crosstabs and Pivots or How to turn rows into columns Part 2
Post #853030
Posted Tuesday, March 30, 2010 9:38 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Monday, April 4, 2011 1:50 PM
Points: 1, Visits: 12
What are you using to develop the report?

I've developed many reports from different databases (i.e. MS Access & SQL Server) using Crystal Reports. Crystal Reports will recognize different databases and let you create a report from the combined databases.

You can probably do the same with SQL Server Reporting Services (SSRS) in SQL Server 2005 where you can point to an instance of a SQL Server 2000 database but I haven't used it yet to test it.
Post #892955
Posted Tuesday, March 30, 2010 12:27 PM
SSC-Enthusiastic

SSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-Enthusiastic

Group: General Forum Members
Last Login: Tuesday, August 5, 2014 11:38 AM
Points: 100, Visits: 10,079
You can also write stored procedure to combine data from both DBs (using openrowset for example)
Post #893168
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse