October 2, 2009 at 1:22 pm
Matt Whitfield (10/2/2009)
When I was at school there used to be a game called 'Betrayal at Krondor' - where you would meet people as you travelled around. They might have a certain skill, like lockpicking, and you would pay them x amount of whatever-currency-it-was-in-the-game, then you would see a very jerky video, after which a message box would pop up saying 'your lock picking skill has just increased 12 points' - and you'd be all like WTF - but somehow you were better at lock picking.I feel like you've just said 'your SQL skill has just increased 12 points' - and now I need to go and study that!
Thank you 😀
Jerky video? Silly young'ins... we had similar games, 'cept when you did that type of stuff you might just maybe have seen some ascii art, but for the most part we just got the line "your skill has just advance or whatever"...
Thanks for reminding me just how quickly I'm aging...
-Luke.
October 2, 2009 at 2:25 pm
Boy, the video game chatter has me realizing how long in the tooth I am getting as well! sigh...:cool:
Best,
Kevin G. Boles
SQL Server Consultant
SQL MVP 2007-2012
TheSQLGuru on googles mail service
October 2, 2009 at 2:31 pm
Jeff, try your sample code without your beloved clustered PK. That eager index spool eats you alive. 74.5 cost and 2.6M IOs. The real world rarely has the 'optimization limitations' you carry in your samples. :blink:
Best,
Kevin G. Boles
SQL Server Consultant
SQL MVP 2007-2012
TheSQLGuru on googles mail service
October 2, 2009 at 2:39 pm
TheSQLGuru (10/2/2009)
Jeff, try your sample code without your beloved clustered PK. That eager index spool eats you alive. 74.5 cost and 2.6M IOs. The real world rarely has the 'optimization limitations' you carry in your samples. :blink:
I must admit I tried that too. I'm a bit busy to go into it fully right now, but I definitely think there's something to be learned there. I just need to figure out what it is 😀 Any input gratefully received.
Atlantis Interactive - SQL Server Tools
My blog[/url]
Why I wrote a sql query analyzer clone
October 2, 2009 at 2:48 pm
The key thing to be learned here is that optimal varies GREATLY depending on the situation! Having many tricks up your sleeve for solving tsql problems (especially the common and/or very problematic ones) increases the probability that you will be able to provide the best solution to your problem on your (or like me your client's) system.
Best,
Kevin G. Boles
SQL Server Consultant
SQL MVP 2007-2012
TheSQLGuru on googles mail service
October 2, 2009 at 3:05 pm
Matt Whitfield (10/2/2009)
When I was at school there used to be a game called 'Betrayal at Krondor' - where you would meet people as you travelled around. They might have a certain skill, like lockpicking, and you would pay them x amount of whatever-currency-it-was-in-the-game, then you would see a very jerky video, after which a message box would pop up saying 'your lock picking skill has just increased 12 points' - and you'd be all like WTF - but somehow you were better at lock picking.I feel like you've just said 'your SQL skill has just increased 12 points' - and now I need to go and study that!
Thank you 😀
Heh... that's why I comment the code... keeps the video from jerking around. 😛
--Jeff Moden
Change is inevitable... Change for the better is not.
October 2, 2009 at 3:11 pm
TheSQLGuru (10/2/2009)
The key thing to be learned here is that optimal varies GREATLY depending on the situation! Having many tricks up your sleeve for solving tsql problems (especially the common and/or very problematic ones) increases the probability that you will be able to provide the best solution to your problem on your (or like me your client's) system.
Absolutely spot on.
--Jeff Moden
Change is inevitable... Change for the better is not.
October 2, 2009 at 3:29 pm
I've had a lot of moments like that in here, Matt 🙂 I'm not sure if it equates to +1 wisdom, or +1 intelligence, but one day I hope to level up.
__________________________________________________
Against stupidity the gods themselves contend in vain. -- Friedrich Schiller
Stop, children, what's that sound? Everybody look what's going down. -- Stephen Stills
October 2, 2009 at 3:51 pm
Bob Hovious 24601 (10/2/2009)
I've had a lot of moments like that in here, Matt 🙂 I'm not sure if it equates to +1 wisdom, or +1 intelligence, but one day I hope to level up.
I'll drink to that 😀
Atlantis Interactive - SQL Server Tools
My blog[/url]
Why I wrote a sql query analyzer clone
October 2, 2009 at 8:03 pm
BTW... you can also use a WHERE NOT EXISTS against a Tally table and it'll be fast as well. Just don't try the ol' outer join with a NULL detector in the WHERE clause because it will be slow. Still, it will require a large enough Tally table to cover the range size you need where the other method I posted doesn't.
--Jeff Moden
Change is inevitable... Change for the better is not.
October 2, 2009 at 9:29 pm
Lynn Pettis (10/2/2009)
On my dev system master.sys.all_parameters returns 6776 rows. In the context of the particular database I tested it, sys.all_parameters, returned 6841.
That's why I try to stick the master.sys.system_columns, it's generally much more consistent (especially on my systems).
[font="Times New Roman"]-- RBarryYoung[/font], [font="Times New Roman"] (302)375-0451[/font] blog: MovingSQL.com, Twitter: @RBarryYoung[font="Arial Black"]
Proactive Performance Solutions, Inc. [/font][font="Verdana"] "Performance is our middle name."[/font]
October 2, 2009 at 9:39 pm
Luke L (10/2/2009)
Matt Whitfield (10/2/2009)
When I was at school there used to be a game called 'Betrayal at Krondor' - where you would meet people as you travelled around. They might have a certain skill, like lockpicking, and you would pay them x amount of whatever-currency-it-was-in-the-game, then you would see a very jerky video, after which a message box would pop up saying 'your lock picking skill has just increased 12 points' - and you'd be all like WTF - but somehow you were better at lock picking.I feel like you've just said 'your SQL skill has just increased 12 points' - and now I need to go and study that!
Thank you 😀
Jerky video? Silly young'ins... we had similar games, 'cept when you did that type of stuff you might just maybe have seen some ascii art, but for the most part we just got the line "your skill has just advance or whatever"...
Thanks for reminding me just how quickly I'm aging...
-Luke.
Heh, you don't even want to know what my first video game was. 🙂
[font="Times New Roman"]-- RBarryYoung[/font], [font="Times New Roman"] (302)375-0451[/font] blog: MovingSQL.com, Twitter: @RBarryYoung[font="Arial Black"]
Proactive Performance Solutions, Inc. [/font][font="Verdana"] "Performance is our middle name."[/font]
October 2, 2009 at 10:03 pm
RBarryYoung (10/2/2009)
Luke L (10/2/2009)
Matt Whitfield (10/2/2009)
When I was at school there used to be a game called 'Betrayal at Krondor' - where you would meet people as you travelled around. They might have a certain skill, like lockpicking, and you would pay them x amount of whatever-currency-it-was-in-the-game, then you would see a very jerky video, after which a message box would pop up saying 'your lock picking skill has just increased 12 points' - and you'd be all like WTF - but somehow you were better at lock picking.I feel like you've just said 'your SQL skill has just increased 12 points' - and now I need to go and study that!
Thank you 😀
Jerky video? Silly young'ins... we had similar games, 'cept when you did that type of stuff you might just maybe have seen some ascii art, but for the most part we just got the line "your skill has just advance or whatever"...
Thanks for reminding me just how quickly I'm aging...
-Luke.
Heh, you don't even want to know what my first video game was. 🙂
lemme guess, Pong. 😉
October 2, 2009 at 10:35 pm
Lynn Pettis (10/2/2009)
RBarryYoung (10/2/2009)
Luke L (10/2/2009)
Jerky video? Silly young'ins... we had similar games, 'cept when you did that type of stuff you might just maybe have seen some ascii art, but for the most part we just got the line "your skill has just advance or whatever"...Thanks for reminding me just how quickly I'm aging...
-Luke.
Heh, you don't even want to know what my first video game was. 🙂
lemme guess, Pong. 😉
Dude, I played Spacewar in an arcade at the shore, circa 1970.
[font="Times New Roman"]-- RBarryYoung[/font], [font="Times New Roman"] (302)375-0451[/font] blog: MovingSQL.com, Twitter: @RBarryYoung[font="Arial Black"]
Proactive Performance Solutions, Inc. [/font][font="Verdana"] "Performance is our middle name."[/font]
October 2, 2009 at 11:04 pm
Cool. It was released in 1962 and ran initially on the PDP-1. Was used by the FE's when setting up the PDP-1 as a final test before turning over the systems to the customer (if you can believe Wikipedia). Pong didn't come out until 1972.
Viewing 15 posts - 121 through 135 (of 159 total)
You must be logged in to reply to this topic. Login to reply