April 15, 2022 at 5:23 am
In the program I'm working with, I need to build a stored procedure just to create a field in the cms editor drop down.
It is very basic, or so I thought. I just want to test the field for a value and if it is there, print a line of text. That's it. It is crazy that I have to write a procedure for this. This cms I am using is ridiculous.
This is the code. Does anyone know what is wrong with it? @OrderID int, @CultureID int
AS SELECT CASE C.ClearingConfigId WHEN 10006 THEN 'Make Check Payable to:' ELSE SCC_Culture.Name END
FROM Orders O INNER JOIN ClearingConfig C ON O.PaymentMethodId = C.ClearingConfigId INNER JOIN StoreClearingConfig SCC ON SCC.ClearingConfigId = C.ClearingConfigId AND O.StoreID = SCC.StoreId LEFT OUTER JOIN StoreClearingConfig_Culture SCC_Culture ON SCC_Culture.StoreClearingConfigID = SCC.StoreClearingConfigId
WHERE O.OrderID = @OrderID AND SCC_Culture.CultureID = @CultureID
April 15, 2022 at 11:11 am
does the query return a row with the given test data ?
How will your app react if there is no row returned?
Johan
Learn to play, play to learn !
Dont drive faster than your guardian angel can fly ...
but keeping both feet on the ground wont get you anywhere :w00t:
- How to post Performance Problems
- How to post data/code to get the best help[/url]
- How to prevent a sore throat after hours of presenting ppt
press F1 for solution, press shift+F1 for urgent solution 😀
Need a bit of Powershell? How about this
Who am I ? Sometimes this is me but most of the time this is me
April 30, 2022 at 5:25 am
This was removed by the editor as SPAM
Viewing 3 posts - 1 through 2 (of 2 total)
You must be logged in to reply to this topic. Login to reply