Viewing 15 posts - 4,771 through 4,785 (of 7,597 total)
SELECT STUFF(
(SELECT ','+LTRIM(RTRIM(LEFT(Item, CHARINDEX('=', Item + '=') - 1)))
FROM dbo.DelimitedSplit8K (t.data, ',') ds
FOR XML PATH('')),
...
September 16, 2015 at 10:31 am
This is probably the most straightforward, albeit perhaps not the very most efficient:
SELECT
J.DT_ID
,J.OperationCode
,J.EmployeeCode
,J.JobNumber
FROM @TEST_DATA J
INNER JOIN...
September 16, 2015 at 10:08 am
Would need to see the actual query plan to see what that implicit conversion is so significant. There must be something going on with a table column, not just...
September 16, 2015 at 9:09 am
Sean Lange (9/15/2015)
Lowell (9/15/2015)
September 16, 2015 at 8:15 am
Yes, it's normal. Indeed, it's the only way to get consistently accurate results.
In general terms, if you're comparing a value including a time, you need the time to get...
September 16, 2015 at 8:05 am
Kristen-173977 (9/15/2015)
ScottPletcher (9/15/2015)
September 15, 2015 at 6:23 pm
Kristen-173977 (9/15/2015)
ScottPletcher (9/15/2015)
Look for a maintenance plan that is rebuilding indexes
Won't an index rebuild CHECKPOINT after each index? - and thus would I be right in thinking that this would...
September 15, 2015 at 4:56 pm
FYI, you can also use the function:
OBJECT_DEFINITION()
to get that text.
September 15, 2015 at 4:48 pm
An implicit conversion of a constant or variable to a different data type shouldn't cause performance issues, since that's a one-time thing, and it's being done to prevent the much...
September 15, 2015 at 4:43 pm
Instead of solving queries against this table one at a time, fix them all in one shot.
Cluster the ml table on processingstarted if that is how you typically query against...
September 15, 2015 at 4:34 pm
I wouldn't think you'd want to force the parameter values to be the same to group them. That is, as long as they specified params 1, 3 and 5,...
September 15, 2015 at 10:01 am
Look for a maintenance plan that is rebuilding indexes. I believe it would rebuild all indexes on the selected db every time, without regard to size or how fragmented...
September 15, 2015 at 9:34 am
Lynn Pettis (9/15/2015)
Ed Wagner (9/15/2015)
Eirikur Eiriksson (9/14/2015)
Sorry, slightly hurried and inaccurate😎
CONVERT(DATE,AppDetails.DateDetailDisposed,0) = CONVERT(DATE,DATEADD(DAY,-21,getdate()),0)
If your DateDetailDisposed column is a datetime data type, you might run into a performance problem here. ...
September 15, 2015 at 9:28 am
You just need to adjust the numbers in the calc below until it returns the date you want. I put my best guess in, but adjust as needed.
--To stand-alone...
September 15, 2015 at 9:27 am
SQLPain (9/14/2015)
Thanks Scott,How do I fix this code:
AppDetails.DateDetailDisposed BETWEEN getdate() - 25 AND getdate() - 20
I only need getdate() -21, but that's giving me blank output
WHERE ... AND
...
September 14, 2015 at 3:07 pm
Viewing 15 posts - 4,771 through 4,785 (of 7,597 total)