Neuron ESB User Network

The Service Bus for the Connected Business

We have set up an ODBC adapter to poll a stored proc.

We found that if the stored proc has a temporary table defined the rows returned are always 0.

Any idea why this would be and what we can do to get around it?

Views: 50

Reply to This

Replies to This Discussion

Which vendor is the database? What is the stored procedure code?  Does this code work outside of the ODBC adapter, like in SQL Server Management Studio?

We are using SQL server 2012. The procedure works in SSMS and in other .net applications. 

I tried a simple code like this in the procedure - 

DECLARE @temp TABLE( DataColumn int)
INSERT INTO @temp (DataColumn) VALUES (1);
SELECT DataColumn FROM @temp

Try adding this to the beginning of your stored procedure:

SET NOCOUNT ON;

I created a stored proc with your exact code above and it didn't work.  Adding that line fixed my issue.

Joe

RSS

Neuron ESB Product Support Forums and Communities

Latest Activity

Sayantini Basak posted a discussion

Maximum payload size(REST API) for requests interfacing to NeuronESB

I am new to Neuron ESB and in our current scenario,We need to process batch transactions comprising of ~1000 records and send them to Neuron ESB for further processing. I would like to understand what is the maximum size of payload that can be transferred using REST interface to Neuron ESB.See More
Jul 22
Profile IconRobert E Dunie and Sayantini Basak joined Neuron ESB User Network
Apr 28
Profile IconDayanand, Frederic C, Steffen Greve-Oksfeldt and 1 more joined Neuron ESB User Network
Mar 16
Profile IconCam Vong and Mitja Luznar joined Neuron ESB User Network
Jan 27
Profile IconWill Hitzges, Chad Parsons, michael larsen and 4 more joined Neuron ESB User Network
Jun 11, 2021
Anupama Nair posted a discussion

ODBC stored proc polling with temporary tables

We have set up an ODBC adapter to poll a stored proc.We found that if the stored proc has a temporary table defined the rows returned are always 0.Any idea why this would be and what we can do to get around it?See More
Dec 14, 2020
Prasanth Kharade is now a member of Neuron ESB User Network
Dec 30, 2019
Suman vadde is now a member of Neuron ESB User Network
Dec 16, 2019

Badge

Loading…

© 2022   Created by Neuron Admin.   Powered by

Badges  |  Report an Issue  |  Terms of Service