-
Notifications
You must be signed in to change notification settings - Fork 188
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Query consisting the stored procedure works on SSMS or any SQL Editor but tiny tds returns null array #425
Comments
could you please show us your code? |
This is the query/sproc that i am executing: |
And the affected_rows returns '-1' |
Sometimes i am getting the below error:
|
Is there a way to enable the debugging on this library query execution? Same query working properly on SSMS and returns null on Ruby . |
as I can see you are executing a sproc, but you don't return any data. (Maybe SSMS will show you some messages, but this not data. |
I have added the 'Select @output' to the end of my query and still it doesn't work. It just returns null. |
Have you tried your code with a :message_handler?
|
This is what i got when i executed it with the way that you shown above:
|
Thats not your query from above? and still missing the |
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 issue? |
can you show the "Results" pane from SSMS? |
I think you have multiple results sets (Known as MARS see https://docs.microsoft.com/de-de/sql/relational-databases/native-client/features/using-multiple-active-result-sets-mars?view=sql-server-2017) |
I think you have multiple results sets (Known as MARS see https://docs.microsoft.com/de-de/sql/relational-databases/native-client/features/using-multiple-active-result-sets-mars?view=sql-server-2017) |
I am trying to execute a stored procedure from tiny_tds and it returns me the null value. If i execute the same query from any SQL editors, they return the value that i am expecting. What are the ways to debug this? I am able to execute the simple select statements using tinytds, but when i execute the stored procedure, it doesnt return any value,
TinyTds version: 2.10
OS: RHEL 7.4
The text was updated successfully, but these errors were encountered: