Viewing 15 posts - 841 through 855 (of 2,648 total)
Is the table clustered on ID?
Have you got any other indexes on the table?
Have you looked at the execution plan?
July 1, 2021 at 4:36 pm
As we don't know what the processing is no one will be able to say whether or not a DYNAMIC READ_ONLY CURSOR is the best way to process your data. Can...
June 29, 2021 at 1:49 pm
Can this be achieved without using ranking function
Yes, the ROW_NUMBER() function is unused so does nothing.
June 29, 2021 at 11:23 am
What error are you are getting?
June 29, 2021 at 10:29 am
SELECT BusinessEntityID,
FirstName,
MiddleName,
LastName,
...
June 29, 2021 at 10:25 am
select t.col1, t.col2, sum(t.col3) col3, sum(t.col4) col4, col5
from (
select 7213 col1, 992 col2, 30 col3, 0 col4, cast(getdate() as date) col5
union all
select 7213 col1, 992 col2, 0...
June 25, 2021 at 3:30 pm
I can't see the point in the clustered index :
CREATE UNIQUE CLUSTERED INDEX dbo.PERSON_HISTORY__CL
ON dbo.PERSON_HISTORY ( OccurredDate, My )
...
June 21, 2021 at 9:03 am
I can't see the point in the clustered index :
CREATE UNIQUE CLUSTERED INDEX dbo.PERSON_HISTORY__CL
ON dbo.PERSON_HISTORY ( OccurredDate, My )
...
June 21, 2021 at 1:56 am
Hmm, I remember a WHERE condition on the OccurredDate; maybe I'm mixing this query up with another one.
At any rate, one last time, as I stated earlier:
the history table...
June 21, 2021 at 12:51 am
First, the history table should be clustered leading on OccurredDate. That's generally true for log tables. [Forget the stupid myth that "by default, every table should be...
June 20, 2021 at 11:21 am
First, the history table should be clustered leading on OccurredDate. That's generally true for log tables. [Forget the stupid myth that "by default, every table should be clustered on...
June 19, 2021 at 6:02 pm
any suggestions for dropping and re-creating on that large of a Table?
Not sure how much of a time window I have to do the drop\create... The Box it's on...
June 18, 2021 at 2:01 pm
Not sure what you mean by " re-cluster the Quality table".
Thanks.
I think Scott means to drop the clustered primary key on table Quality (CONSTRAINT [PK_Quality] PRIMARY KEY CLUSTERED ([Quality_ID]...
June 18, 2021 at 1:04 am
Slightly more concise way to test if a column is present:
IF COL_LENGTH(N'[dbo].[tbl_Reference]', N'ReferenceName') IS NOT NULL BEGIN
PRINT 'UPDATING [dbo].[tbl_Reference] SET ClientReferenceNumber '
...
June 15, 2021 at 2:40 pm
Viewing 15 posts - 841 through 855 (of 2,648 total)