Focal Point
[CASE-OPENED] SQL code is not working in IWAY DM 8005

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/1381057331/m/8607097176

July 21, 2014, 08:53 AM
Madhumitha
[CASE-OPENED] SQL code is not working in IWAY DM 8005
The below SQL code is not working in IWAY DM 8005. The same code is working in SQL Management studio. Please help me how to execute the below code in DM

SQL SQLMSS SET SERVER DEFAULT_CONNECTION
SQL SQLMSS SET ERRORTYPE DBMS
SQL SQLMSS

DECLARE @StartDate DATE
, @EndDate DATE

SELECT @StartDate = MIN(BEGIN_DT), @EndDate = MAX(END_DT)
FROM DEPT_TABLE
WHERE BEGIN_DT >= '01/01/1970'

WHILE (@StartDate <= @EndDate)
BEGIN
INSERT INTO DEV.dbo.DATE_CTE_STG1(DEV.dbo.DATE_CTE_STG1.DateValue) VALUES (@StartDate);
SET @StartDate = DATEADD(d,1,@StartDate);
END

END


Please help me.

Thanks,
MAdhu

This message has been edited. Last edited by: Tamra,
July 25, 2014, 10:10 AM
Tamra
Hi Madhumitha,

This is a friendly follow-up. The Focal Point Support group has requested that a case be opened for your question.

Can you also be more specific when you say " the code is not working". Do you get an error message? Where is the code be run? Also if you can add the Report server version when you open the case.

The more details you provide will help with getting to quicker solution.

As always please post the resolution so that others can be helped in the future.

Tamra Colangelo
iWay Focal Point Moderator


WebFOCUS 8x - BI Portal, Developer Studio, App Studio, Excel, PDF, Active Formats and HTML5