L
Leon
DOES SETTING NOCOUNT ON option affect my stored procedures and website
performance in anyway within my asp.net application?
When and when not to set SET NOCOUNT ON?
I know what it does but not exactly where and when I want to use it.
i.e.
CREATE PROCEDURE GetAuthorization 2.0
@Username Varchar( 20 ),
@Password Varchar( 16 )
as
SET NOCOUNT ON
declare @AccountID int
set @AccountID = -1
select @AccountID =
case
when Password = @Password and Active = 1 then AccountID
when Password = @Password then -2
else -3
end
from Account
where Username = @Username
return @AccountID
go
performance in anyway within my asp.net application?
When and when not to set SET NOCOUNT ON?
I know what it does but not exactly where and when I want to use it.
i.e.
CREATE PROCEDURE GetAuthorization 2.0
@Username Varchar( 20 ),
@Password Varchar( 16 )
as
SET NOCOUNT ON
declare @AccountID int
set @AccountID = -1
select @AccountID =
case
when Password = @Password and Active = 1 then AccountID
when Password = @Password then -2
else -3
end
from Account
where Username = @Username
return @AccountID
go