If you are unable to create a new account, please email support@bspsoftware.com

 

SQL Server data source with multiple connections keeps using same database

Started by Invisi, 06 Jan 2017 04:03:45 AM

Previous topic - Next topic

Invisi

My client runs Cognos 10 with SQL Server 2008. Since we are migrating to another database for the data warehouse query layer, I make an extra connection in the test environment to the new database. When I create a test report, run it and choose the newly made connection, the (simple) report is slow, so I check the SQL. It turns out it generates a query that still explicitely refers to the database of the other connection. What am I doing wrong?
Few can be done on Cognos | RTFM for those who ask basic questions...

MFGF

Quote from: Invisi on 06 Jan 2017 04:03:45 AM
My client runs Cognos 10 with SQL Server 2008. Since we are migrating to another database for the data warehouse query layer, I make an extra connection in the test environment to the new database. When I create a test report, run it and choose the newly made connection, the (simple) report is slow, so I check the SQL. It turns out it generates a query that still explicitely refers to the database of the other connection. What am I doing wrong?

If you look at the data source definition in the underlying Framework Manager model, do you have the original database defined in either the Catalog or Schema properties?

MF.
Meep!

Invisi

In the framework, I go to the Data Source and I see the database name in the attribute 'Catalog'... Is this the source of all evil?  :'(
Few can be done on Cognos | RTFM for those who ask basic questions...

Invisi

Few can be done on Cognos | RTFM for those who ask basic questions...

MFGF

Quote from: Invisi on 06 Jan 2017 05:13:19 AM
In the framework, I go to the Data Source and I see the database name in the attribute 'Catalog'... Is this the source of all evil?  :'(

Actually I think the root of all evil is the love of money, but I digress :)

Try removing the Catalog entry and re-publishing your package (or a new package to test). Does that fix things?

MF.
Meep!

Invisi

Are you mocking my new love?  >:(

I will try and see what happens. Also if it doesn't mess up the reports... Probably not.
Few can be done on Cognos | RTFM for those who ask basic questions...

Invisi

It works beautifully! Now the test report rushes over my gorgeously designed fresh version of the datawarehouse with ease. Thanks!
Few can be done on Cognos | RTFM for those who ask basic questions...

MFGF

Quote from: Invisi on 06 Jan 2017 06:26:50 AM
Are you mocking my new love?  >:(

Would I do such a thing? ;)

Quote from: Invisi on 06 Jan 2017 06:26:50 AM
I will try and see what happens. Also if it doesn't mess up the reports... Probably not.

Be brave! Be confident! Cross your fingers in secret and go for it! :)

Quote from: Invisi on 06 Jan 2017 06:37:36 AM
It works beautifully! Now the test report rushes over my gorgeously designed fresh version of the datawarehouse with ease. Thanks!

Yay! A satisfying end to the week, I hope!

MF.
Meep!

Invisi

Very satisfying... Until I come to work this morning to see that our weekly schedule on this environment failed... Reason:  The connection is ambiguous.

How do I tell a schedule which connection to use? I fail to see it in the settings so far. Is this something to set in the settings of the schedule, or of the report itself?
Few can be done on Cognos | RTFM for those who ask basic questions...

Invisi

Few can be done on Cognos | RTFM for those who ask basic questions...

Invisi

Few can be done on Cognos | RTFM for those who ask basic questions...