Author |
Message |
Mindflux
Joined: 25 May 2013 Posts: 846 Country: United States |
|
[9.0.157 BETA] Show rowcount on query execution? |
|
I'm not seeing anything in the SQL Assistant messages or results tab about how many rows were affected or selected aside from scrolling all the way to the bottom of the results pane to get a row count?
I could have sworn that was there in 7.x?
|
|
Thu Oct 06, 2016 4:26 pm |
|
 |
SysOp
Site Admin
Joined: 26 Nov 2006 Posts: 7948
|
|
|
|
This is a known issue. It will be fixed soon.
|
|
Thu Oct 06, 2016 4:32 pm |
|
 |
Mindflux
Joined: 25 May 2013 Posts: 846 Country: United States |
|
|
|
 |
 |
This is a known issue. It will be fixed soon. |
Thank you
|
|
Thu Oct 06, 2016 4:41 pm |
|
 |
Mindflux
Joined: 25 May 2013 Posts: 846 Country: United States |
|
|
|
There's something still weird here.
If I run two select statements in the same execution the results tab only shows me how many rows came back from the last executed statement (I think?)
|
|
Mon Nov 07, 2016 11:36 pm |
|
 |
Mindflux
Joined: 25 May 2013 Posts: 846 Country: United States |
|
|
|
double post
|
|
Mon Nov 07, 2016 11:37 pm |
|
 |
Mindflux
Joined: 25 May 2013 Posts: 846 Country: United States |
|
|
|
 |
 |
There's something still weird here.
If I run two select statements in the same execution the results tab only shows me how many rows came back from the last executed statement (I think?) |
I take that back, the fetch is the sum of sets. Is there any way to show each operations sets separately?
The help shows the message window should be more verbose than it is for me:

|
|
Tue Nov 08, 2016 9:46 am |
|
 |
SysOp
Site Admin
Joined: 26 Nov 2006 Posts: 7948
|
|
|
|
The issue here is missing diagnostic messages for number of rows affected by a SQL statement. In prior SQL Assistant versions they used to be output to the Messages window after code execution. An enhancement introduced in version 7.5 and later enhanced further in 9.0 enables asynchronous printing of diagnostic and progress of work messages returned by the server as the code execution progresses. It also enables executing multiple commands simultaneously from different editor tabs. The mentioned enhancements have solved the issue with waiting for code execution to complete before any messages can be seen, and resolved the issue with fixed output buffer size causing message truncation if many of them are returned. But it also introduced a side effect, not all types of diagnostic messages are printed to the Messages window as of now. We do have a ticket in the system related to that side effect and it's going to be addressed in or before 9.1 maintenance release.
|
|
Tue Nov 08, 2016 11:50 am |
|
 |
SysOp
Site Admin
Joined: 26 Nov 2006 Posts: 7948
|
|
|
|
I've got a word that this issue is specific to ADO.NET interface for SQL Server. In comparison it does print row counts for all statements executed within a SQL batch when using ODBC connections to SQL Server It's actually somewhat a regression resulting from some changes in version earlier 6.5 made few years ago and accepted at that time. The printing of diagnostic row counts for ADO.NET will be restored in the release planned for the end of this week.
|
|
Mon Nov 14, 2016 10:38 am |
|
 |
SysOp
Site Admin
Joined: 26 Nov 2006 Posts: 7948
|
|
|
|
This should have been fixed in 9.0.185
|
|
Mon Nov 21, 2016 11:53 am |
|
 |
Mindflux
Joined: 25 May 2013 Posts: 846 Country: United States |
|
|
|
I'm still seeing the same behavior with the messages being a 'summary' of the returned results. ADO.net connection type.
I am also now seeing that if the statement isn't terminated with a GO it thinks two different select statements come back as "Executed 1 statement; fetched X rows in 2 result sets"
|
|
Wed Nov 23, 2016 10:54 am |
|
 |
SysOp
Site Admin
Joined: 26 Nov 2006 Posts: 7948
|
|
|
|
 |
 |
I am also now seeing that if the statement isn't terminated with a GO it thinks two different select statements come back as "Executed 1 statement; fetched X rows in 2 result sets"
|
If you execute something like
SELECT 1
SELECT 2
whether there is GO at the end or not, it's still technical a single T-SQL batch statement returning 2 result sets. That's why the status bar message refers to 1 statement and 2 results. SQL Assistant doesn't send to the database engine the first and second SELECTs separately. It sends the entire script, whatever goes between the GO statements or from the beginning of text if there are none.
I just tested the above little script with ODBC and ADO.NET and I see with ODBC it returns correct messages
 |
 |
Executing selected queries... Please wait or close this tab to cancel execution.
1 row fetched (0.65 ms).
1 row fetched (0.02 ms).
The command(s) completed successfully (0.68 ms). |
When I run the same with ADO.NET unfortunately I get different messages
 |
 |
Executing selected queries... Please wait or close this tab to cancel execution.
The command(s) completed successfully (0.61 ms).
|
I reopened the ticked and informed the team that the fix is incomplete. Only ODBC interface is returning complete set of messages.
|
|
Wed Nov 23, 2016 7:29 pm |
|
 |
gemisigo
Joined: 11 Mar 2010 Posts: 2165
|
|
|
|
 |
 |
If you execute something like
SELECT 1
SELECT 2
whether there is GO at the end or not, it's still technical a single T-SQL batch statement returning 2 result sets. That's why the status bar message refers to 1 statement and 2 results. SQL Assistant doesn't send to the database engine the first and second SELECTs separately. |
I'm ashamed to admit that I never knew (but always wondered just never took the time or effort to check) what the correct use of terminus technicus is and what's the difference between query and statement. When I see
 |
 |
SELECT 1
SELECT 2
|
it translates to me that there's a single query but there are two statements.
|
|
Thu Nov 24, 2016 4:15 am |
|
 |
SysOp
Site Admin
Joined: 26 Nov 2006 Posts: 7948
|
|
Re: [9.0.157 BETA] Show rowcount on query execution? |
|
 |
 |
I'm not seeing anything in the SQL Assistant messages or results tab about how many rows were affected or selected aside from scrolling all the way to the bottom of the results pane to get a row count?
I could have sworn that was there in 7.x? |
This issue is specific to ADO.NET interface and it's been fixed in the latest release 9.0.194.
|
|
Fri Dec 02, 2016 1:58 am |
|
 |
|