July 25, 2010 at 2:16 pm
Matt Miller (#4) (7/25/2010)
Not that I agree with the argument, but I believe the reasoning had to do with not wanting to deal with the unertainties around non-determinism. So - they want you to "pick" which non-detemrinistic value you might get from a function, and then pass it as a constant.I do think it's fairly dumb, as you said, but that's the rationale as I understand it.
You may well be right that it's non-deterministic functions they worrierd about; but it's all the one dumb game: wanting to transfer repsonsibility the resolution of any nondeterminism associated with evaluating funtion parameters to the user - who in most cases has no control over underlying nondeterminism. Worrying about nondeterministic function calls in argument expressions would actually be a worse case of dumbness than worrying about evaluation order, since a development shop may have decided on a "normal acquisition order" for locks and required developers to adhere to it whenever possible, but no-one can require a programmer to moderate the nodeterminism of the nondeterministic functions he/she has to invoke.
Tom
July 26, 2010 at 1:49 am
Tom.Thomson (7/25/2010)
Matt Miller (#4) (7/25/2010)
Not that I agree with the argument, but I believe the reasoning had to do with not wanting to deal with the unertainties around non-determinism. So - they want you to "pick" which non-detemrinistic value you might get from a function, and then pass it as a constant.I do think it's fairly dumb, as you said, but that's the rationale as I understand it.
You may well be right that it's non-deterministic functions they worrierd about; but it's all the one dumb game: wanting to transfer repsonsibility the resolution of any nondeterminism associated with evaluating funtion parameters to the user - who in most cases has no control over underlying nondeterminism. Worrying about nondeterministic function calls in argument expressions would actually be a worse case of dumbness than worrying about evaluation order, since a development shop may have decided on a "normal acquisition order" for locks and required developers to adhere to it whenever possible, but no-one can require a programmer to moderate the nodeterminism of the nondeterministic functions he/she has to invoke.
Microsoft dumbness??? This reminds me of a recent discussion on TRY/CATCH...:-P
(Just kidding, not trying to compare any of you to Mr. Doobya, but I couldn't resist:-))
-- Gianluca Sartori
July 26, 2010 at 4:59 am
Gianluca Sartori (7/26/2010)
Microsoft dumbness??? This reminds me of a recent discussion on TRY/CATCH...:-P(Just kidding, not trying to compare any of you to Mr. Doobya, but I couldn't resist:-))
Well, just don't get me started on ANSI dumbness or ISO dumbness - those bodies are where most of the dumbness in SQL comes from. 😀
Or maybe I should blame IBM! :w00t:
Tom
July 26, 2010 at 5:53 am
Tom.Thomson (7/26/2010)
Gianluca Sartori (7/26/2010)
Microsoft dumbness??? This reminds me of a recent discussion on TRY/CATCH...:-P(Just kidding, not trying to compare any of you to Mr. Doobya, but I couldn't resist:-))
Well, just don't get me started on ANSI dumbness or ISO dumbness - those bodies are where most of the dumbness in SQL comes from. 😀
Or maybe I should blame IBM! :w00t:
Quick, Steve: hide this post from Joe Celko!! 😀
-- Gianluca Sartori
July 26, 2010 at 6:16 am
Gianluca Sartori (7/26/2010)
Tom.Thomson (7/26/2010)
Gianluca Sartori (7/26/2010)
Microsoft dumbness??? This reminds me of a recent discussion on TRY/CATCH...:-P(Just kidding, not trying to compare any of you to Mr. Doobya, but I couldn't resist:-))
Well, just don't get me started on ANSI dumbness or ISO dumbness - those bodies are where most of the dumbness in SQL comes from. 😀
Or maybe I should blame IBM! :w00t:
Quick, Steve: hide this post from Joe Celko!! 😀
I KNEW there was something I liked about Tom! 😀
--Jeff Moden
Change is inevitable... Change for the better is not.
July 26, 2010 at 7:43 am
Jeff Moden (7/24/2010)
Steve Jones - Editor (7/23/2010)
Speedo under the black ghost cloak...GAH!!!! Now I have to jab out my mind's-eye!
Here, Jeff! Grab this bottle of Brain Bleach!
The pain will cease soon. I promise. @=)
July 26, 2010 at 8:36 am
Ahhh, if I could hide posts...
I regret not building this in early and forcing developers to re-implement it over the years.
July 26, 2010 at 8:37 am
Brandie Tarvin (7/26/2010)
Jeff Moden (7/24/2010)
Steve Jones - Editor (7/23/2010)
Speedo under the black ghost cloak...GAH!!!! Now I have to jab out my mind's-eye!
Here, Jeff! Grab this bottle of Brain Bleach!
The pain will cease soon. I promise. @=)
Here's your bottle:
July 26, 2010 at 8:42 am
Nice Steve - trying to make a point that a bigger bottle is necessary to wash away his pain?
Jason...AKA CirqueDeSQLeil
_______________________________________________
I have given a name to my pain...MCM SQL Server, MVP
SQL RNNR
Posting Performance Based Questions - Gail Shaw[/url]
Learn Extended Events
July 26, 2010 at 8:59 am
We can only hope it will....:w00t:
July 26, 2010 at 12:01 pm
Hey, now! "Size matters not!"
...I've seen bigger anyway. @=)
July 26, 2010 at 12:05 pm
GilaMonster (7/24/2010)
Lynn Pettis (7/23/2010)
It is all based on change. Going into a new position with a new company. I have some idea of what I am walking into, but things could change easily. One change is going to be also working with Oracle as well. Definately going to be learning new things.Good luck. What industry is the new company in? (if you can say)
Going to work for Honeywell. Government contracts, about all I can really say.
July 26, 2010 at 12:07 pm
Lynn Pettis (7/26/2010)
GilaMonster (7/24/2010)
Lynn Pettis (7/23/2010)
It is all based on change. Going into a new position with a new company. I have some idea of what I am walking into, but things could change easily. One change is going to be also working with Oracle as well. Definately going to be learning new things.Good luck. What industry is the new company in? (if you can say)
Going to work for Honeywell. Government contracts, about all I can really say.
wow, very cool!
---------------------------------------------------------
How best to post your question[/url]
How to post performance problems[/url]
Tally Table:What it is and how it replaces a loop[/url]
"stewsterl 80804 (10/16/2009)I guess when you stop and try to understand the solution provided you not only learn, but save yourself some headaches when you need to make any slight changes."
July 26, 2010 at 12:11 pm
Lynn Pettis (7/26/2010)
Going to work for Honeywell. Government contracts, about all I can really say.
Hey, now. I've seen Covert Affairs. You becoming a spy, Lynn? Quick, Everybody, link to Lynn's Facebook page so we can find out all about everything she's working on before the privacy settings get changed! @=)
On a more serious note: Congrats on the new position. I hope it works out well for you.
July 26, 2010 at 12:12 pm
jcrawf02 (7/26/2010)
Lynn Pettis (7/26/2010)
GilaMonster (7/24/2010)
Lynn Pettis (7/23/2010)
It is all based on change. Going into a new position with a new company. I have some idea of what I am walking into, but things could change easily. One change is going to be also working with Oracle as well. Definately going to be learning new things.Good luck. What industry is the new company in? (if you can say)
Going to work for Honeywell. Government contracts, about all I can really say.
wow, very cool!
Agreed - congrats and good luck.
Jason...AKA CirqueDeSQLeil
_______________________________________________
I have given a name to my pain...MCM SQL Server, MVP
SQL RNNR
Posting Performance Based Questions - Gail Shaw[/url]
Learn Extended Events
Viewing 15 posts - 16,726 through 16,740 (of 66,749 total)
You must be logged in to reply to this topic. Login to reply