COGNOiSe.com - The IBM Cognos Community

IBM Cognos 10 Platform => Cognos 10 BI => Framework Manager => Topic started by: babu babu on 01 Dec 2010 04:20:38 PM

Title: Multiple Dataconnections to report
Post by: babu babu on 01 Dec 2010 04:20:38 PM
Hi,
How can i connect the same report created from the same package to oracle and sqlserver (same table structure ) based on the user selection.
If the user selects oracle report  should connect to oracle sqlserver report should connect to sqlserver

Thanks!
Anand.
Title: Re: Multiple Dataconnections to report
Post by: MFGF on 02 Dec 2010 06:35:39 AM
Hi,

Define a single Data Source.  Add two connections to this - one pointing to Oracle, the other to SQL Server.  Add the relevant database signon to each connection.  Whenever this data source is used in a report, the author will be prompted to select which one to use.

MF.
Title: Re: Multiple Dataconnections to report
Post by: Arsenal on 02 Dec 2010 03:23:45 PM
If your user base is divided in 2 groups between who will use Oracle and who will use SQL Server, then you can ask your admin to set up 2 user groups and after doing what MFGF says, you can add the appropriate group to each of the database connections so the users will automatically be diverted to the correct database.
Common users between the two will still get prompted for the database to use, as well as any admins
Title: Re: Multiple Dataconnections to report
Post by: sir_jeroen on 29 Dec 2010 04:18:30 PM
Don't forget not to use Database specific functions, e.g. to_date(<field>;'<format>') (<= Oracle function)  otherwise your SQL Server users will get an error.