Viewing 15 posts - 406 through 420 (of 499 total)
is [fINAL cOMPONENT] indexed in the look up table? IF not, index it. That should change the scan to a seek.
November 13, 2014 at 12:58 pm
You can choose the dataset when you choose the field for the operation. It can be any dataset (and any field in that dataset) that is available.
November 13, 2014 at 12:30 pm
Your second approach is the best one. Execute it in sections and see if you can isolate where the failure occurs.
November 13, 2014 at 12:00 pm
Is there a problem to install the service pack?
November 13, 2014 at 11:52 am
1. Ensure that the columns in your join predicates and WHERE predicates are indexed.
2. The RID Lookup (Heap) says to me that the lookup table has no Clustered Index. ...
November 13, 2014 at 11:50 am
The temp table in the dynamic sql is created in a different context and not available to the calling context. e.g.
DECLARE @sql nvarchar(4000) = N'create table #foo(a int)';
EXEC sp_executesql @sql
SELECT...
November 13, 2014 at 11:40 am
adonetok (11/13/2014)
insert into OrderA select * from OrderTemp
insert into OrderB select...
November 13, 2014 at 10:59 am
well one sure-fire method is to disable the super user and see who complains
November 13, 2014 at 10:29 am
sharonsql2013 (11/13/2014)
November 13, 2014 at 10:26 am
THink about this:
You refer to @MemberIds in two different ways:
where
C1017.v_Member.MemberId IN (@MemberIds) and
-- and
@MemberIds = C1017.v_Member.MemberId
Now, if @MemberIds is a single value, this will work, but what if it...
November 13, 2014 at 10:22 am
declare @t table (Col1 char(2), col2 char(2),col3 char(2))
INSERT INTO @t (col1, col2, col3) VALUES
('AB' , 'BC' ,'DA')
SELECT a AS [Values], x.val AS HardCoded
FROM @t
unpivot (a for col in (col1, col2,...
November 13, 2014 at 9:26 am
robolance (11/13/2014)
Somewhere in the past I heard/saw a discussion about how indexes are handled when using an 'IN' vs....
November 13, 2014 at 8:45 am
No difference in results for inner join. It's a matter of style. Matching vs filtering. Usually put matching in ON clause and filtering in WHERE clause. ...
November 13, 2014 at 8:41 am
How about:
CASE WHEN PlannedRequirement.MIN_keydate IS NULL
THEN SELECT MIN(KeyDate)
...
November 13, 2014 at 7:49 am
Viewing 15 posts - 406 through 420 (of 499 total)