Click here to monitor SSC
SQLServerCentral is supported by Redgate
Log in  ::  Register  ::  Not logged in
Home       Members    Calendar    Who's On

Add to briefcase

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


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

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



Group: General Forum Members
Last Login: Today @ 4:24 PM
Points: 39,671, Visits: 36,806
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

Favorite Quotes:
"Has anyone ever told you that a query you have written runs too fast?" - Dwain Camps - 6 Mar 2014

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



Group: General Forum Members
Last Login: Today @ 2:49 PM
Points: 10,711, Visits: 14,453
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
At best you can say that one job may be more secure than another, but total job security is an illusion. -- Rod at work

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


Group: General Forum Members
Last Login: Friday, October 30, 2015 12:18 PM
Points: 104, Visits: 10,090
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