I created a data soure view that has tables from two data sources (both sql databases). when I try to generate a report model using this data source view, I get an "invalid object name" error for the first table it encounters that is not from the "primary" data source for the view. Is there something I need to do so the report model retrieves the connection strings for both data sources? Any help is greatly appreciated. Thank you in advance!

Did you ever figure this out? I'm having the same problem.|||Cross-database report models are not supported in Model Designer. You can get around this by creating a view on top of the second table. We should probably give you a more informative error (or add support for it

).|||Thank you for the reply.. I'm not sure I understand the workaround though. I am trying to do a proof of concept for my department and we have several data sources that I need to report from. Any help I can get is truly appreciated. I've been reading up on the different BI tools available with SQL server 2005 and it seems that maybe my best bet is to work on a data integration project... not sure which route to go. I do have a very good understanding of our database schema, its just a matter of how I can simplify it for end users to be able to write their own reports.|||I think I might have misread your original question. Are the two databases on the same server? If not, you will need to use the Linked Server feature of SQL to make this work. There are some performance implications with cross-server joins that may mean that you should pull the two sources into a single database using Integration Services,|||I actually have both cases

... But I can't even get the view to work for two databases on the same server

.. can you shed some light on that scenario?|||
Yudi,
If the databases are on one instance on one server, you can use the full name of the table to access the data in a named query. For instance,
SELECT col1, col2, col3 FROM table1
would be the first named query in the original database. In another named query you could use
SELECT col1, col2, col3 FROM DB1.dbo.table2
Provided you have the correct permissions on that database, you will be able to see the data in both databases. I use that technique and it works fairly well.
R
sql
No comments:
Post a Comment