Viewing 15 posts - 41,596 through 41,610 (of 59,102 total)
GilaMonster (10/8/2009)
Using an inequality character
SELECT session_id FROM sys.dm_exec_requests WHERE session_id > 50
Using escape codes for inequality
SELECT session_id FROM sys.dm_exec_requests WHERE session_id > 50
Using angle brackets to designate a placeholder
USE <Database...
--Jeff Moden
Change is inevitable... Change for the better is not.
October 8, 2009 at 1:04 pm
And, to answer your question, "YES"... it's because you are now sorting on an indexed column which contains the answer to the math calculation instead of sorting on a math...
--Jeff Moden
Change is inevitable... Change for the better is not.
October 8, 2009 at 11:11 am
Mike McQueen (10/8/2009)
I see what you're saying about the sorting after the math is done and not just sorting the...
--Jeff Moden
Change is inevitable... Change for the better is not.
October 8, 2009 at 11:10 am
If you really want to have some fun, here's a great way to optimize the example queries that Mark wrote... I'll let you find the changes I made because it's...
--Jeff Moden
Change is inevitable... Change for the better is not.
October 8, 2009 at 11:02 am
Let's take this one step further. In a lot of cases, if an index is used by the sort, the sort operation in the execution plan will frequently not...
--Jeff Moden
Change is inevitable... Change for the better is not.
October 8, 2009 at 10:48 am
Ah... got it. If you gen the actual execution plans for both queries, you'll see that the INDEX SEEK is used to resolve the predicate "WHERE itemcode = 'Apples'"...
--Jeff Moden
Change is inevitable... Change for the better is not.
October 8, 2009 at 10:40 am
Heh... you've confused me, as well. 😛 I'll have to study that a bit... I'll be back.
--Jeff Moden
Change is inevitable... Change for the better is not.
October 8, 2009 at 10:31 am
I'd rather not give this troll such hints, Gus. Kill this thread.
--Jeff Moden
Change is inevitable... Change for the better is not.
October 8, 2009 at 9:00 am
Outstanding. Thanks for taking the time to write all of that up, Chris. This is definitely a "keeper" for me.
--Jeff Moden
Change is inevitable... Change for the better is not.
October 8, 2009 at 8:54 am
npatel0130 (10/8/2009)
Jeff Moden (10/7/2009)
--Jeff Moden
Change is inevitable... Change for the better is not.
October 8, 2009 at 8:51 am
Aye. Thank you for the feedback. I just wish I was the one that thought of it. 😉
--Jeff Moden
Change is inevitable... Change for the better is not.
October 8, 2009 at 8:40 am
Silverfox (10/8/2009)
being a dba is a position of immense trust and responsibility, if you make a mistake you can bring the company to its knees.
Truer words never spoken. Even...
--Jeff Moden
Change is inevitable... Change for the better is not.
October 8, 2009 at 8:30 am
Jan Van der Eecken (10/7/2009)
--Jeff Moden
Change is inevitable... Change for the better is not.
October 8, 2009 at 8:13 am
Grant Fritchey (10/7/2009)
As far as targets go, there are two types of vehicles on the ocean. Targets and submarines.
Heh... I was scrolling "up" through the thread when I saw this......
--Jeff Moden
Change is inevitable... Change for the better is not.
October 8, 2009 at 8:12 am
Andy DBA (10/7/2009)
Jeff Moden (10/7/2009)
Now, there's a suggestion for a follow up article.
Sure, hint hint. I think it's old ground, though.
http://www.sqlservercentral.com/articles/Basic+Querying/understandingthedifferencebetweenisnull/871/
http://www.sqlservercentral.com/articles/Advanced+Querying/2829/
Wow... thanks for the reminder especially about Michael Cole's...
--Jeff Moden
Change is inevitable... Change for the better is not.
October 8, 2009 at 8:01 am
Viewing 15 posts - 41,596 through 41,610 (of 59,102 total)