Viewing 15 posts - 961 through 975 (of 8,416 total)
johnitech.itech (1/26/2012)
Grouping Records...
Yes all that is true, but the index would appear in the execution plan and be counted in usage stats. The question was if an index could...
January 26, 2012 at 2:43 pm
Yes, the mere existence of a *unique* index can be used by the optimizer to simplify an execution plan based on the guarantees that uniqueness provides. The index will...
January 26, 2012 at 3:56 am
ChrisM@home (1/26/2012)
Interesting. I've not read Itzik's books - perhaps I should
I definitely recommend them - particularly Inside Microsoft SQL Server 2008: T-SQL Querying.
...so I have to build the query from...
January 26, 2012 at 2:38 am
GilaMonster (1/26/2012)
SQL Kiwi (1/25/2012)
Backwards compatibility has a lot to answer for. I cringe slightly every time I see a variable-length data type used without an explicit maximum length value.
Only...
January 26, 2012 at 2:17 am
ChrisM@home (1/26/2012)
Heh Paul that's too funny!
I thought the same thing! We must have been working on the opposite solutions at the same time. I must confess I still...
January 26, 2012 at 1:58 am
January 26, 2012 at 1:09 am
The rewrite to >= @date AND timestamp < DATEADD(dd,1, @date) is a sound practice, but it is not actually required to make the predicate SARGable. A simple CONVERT of...
January 26, 2012 at 12:33 am
Whatever else, always store dates and times using one of the built-in types, never as a string.
As an aside, this sort of formatting is made easier and faster in SQL...
January 25, 2012 at 10:37 pm
DECLARE @Example AS TABLE
(
CardType nvarchar(50) NOT NULL,
Completed bit ...
January 25, 2012 at 10:30 pm
Backwards compatibility has a lot to answer for. I cringe slightly every time I see a variable-length data type used without an explicit maximum length value.
January 25, 2012 at 8:35 pm
January 25, 2012 at 8:30 pm
Just for the record, SQL Server 2012 (only) gives us a neater T-SQL solution (though not as fast):
DECLARE @test-2 TABLE
(
Id integer...
January 25, 2012 at 8:27 pm
Itzik Ben-Gan ran a series of articles exploring T-SQL solutions to this problem:
http://www.sqlmag.com/article/tsql3/calculating-concurrent-sessions-part-3
The link above gives a very neat solution provided by several people including a past regular contributor to...
January 25, 2012 at 8:22 pm
Brandie Tarvin (1/25/2012)
Anyone can fly. You just throw yourself at the ground and miss.
Been reading Douglas Adams recently, Brandie?
January 25, 2012 at 7:26 pm
Viewing 15 posts - 961 through 975 (of 8,416 total)