informix

How to install informix on node.js?

自作多情 提交于 2019-12-12 01:47:51
问题 I try to install informix on node.js via follow from "https://npmjs.org/package/nodejs-db-informix", but it's not success. I don't understand about Pre-req (Setup and configure Informix). I try to install informix on node.js in windows 7. How to solve this problem? Thank you for help Lohkaeo 回答1: you have to install informix first (I think that's not done yet). See e.g. http://www.informix-zone.com/getting-started-informix-windows-installing-and-getting-and-running-no-time if you really want

bcp Utility write to remote server?

北慕城南 提交于 2019-12-11 23:53:16
问题 According to some recommendations i use bcp Utility to write SQL server Table to .cvs file so i could later transfer the data to informix table with the same structure . My SQLServer Stored Procedure : ALTER PROCEDURE [dbo].[TestCVS] AS BEGIN declare @sql nvarchar(4000) select @sql = 'bcp "select * from ML..gmp4vacationbalance" queryout c:\ss\Tom.cvs -c -t, -T -S' + @@servername exec master..xp_cmdshell @sql END I have four questions concerning this procedure : 1- How to allow this procedure

Positioning a 4GL window in center

Deadly 提交于 2019-12-11 20:19:27
问题 I'm having multiple windows throughout my 4gl program where I have to position to the center of the screen. For example: OPEN WINDOW w_yesno AT 10, 10 WITH 4 ROWS, 56 COLUMNS ATTRIBUTE (BORDER, MESSAGE LINE FIRST+1, PROMPT LINE FIRST+2) Is there any keyword I can use to automatically open it in the center? Something like: OPEN WINDOW w_yesno AT CENTER 回答1: No, there isn't a keyword solution to centring windows. You can use variables for the positions and do the calculation, or you can do the

FINANCIAL YEAR CLOSE

人盡茶涼 提交于 2019-12-11 17:53:12
问题 I have a SQL query which was initially this- DELETE FROM table_1 WHERE column_1 IN ( SELECT column_1 FROM table_2 WHERE column_3 < CURRENT - INTERVAL(N) MONTH TO MONTH) Now my advisory has told to use Financial Close Year instead of CURRENT like: DELETE FROM table_1 WHERE column_1 IN ( SELECT column_1 FROM table_2 WHERE column_3 < FINANCIAL YEAR CLOSE - INTERVAL(N) MONTH TO MONTH) FINANCIAL YEAR CLOSE being March End. I have no idea as to how I should incorporate the changes. 回答1: Since

Informix connection works through Windows, but not through Cygwin

余生颓废 提交于 2019-12-11 13:41:41
问题 Not really sure where to go with this one. I have a PHP script that invokes a PERL script that connects to an Informix database. This setup works just fine when I run the script to the Windows cmd prompt, but when I attempt to run it through cron in cygwin it fails on [Informix][Informix ODBC Driver]Unable to load translation shared library (DLL). (SQL-IM009) I have tried adding the Informix bin directory (/cygdrive/c/Program\ Files\ (x86)/IBM/Informix/Client-SDK/bin) to the PATH variable in

Read data from Informix Database. Having folder app.dbs with *.IDX, *.Dat files

我的未来我决定 提交于 2019-12-11 13:00:45
问题 I have a friend who has a management application, and he would like to import some of his data in Excel. The thing is I have no idea about how to read this type of files, In his application directory he has a folder named app.dbs. Inside there are *.idx and *.dat files. What would be the easiest way to read this files? Maybe ODBC connector, or installing some version of Informix DB?? 回答1: That sounds like C-ISAM files, or an Informix-SE (Standard Engine) install. You most certainly can't read

How to return the last primary key inserted

徘徊边缘 提交于 2019-12-11 12:25:55
问题 I ask about alternative or similar query in informix to perform the following: INSERT INTO days (depcode,studycode,batchnum) values (1,2,3);SELECT SCOPE_IDENTITY(); I want a query to return the SCOPE_IDENTITY() during insertion statement 回答1: I know that in t-sql you have the OUTPUT statement? Where [KEY] is the column name of your primary key and @OUT_KEY is a variable you need to declare INSERT INTO days ( depcode, studycode, batchnum ) OUTPUT INSERTED.[KEY] INTO @OUT_KEY VALUES ( 1,2,3 )

SQL Statement Performance Issue on Informix

主宰稳场 提交于 2019-12-11 11:59:38
问题 I have this Informix SQL statement which takes ages to run. Does anybody see any way to optimize it so it wouldn't take so long? SELECT * FROM OriginalTable WHERE type = 'S' AND flag <> 'S' INTO TEMP TempTableA; SELECT * FROM OriginalTable WHERE type = 'Z' AND flag <> 'S' INTO TEMP TempTableB; UPDATE OriginalTable SET flag = 'D' WHERE Serialnumber in ( select Serialnumber from TempTableA WHERE NOT EXISTS(SELECT * FROM TempTableB WHERE TempTableB.Col1 = TempTableA.Col1 AND TempTableB.Col2 =

How to EVAL a SELECT String and EXECUTE

China☆狼群 提交于 2019-12-11 11:57:33
问题 I wrote a function, StoogeFunk , that uses FOREACH against systables and syscolumns , to concatenate in a string the list of fields in a table (the name of which is passed as a function parameter). I surround with CAST/VARCHAR(30) the date fields, for reasons I dare not explain. So, I come to a point where I have in a string, SelectString , the equivalent of: SELECT Name, CAST(DOB AS VARCHAR(30)) AS DOB, ShoeSize FROM Stooges My function simply returns that LVARCHAR string (and it is a long

How can I push data from Informix to .NET server in real time?

回眸只為那壹抹淺笑 提交于 2019-12-11 09:44:57
问题 I need to push data from Informix to my .NET server in real time, just like we can do it automatically as soon as there is a change in the database with SignalR and MS SQL Server. Can this be done? Informix doesn't seem to have inbuilt functionality that would allow .NET server to know whenever there is a new record in the database. I have not been able to find a solution to this even after hours and hours of searching with Google. 回答1: Since Informix 11.70, Informix has supported a Change