First, I have seen this post SO on the Topic but I never knew when you really need and don't need BEGIN END
.
Take this example
If (@pInsLName <> 'null')
Select @pInsLNameact = Cast (@pInsLName As VarChar(60))
Else
Select @pInsLNameact = Null
Or
If (@pInsLName <> 'null')
Begin
Select @pInsLNameact = Cast (@pInsLName As VarChar(60))
End
Else
Begin
Select @pInsLNameact = Null
End
In the example above is there any benefit to using versus not using BEGIN and END statements?