Viewing 15 posts - 1,171 through 1,185 (of 2,171 total)
For the cross join (and cross apply).
November 13, 2007 at 6:11 am
Without the index on testdata table, I got 2000 ms and 50000 reads.
With the index, I got 50 ms and 1000 reads.
November 13, 2007 at 5:49 am
Jason, would you mind run the tests again with this index for testdata table?
CREATE UNIQUE NONCLUSTERED INDEX [ixu_testdata_ndex_incl_tenpower_twodigit] ON [dbo].[testData]
(
[nDex] ASC
)
INCLUDE ( [tenPower], twodigit )
and use this index with...
November 13, 2007 at 2:51 am
Try to use CASE SENSITIVE COLLATION.
November 13, 2007 at 2:16 am
SELECTLTRIM(STUFF(RIGHT(CONVERT(VARCHAR(26), CURRENT_TIMESTAMP, 109), 14), 9, 4, ''))
November 12, 2007 at 11:50 am
Also, how can you tell if a certain day was holiday or weekend?
What increase in payments can you expect for certain type of overtime?
Please post a complete set of business...
November 11, 2007 at 10:40 am
Karim Hemani (11/7/2007)
INSERT INTO dbo.Derived_DB.tbl_ORDERSSELECT ORDER_ID, ORDER_DATE, CUSTOMER_ID
FROM OEORDH;
This statement is not even inserting into the table where the trigger displayed above is.
November 9, 2007 at 4:17 pm
November 9, 2007 at 4:12 pm
There is even a Microsoft Knowledgebase Article for this
November 9, 2007 at 8:55 am
The thing is that only Expiration and eMail columns are used in the query so the ix_temp index could be considered a covering index, right?
November 8, 2007 at 3:18 pm
If all calculations are made upon 'Metro', move the filter to the WHERE clause.SELECTDATEADD(DAY, ToC, '19000101') AS TimeOfCode,
Total416,
TotalAttempted416,
TotalAttempted416 / Total416 AS PercentAttempted416,
TotalContacted416,
TotalContacted416 / Total416 AS PercentContacted416
FROM(
SELECTDATEDIFF(DAY, '19000101', TimeOfCode) AS ToC,
COUNT(*)...
November 8, 2007 at 3:14 pm
CREATE TABLE#Temp
(
eMail CHAR(36),
Expiration DATETIME
)
INSERT#Temp
SELECTTOP 1000
NEWID(),
29000 + ABS(CHECKSUM(NEWID())) % 20000
FROMmaster..syscolumns
CREATE INDEX IX_Temp ON #Temp (Expiration, eMail)
-- Peso
SELECTEmail,
'Active' as Type
FROM#Temp
WHEREExpiration > '1/1/07'
UNION ALL
SELECTEmail,
'Expired' as Type
FROM#Temp
WHEREExpiration < '1/1/07'
-- Jason
SELECTeMail,
CASE
WHEN Expiration >...
November 8, 2007 at 2:50 pm
I didn't see your suggestion when posting.
But it can make a difference depending on which indexes that are present.
November 8, 2007 at 2:35 pm
Viewing 15 posts - 1,171 through 1,185 (of 2,171 total)