Jude Mukkadayil · Oct 29, 2019 go to post

Still its not working.

I think its because of looping. Since I am using the same field in the where condition , that may be the issue.

Any idea?

Jude Mukkadayil · Oct 29, 2019 go to post

Error: [C:\Program Files (x86)\Synametrics Technologies\WinSQL\Winsql.exe]
[SQLCODE: <-105>:<Field validation failed in UPDATE>]
[Location: <ServerLoop>]
[%msg: <Field 'SQLUser.RB_ResEffDateSessPayorRestr.RESTR_DateTo' (value '2039-01-07 00:00:00') failed validation>] (State:S1000, Native Code: 69)
 

Jude Mukkadayil · Oct 30, 2019 go to post

Many Thanks . It worked very well.

I used this one only

update RB_ResEffDateSessPayorRestr set RESTR_DATETo=to_date(DATEADD('year',1,RESTR_DATETo),'YYYY-MM-DD'where YEAR(RESTR_DATETo)=2020
Jude Mukkadayil · Dec 11, 2019 go to post

Hi Eduard,

 I am writing a routine to extract data from database and scheduled for a particular day. Recently I came across that the data is going beyond the csv limit.

Thanks

Jude

Jude Mukkadayil · Dec 12, 2019 go to post

Is there any way we can check a particular column data before writing to the file ? Based on the data I can write the data to a different files.

Jude Mukkadayil · Dec 15, 2019 go to post

Hi,

       I need to write to different csv files based on a column data. So I need to check the column data before writing to file.

Here is the code to write the data to file.

while (ind '= ""){
set row = ^CacheTemp(repid,"MAIN",ind)
use filemain write row,!
; Get next row index for MAIN report
set ind $order(^CacheTemp(repid,"MAIN",ind))
} close filemain
}

Thanks

Jude

Jude Mukkadayil · Dec 16, 2019 go to post

I am looking something similar like that but based on a particular table column data.

thanks

Jude Mukkadayil · Aug 13, 2020 go to post

Thanks to everyone.

It starts working after I tried this code.

 Set Address1  = $ZSTRIP(Address1,"*C",,)

Jude Mukkadayil · May 12, 2021 go to post

Yes. Since it’s a long query , I don’t have an option to include a sub query. 

Thanks

Jude Mukkadayil · Jul 14, 2023 go to post

Hi, Where we can check the amount of connection ? Is it something like a sql timeout ?

Is there any place to give access ?

Thanks for your help.

Jude Mukkadayil · Jul 22, 2023 go to post

Hi @Robert Cemper ,
They are running the queries in a serial mode , ie one after the other. They are using this to load data into SSIS database. But once they reach some of the tables , it will show this error.  This is running fine for 150 tables but the error is showing only for 10 tables.

Jude Mukkadayil · Jul 23, 2023 go to post

Please find the ODBC error below.

2023-07-24 02:05:48 [SQLCODE: <-400>:<Fatal error occurred>] [Error: <<READ>ServerLoop+18^%SYS.DBSRV>] [Location: <ServerLoop>] [Client info: <Username: , Node Name:  IP Address: , Executable Name: , Internal Function: DQ>] [%protocol: <57>] $Id: //adhocs-iris/2020.1.0.215.0/TRAKCARE_001/kernel/common/src/aclass.c#1 $ 24006 0

Jude Mukkadayil · Aug 10, 2023 go to post

Hi Ben, This is not working fully. I mean to say MM is displaying with 0 but DD is not displaying with 0.

For instance, it displays as 1082000 and it should be 01082000.

Thanks

Jude

Jude Mukkadayil · Aug 10, 2023 go to post

This is the way how I use to_char in sql statement

TO_CHAR(58105,'DDMMYYYY')

I am extracting the data to excel file and I can see the column is assigned as a General and not a number. does it make any difference ?

Thanks

Jude Mukkadayil · Nov 2, 2023 go to post

I tried to use the Save To command but I am getting an error as shown in the screen shot attached. Could you

please tell me how to solve this error.

 

Jude Mukkadayil · Nov 5, 2023 go to post

Hi ,  I set up the environment variables including the Java_ home and class path but still its showing the above error.

Thanks