Viewing 15 posts - 1,906 through 1,920 (of 2,648 total)
When you have a query that isn't returning enough results a good way to diagnose it is to remove constraints on the query until you get some rows back.
So...
December 6, 2018 at 7:50 am
;WITH myTable as
(
SELECT *
FROM (VALUES (1001, 'X'),
(1002, 'YY'),
...
December 6, 2018 at 7:34 am
If you set your variable to a csv string e.g.:DECLARE @Subjects as nvarchar(100) = 'economics,maths'
Then use a string splitter function to convert search value into a...
December 5, 2018 at 4:48 am
The things I'd try are:
1. Change the stored procedure to stop parameter sniffing.
2. Make sure your statistics are up to date.
3. Drop the current index on dbo.SUBMISSION_QUESTION_ANSWERS(DOCUMENTID,REVISION) and...
December 4, 2018 at 12:29 pm
December 4, 2018 at 12:20 pm
December 4, 2018 at 10:25 am
How many rows does this table have?
A good index for this query would be:CREATE INDEX IX_SUBMISSION_QUESTION_ANSWERS_1
ON dbo.SUBMISSION_QUESTION_ANSWERS(DOCUMENTID,REVISION,CONTEXT,RANK,SUBMISSION_QUESTION_DEFINITION_ID)
Why are you using WITH (NOLOCK)?
December 4, 2018 at 10:01 am
Hi All,
Recently, I have undergone a computer based exam where in they asked below...
December 4, 2018 at 9:15 am
December 4, 2018 at 3:48 am
December 4, 2018 at 2:47 am
I'm interested in your query, I would like to create a database with factorized numbers like...
December 4, 2018 at 2:45 am
select f.*,
IIF(T.LEFT_OVR_ONHAND<0,0,T.LEFT_OVR_ONHAND) LEFT_OVR_ONHAND,
IIF(T.LEFT_OVR_ONHAND>0,0,-T.LEFT_OVR_ONHAND) RequiredQuantityTotal
from #f f
cross apply(values (f.OnHand-f.RequiredQuantity)) T(LEFT_OVR_ONHAND)
December 3, 2018 at 12:48 pm
December 3, 2018 at 9:06 am
December 3, 2018 at 6:37 am
You could try these indexes, then look at the execution plan to see which ones are used and drop them if the aren't:CREATE INDEX IX_T_PROD_TEXT_F_PRODUCT ON T_PROD_TEXT(F_PRODUCT,F_DATA_CODE);
December 3, 2018 at 5:51 am
Viewing 15 posts - 1,906 through 1,920 (of 2,648 total)