kandukurivarun

Results 10 comments of kandukurivarun

This is the query/sproc that i am executing: ` DECLARE @output NVARCHAR(MAX) EXEC getAppInstanceHieraData @output OUT SELECT * FROM OPENJSON(@output) WITH ( AttributeId INT '$.LabelId', AttributeKey NVARCHAR(MAX) '$.AttributeKey', AttributeValue NVARCHAR(MAX)...

Sometimes i am getting the below error: `TinyTds::Error: Attempt to initiate a new Adaptive Server operation with results pending from (irb):25:in `execute' from (irb):25 from /opt/puppetlabs/puppet/bin/irb:11:in `'`

Is there a way to enable the debugging on this library query execution? Same query working properly on SSMS and returns null on Ruby .

I have added the 'Select @output' to the end of my query and still it doesn't work. It just returns null.

This is what i got when i executed it with the way that you shown above: `irb(main):088:0> client.execute(query).do SELECT @result = FQDN FROM tblAppInstanceServer ais LEFT JOIN tblAppInstance tAI on...

I know what is happening, the SPROC consists of plenty of select statements. When i use tiny_tds, it is trying to execute the 1st select statement from the sproc and...

SSMS knows that it has to wait till it executes all statements in the sproc, but tiny_tds exits after it execute the first select statement. How i can fix this...

Below is the results pane from SSMS ![image](https://user-images.githubusercontent.com/15080242/51641949-574a7e80-1f2d-11e9-9f94-8829a0949663.png)

I am seeing the output i am expecting on `tsql` ![image](https://user-images.githubusercontent.com/15080242/51643886-c3c87c00-1f33-11e9-9fc8-13fa68ab346f.png)