ODBC Source from 2 Database

Post Reply
appleglaze28
Regular Participant
Posts: 269
Joined: Tue Apr 21, 2009 3:43 am
OLAP Product: Cognos TM1, Planning
Version: 9.1 SP3 9.4 MR1 FP1 9.5
Excel Version: 2003

ODBC Source from 2 Database

Post by appleglaze28 »

Is it possible to use databse table data for dimension creation or loading in TM1 TI when each table comes from 2 different databases but resides on 1 actual Database hardware. For example if I'm using MS SQL 2005 AdventureWorks & AdventureWorkDW sample database? If not...how do you accomodate such instances?

Code: Select all

SELECT 
AdventureWorks.HumanResources.Employee.EmployeeID,
AdventureWorksDW.dbo.DimEmployee.FirstName, 
AdventureWorksDW.dbo.DimEmployee.LastName,
AdventureWorks.HumanResources.Employee.Title,
AdventureWorks.HumanResources.Employee.MaritalStatus,
AdventureWorks.HumanResources.Employee.Gender,
AdventureWorksDW.dbo.DimEmployee.DepartmentName
FROM
AdventureWorksDW.dbo.DimEmployee,
AdventureWorks.humanresources.Employee
WHERE AdventureWorksDW.dbo.DimEmployee.EmployeeKey = AdventureWorks.humanresources.Employee.EmployeeID


robchr
Posts: 23
Joined: Wed Sep 30, 2009 1:41 pm
OLAP Product: TM1
Version: 9.4.1 FP03 32-bit
Excel Version: 2007

Re: ODBC Source from 2 Database

Post by robchr »

You should be able to, but you might consider making a view and using ODBC to query the view. ODBC is a little bit flaky, so best to uncomplicate the query from TM1 to SQL Server.

You can even query databases from separate servers.
User avatar
jim wood
Site Admin
Posts: 3958
Joined: Wed May 14, 2008 1:51 pm
OLAP Product: TM1
Version: PA 2.0.7
Excel Version: Office 365
Location: 37 East 18th Street New York
Contact:

Re: ODBC Source from 2 Database

Post by jim wood »

I agree, I'm not sure how TM1 would a where statement when using 2 different databases.
Struggling through the quagmire of life to reach the other side of who knows where.
Shop at Amazon
Jimbo PC Builds on YouTube
OS: Mac OS 11 PA Version: 2.0.7
appleglaze28
Regular Participant
Posts: 269
Joined: Tue Apr 21, 2009 3:43 am
OLAP Product: Cognos TM1, Planning
Version: 9.1 SP3 9.4 MR1 FP1 9.5
Excel Version: 2003

Re: ODBC Source from 2 Database

Post by appleglaze28 »

But for ODBC you need to create a ODBC Driver for each data source. So what's the best approach when you need to combine 2 data sources either for creating hierarchy dimension or cube loading.
Post Reply