Jerry:
That feature is still available; check and see if you are displaying the "status bar" (I think). In the meantime I'll do some more checking about that feature.
|||Kent
In SSMS, it should be visible in the status bar of the Results window.
Welcome as a new user to SQL Server Jerry. Hopefully, you will be able to get the help you need from these forums, and as your skills progress, please don't forget to drop in occasionally and help others. (You will ALWAYS know something someone else can benefit from...)
It's not a 'recordset' -the output from a SQL query is referred to as a 'resultset'.
|||My mistake on the 'recordset' comment. I know it's a resultset.
I've been using SQL for a bit now but the result set count still doesn't show up. I have all the bars visible. I see "Ln", "Col", "Ch" & I see the number of rows returned and server i'm running against under the resultset window.
|||I think that perhaps you are looking to get the message that "n row(s) affected" that may follow an activity. (It sounds like perhaps you are seeing the "n rows" in the status bar.)
To get the "n row(s) affected" message, use this command:
SET NOCOUNT OFF
To stop getting the "n row(s) affected" message, use this command:
|||I thought in previous versions of SQL it actually said how man result sets were coming back. Not the number of rows but the number of result sets. I need 97 result sets to come back with a series of stored procedures that are being executed. I don't want to go through and count every result set.|||SET NOCOUNT ON
I'm not aware of any facility within T-SQL that reports the number of resultsets returned. One query = one resultset.
I think that may be available with some of the ADO objects, specifically the datareader object.
I supose you could add a counter variable in the procedure, and check each query for @.@.ROWCOUNT, incremented as desired, and then return a statement using that variable.
|||I don't remember one either.
You could possibly return the data to the grid and then (assuming no errors or print statements) you could get a count from the
(1 row(s) affected)
messages in the messages pane..
No comments:
Post a Comment