COGNOiSe.com - The IBM Cognos Community

IBM Cognos 8 Platform => COGNOS 8 => Framework Manager => Topic started by: wyconian on 23 Aug 2010 08:45:30 AM

Title: Change Data sources in queries
Post by: wyconian on 23 Aug 2010 08:45:30 AM
Hey everyone

I have a model in dev that is currently pointing to connection A, I need to repoint all the import layer queries to connection B but I can't chaneg connection A in the portal because there are other models using it.

I've added connection B in the portal and as a data source in my model.  Querstion is; does anyone know of a quick way of updating all the import layer query subjects to point to the new data source?

I could manually go through the queries and change them but there are more than 2k queries?

As always any help appreciated

Simon
Title: Re: Change Data sources in queries
Post by: eliza_jane on 24 Aug 2010 01:42:49 AM
Back up your cpf file and open it up in notepad and do a find and replace on your data source.
Title: Re: Change Data sources in queries
Post by: IceTea on 24 Aug 2010 02:17:33 AM
Maybe you open the Model file in an text editor and do a "search&replace"?
Title: Re: Change Data sources in queries
Post by: wyconian on 24 Aug 2010 02:57:13 AM
Both - thanks for your help that was a whole lot easier than I thought it was going to be  :)