Solved

Problems altering a complex SQL code, always get an error

Posted on 2008-10-08
2
160 Views
Last Modified: 2012-05-05
Hello,

Will be a mircale if someone could help with this one, been driving me crazy all afternoon. I'm trying to extend someones SQL code who has now left the business. I have attached the script to the thread in notepad. The problem I have is if I change the smallest thing like the output in an iif statement I get an error message which I have attached. Even if I put the script back to how it was and try and run it again I still get the same error message.

Does anyone know why it is happening? not expecting you to know what the script is fully doing just how I can correct the error or avoid it.

Finishing work now but back 8am GMT time, would be great is anyone has any ideas

Thanks
Ian
SQL.txt
error.JPG
0
Comment
Question by:ShockUK
2 Comments
 
LVL 8

Accepted Solution

by:
mikainz earned 500 total points
ID: 22670495
Hi please
replace the brackets [ and ]
with the following brackets ( and )

see attached file
sql2.txt
0
 

Author Closing Comment

by:ShockUK
ID: 31504254
So simple but so great.
I would give you more than 500 points if I could for this

Thanks
0

Featured Post

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Introduction Hopefully the following mnemonic and, ultimately, the acronym it represents is common place to all those reading: Please Excuse My Dear Aunt Sally (PEMDAS). Briefly, though, PEMDAS is used to signify the order of operations (http://en.…
If you have heard of RFC822 date formats, they can be quite a challenge in SQL Server. RFC822 is an Internet standard format for email message headers, including all dates within those headers. The RFC822 protocols are available in detail at:   ht…
Along with being a a promotional video for my three-day Annielytics Dashboard Seminor, this Micro Tutorial is an intro to Google Analytics API data.
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…

786 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question