Viewing 2 posts - 1 through 2 (of 2 total)
Use
[Code]
Set NoCount ON
[/code]
at the beginning of the script. for good measure, turn it back off when done...
January 19, 2015 at 1:37 pm
#1771228
It looks like there is a mistaken assumption on the ability to reference the external query during a subquery. You can, using aliasing...
Select *, (Select Sum(OrderTotal) From Orders Where SalesmanID=S.SalesmanID)
From...
January 29, 2014 at 6:56 am
#1684289