Tel:  +44 (0)1792 224 330
e-Mail: info@planitcpm.com

IBM Cognos Technical Blog

April 9, 2010

It is not always the products fault.

Filed under: Uncategorized — Blog Admin @ 1:17 pm

An important lesson was learned earlier this week, really its something I already knew, but it was useful to get a reminder of this.  It was also useful to remind the customer of the same.

We got a call requesting help with an issue where Cognos Planning Analyst appeared to be behaving differently between the old server environment (IBM Cognos 8.4 RTM) and the new server environment (IBM Cognos 8.4 FP2) when running a d-link within Analyst.

Now I already know that Analyst is not the most technical of products, so to hear of such strange problems (i.e. the d-link not recognising the source of an ODBC connection) is quite unusual and can be quite frustrating to deal with.  As is usual in such cases our client was convinced that the problem was within Analyst and attempts to convince him that the cause was unlikely to be with Analyst were seemingly difficult to push.

After a little playing around looking at the source CSV files and comparing them with those from the old system we decided that on the face of it, the systems were identical.
It appeared that the problem may have been to do with the actions the SQL code in the d-link source was trying to process.  It was manipulating the data prior to inserting it into Analyst.

The first thing I tried was to remove the customised SQL code and use a straight forward select statement.  This worked straight away.  So the file was able to be read.  Though what I then found was that the data brought back was not in the expected format.

Another look at the ODBC connection and a click of the “options” button exposed some additional settings where you can set the delimiter type, header cells and other formatting options for the text file.  Once these had been set we went back to Analyst and opened the d-link to find that it magically worked now.

So this is an example of a problem that appeared to be the fault of the product which in fact ended up to be caused by incorrect settings on the ODBC connection.  One worth remembering I think.

April 1, 2010

SQL Server 2008 Native Client and IBM Cognos Contributor

Filed under: Uncategorized — Blog Admin @ 1:18 pm

An old problem reared its head again today, taking me back to the days not too long after SQL Server 2005 was released and the advice from Cognos was to use the new fangled SQL Server Native Client (SQLNCLI) for best performance within Contributor for both the connections within the Contributor Administration Console as well as the Contributor Website.

The problem was that you were unable to create Publish Containers using the SQL Server Native Client, it failed miserably.  Instead your publish containers had to use the old SQLOLEDB provider.

It took me a little while to work out why SQLNCLI wasn’t able to connect at all with my new IBM Cognos 8.4 FP2 on SQL Server 2008, what I finally discovered was that the provider name has changed to SQLNCLI10.  Ok, so following the old SQL Server 2005 with Planning logic I opted to change my datastore connections to use SQLNCLI10.

Success!  The application created fine, the jobs all tested out fine except…. yep, thats right, the publish container won’t create again.  Now I don’t know why this is, or what changes in each release of the SQL Native Client, but once again we can’t create a publish container.  So once again we are forced to use SQLOLEDB for the Publish Containers and SQLNCLI10 – unless we should in fact avoid this altogether, for the application connections.