COGNOiSe.com - The IBM Cognos Community

Legacy Business Intelligence => COGNOS ReportNet => Framework Manager => Topic started by: hmills on 16 Feb 2007 10:48:34 AM

Title: Temp tables
Post by: hmills on 16 Feb 2007 10:48:34 AM
I'm using Reportnet 1.1 with Sybase 12.5 and trying to use temp tables, either by creating a QS in FM or in Tabular SQL in Report studio.  I know to use @ instead of #, but it still isn't working.  Any suggestions?

Should I be able to use syntax like the following?:

        create table @tblOutput
(       Description      varchar(255) not null,
           UserCode   varchar(30)   null,
           Number   int        not null,
           Imnt      varchar(40)   null,
           Network   varchar(20)   null,
           Action   varchar(10)   null,
           ErrorText   varchar(255) null)

Title: Re: Temp tables
Post by: MFGF on 16 Feb 2007 11:06:35 AM
Hi,

To the best of my knowledge, the Universal Data Access layer of ReportNet does not support DDL statements such as CREATE TABLE, DROP TABLE etc. (Also I don't believe it supports INSERT, DELETE or UPDATE DML statements either)

Regards,

MF.
Title: Re: Temp tables
Post by: sir_jeroen on 18 Feb 2007 10:48:12 AM
You could try it using a stored procedure...
Title: Re: Temp tables
Post by: MFGF on 19 Feb 2007 09:01:20 AM
Hi RA,

I guess that would work in Cognos 8 with a Data Modification stored procedure call invoked from Event Studio, but I don't think ReportNet supports modification SPs...

Best,

MF.
Title: Re: Temp tables
Post by: sir_jeroen on 20 Feb 2007 04:26:40 PM
Hi MF!!

If he would need it to create a temp table that's to be used by QS by other users it won't work because CRN usestransactions. So it might work in a user session.  (and not to forget:  how to deal with simultaneous sp calls... )
Title: Re: Temp tables
Post by: MFGF on 21 Feb 2007 02:57:16 AM
Yes indeed.

I will be in Amsterdam in April - and I still owe you that beer!  If you're going to be around, I'd be happy to pay my debt. :-)

Best regards,

MF.
Title: Re: Temp tables
Post by: sir_jeroen on 23 Feb 2007 03:58:47 AM
Ok.. that's settled then... See you in Amsterdam :D
btw Where do you want to go to? The red light district? Coffee shops? Do you want to go to the banana bar? ;)