Advertisement

04.28.2008 at 09:55AM PDT, ID: 23359331
[x]
Attachment Details

Nested IF Statements, Syntax help

Asked by OKDRS in MS SQL Server

Tags: T-SQL

I am working on a stored procedure that has about 10 nested IF statements, not my doing. The only problem is I am trying to follow the Logic and I can't remember if the ELSE part of the IF statement is required if you just use the BEGIN and END statements. I am having difficulty following the 356 lines of the storeprocedure because at some points the original creater would use ELSE and other times didn't and they did not follow any type of indention that was consistent to show the flow of logic. Any help is appreciated.

Start Free Trial
[+][-]04.28.2008 at 11:30AM PDT, ID: 21456390

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]04.28.2008 at 11:33AM PDT, ID: 21456426

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: MS SQL Server
Tags: T-SQL
Sign Up Now!
Solution Provided By: Rrooter
Participating Experts: 2
Solution Grade: A
 
 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628