From my limited knowledge of SQL server, I understand there's no running total or moving sum function available in SQL server.
I have an impromptu report that includes a field that refers to previous row value. The report runs against a SQL server DB and the output is saved as an excel file which is then used as a source file for loading back into SQL server. I'd like to perform the entire operation in SQL server, so as to avoid any timing issues.
If the report is saved as SQL, no running total function is shown; when saved as an IQD, shows an XMOVING SUM function being used to determine a value from the previous row
If I attempt to cut and paste the SQL from the IQD into a SQL server transformation which uses the same System DSN ODBC connection as impromptu, I get an unspecific error message.
I assume that there must be some processing occuring in Cognos applications that is not replicated in SQL server; I've checked cogmod.ini for any likely parts.
Can anyone confirm this assumption or better, indicate how I can bring this functionality into SQL server? It's only a small table, so I imagine I ought to look at T-SQL to generate an intermediate table with previous row values included. TIA
I imagine this may also be a valid enquiry for forum 961 (SQL server), so apologise in advance to the non-SQL server users.
soi la, soi carre
I have an impromptu report that includes a field that refers to previous row value. The report runs against a SQL server DB and the output is saved as an excel file which is then used as a source file for loading back into SQL server. I'd like to perform the entire operation in SQL server, so as to avoid any timing issues.
If the report is saved as SQL, no running total function is shown; when saved as an IQD, shows an XMOVING SUM function being used to determine a value from the previous row
If I attempt to cut and paste the SQL from the IQD into a SQL server transformation which uses the same System DSN ODBC connection as impromptu, I get an unspecific error message.
I assume that there must be some processing occuring in Cognos applications that is not replicated in SQL server; I've checked cogmod.ini for any likely parts.
Can anyone confirm this assumption or better, indicate how I can bring this functionality into SQL server? It's only a small table, so I imagine I ought to look at T-SQL to generate an intermediate table with previous row values included. TIA
I imagine this may also be a valid enquiry for forum 961 (SQL server), so apologise in advance to the non-SQL server users.
soi la, soi carre