Focal Point Banner


As of December 1, 2020, Focal Point is retired and repurposed as a reference repository. We value the wealth of knowledge that's been shared here over the years. You'll continue to have access to this treasure trove of knowledge, for search purposes only.

Join the TIBCO Community
TIBCO Community is a collaborative space for users to share knowledge and support one another in making the best use of TIBCO products and services. There are several TIBCO WebFOCUS resources in the community.

  • From the Home page, select Predict: WebFOCUS to view articles, questions, and trending articles.
  • Select Products from the top navigation bar, scroll, and then select the TIBCO WebFOCUS product page to view product overview, articles, and discussions.
  • Request access to the private WebFOCUS User Group (login required) to network with fellow members.

Former myibi community members should have received an email on 8/3/22 to activate their user accounts to join the community. Check your Spam folder for the email. Please get in touch with us at community@tibco.com for further assistance. Reference the community FAQ to learn more about the community.


Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [SOLVED] Too many messages whith SQL passthru

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED] Too many messages whith SQL passthru
 Login/Join
 
Virtuoso
posted
Hi community,

I'm trying to avoid that error that only occurs when I'm using WF8105 (I don't have it under WF7705M) when using a SQL passthru:

Task error: IBFSException 6000: Too many messages


I disabled the ECHO and SQLTRACE but nothing change, always got the error. Seems that I'm still missing something.

Sample code:
-SET &ECHO = OFF;
SET TRACEOFF  = ALL

ENGINE SQLMSS SET DEFAULT_CONNECTION MYCON
SQL SQLMSS
INSERT INTO [dbo].[MYTABLE]
           ([FLD1],[FLD2])
     VALUES ('VAL1', 'VAL2');
SQL COMMIT;
END
-RUN


I'm trying to remove this message which is the cause of the above error and repeated at each insert (because I have a loop for the INSERT):
 (FOC1364) ROWS AFFECTED BY PASSTHRU COMMAND : 1/INSERT

Any help will be greatly appraciated

This message has been edited. Last edited by: MartinY,


WF versions : Prod 8.2.04M gen 33, Dev 8.2.04M gen 33, OS : Windows, DB : MSSQL, Outputs : HTML, Excel, PDF
In Focus since 2007
 
Posts: 2409 | Location: Montreal Area, Qc, CA | Registered: September 25, 2013Report This Post
Virtuoso
posted Hide Post
Can't you combine those INSERT's into single PASSTHRU statement? Seems a bit of a waste of resources to INSERT line-by-line...

INSERT INTO [dbo].[MYTABLE]
           ([FLD1],[FLD2])
     VALUES ('VAL1', 'VAL2'),
           ('VAL3', 'VAL4'),
           ('VAL5', 'VAL6');


That would reduce the number of ROWS AFFECTED lines and improve performance at the same time.
That is, if MS SQL can do it this way.


WebFOCUS 8.1.03, Windows 7-64/2008-64, IBM DB2/400, Oracle 11g & RDB, MS SQL-Server 2005, SAP, PostgreSQL 11, Output: HTML, PDF, Excel 2010
: Member of User Group Benelux :
 
Posts: 1669 | Location: Enschede, Netherlands | Registered: August 12, 2010Report This Post
Virtuoso
posted Hide Post
If the message you are referring to is the rows affected, then use:

SET EMGSRV=OFF/ON


"There is no limit to what you can achieve ... if you don’t care who gets the credit." Roger Abbott
 
Posts: 1102 | Location: Toronto, Ontario | Registered: May 26, 2004Report This Post
Virtuoso
posted Hide Post
Wep5622 : unfurtunately I can't because I need to read the row's data (and then format...) from somewhere else to then insert it in table.

dhagen : it is working with your solution, thanks.


WF versions : Prod 8.2.04M gen 33, Dev 8.2.04M gen 33, OS : Windows, DB : MSSQL, Outputs : HTML, Excel, PDF
In Focus since 2007
 
Posts: 2409 | Location: Montreal Area, Qc, CA | Registered: September 25, 2013Report This Post
Virtuoso
posted Hide Post
MS SQL has a BULK INSERT statement that lets you do the inserts from a file. Is that something you could apply to your case?

To give some idea, we use it to create temp tables we need to populate a bunch of graphs from text files with several columns of data:
-IF &KeepTable NE 0 THEN GOTO :KeepTable;
-SET &TableName = 'g_' || &FileName.&First;
-SET &TmpTableName0 = '"#' || &TableName || '"';
-SET &TmpTableName = TRUNCATE(&TmpTableName0);
-SET &KeepTable = 1;

ENGINE SQLMSS SET DEFAULT_CONNECTION XXX

SQL SQLMSS
IF OBJECT_ID('dbo.&TmpTableName', 'U') IS NOT NULL
	DROP TABLE dbo.&TmpTableName;
END
-RUN

SQL SQLMSS
CREATE TABLE dbo.&TmpTableName (
	seq INT IDENTITY(1, 1) NOT NULL
,	legend VARCHAR(45) NULL
,	part_no VARCHAR(40) NULL
-REPEAT :FLDLP1 FOR &I FROM 1 TO &N;
,	field_&I FLOAT
-:FLDLP1
);
END
-RUN

-:KeepTable

-* Import this data-file into our table
SQL SQLMSS
BULK INSERT dbo.&TmpTableName
 FROM '&FilePath.&Index'
 WITH (
	FIRSTROW = &FirstDataRow,
	FORMATFILE = '&FormatURI'
 );
END
-RUN


WebFOCUS 8.1.03, Windows 7-64/2008-64, IBM DB2/400, Oracle 11g & RDB, MS SQL-Server 2005, SAP, PostgreSQL 11, Output: HTML, PDF, Excel 2010
: Member of User Group Benelux :
 
Posts: 1669 | Location: Enschede, Netherlands | Registered: August 12, 2010Report This Post
Virtuoso
posted Hide Post
I'll look at this option Wep, thanks.


WF versions : Prod 8.2.04M gen 33, Dev 8.2.04M gen 33, OS : Windows, DB : MSSQL, Outputs : HTML, Excel, PDF
In Focus since 2007
 
Posts: 2409 | Location: Montreal Area, Qc, CA | Registered: September 25, 2013Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [SOLVED] Too many messages whith SQL passthru

Copyright © 1996-2020 Information Builders