Hi all,I've got a code that simple loop through rows in a table using cursors. I've noticed for each returned row, it's being displayed in SMSS.Is there a way to avoid displaying every row returned from the cursor?begin SET XACT_ABORT ON set nocount on DECLARE curemployee CURSOR FOR SELECT BusinessEntityID FROM HumanResources.Employee2 BEGIN TRANSaction OPEN curemployee FETCH FROM curemployee WHILE @@FETCH_STATUS = 0 BEGIN FETCH FROM curemployee END CLOSE curemployee DEALLOCATE curemployee end GO
Cheers,ozSQL