COGNOiSe.com - The IBM Cognos Community

IBM Cognos 10 Platform => Cognos 10 BI => Cognos Administration => Topic started by: kc9400 on 30 Sep 2014 09:22:40 AM

Title: View all data source connection details
Post by: kc9400 on 30 Sep 2014 09:22:40 AM
Hi,

I've accessed the Cognos admin page and navigated to the Configuration > Data Source Connections

Is there a way I can see the detailed information for each connection without having to go into each one.

Is there an XML file somewhere which has them all listed?

Any help with this would be great.

Cheers.

Title: Re: View all data source connection details
Post by: mrcool on 01 Oct 2014 07:29:28 PM
You can query content store to get the details of all your datasources.
Title: Re: View all data source connection details
Post by: kc9400 on 06 Oct 2014 09:11:57 AM
Thanks, I'll take a look into it.
Title: Re: View all data source connection details
Post by: CognosAnalytics on 24 Oct 2014 05:54:31 PM
Hello kc9400,
This will list all the data sources, the connections within each and their respective connection strings.
This works for Cognos 10.1.1 and 10.2.1.

select Datasources.Name as "Data Source Name", objnm.NAME as "Connection Name", dconns.CONNECTSTR FROM CMOBJPROPS52 dconns
inner join CMOBJNAMES objnm on
dconns.CMID=objnm.CMID
inner join
(
select dconns.CMID, cmobj.CLASSID, cmobj.PCMID, objnm.NAME from
CMOBJPROPS52 dconns inner join CMOBJECTS cmobj
on dconns.CMID=cmobj.CMID and cmobj.CLASSID=9
inner join CMOBJNAMES objnm
on cmobj.PCMID=objnm.CMID) DataSources
on Datasources.CMID=dconns.CMID


-Cognos810
Title: Re: View all data source connection details
Post by: kc9400 on 03 Nov 2014 10:21:57 AM
Cheers Cognos810, that worked perfectly.

Much appreciated.