If /Else in SProc
That is not where your "second main if ends", it's where your FIRST main if ends.I reformatted your code, and here's what it looks like:Create Proc bla bla bla as begin If @parm1='N' begin...
View ArticleIf /Else in SProc
Do you get any error? Check the code given below it is working fine for me declare @parm1 varchar ,@parm2 varchar set @parm1='A' set @parm2='F' If @parm1='N' begin -- @parm1='N'...
View ArticleIf /Else in SProc
I have a situation to use multiple conditional statments and baffled with the syntax.Create Proc bla bla bla as begin If @parm1='N' begin If @parm2='D' begin dosomething...
View Article
More Pages to Explore .....