Viewing 9 posts - 1 through 9 (of 9 total)
Indexing SCDs drives me nuts, that's why I was looking at it so carefully- I still haven't seen a good general solution for it, especially if you need to access...
August 21, 2013 at 7:24 am
Your PK is defined on InvoiceIDO, not InvoiceID.
ALTER TABLE SCF_Invoices ADD CONSTRAINT PK_SCF_Invoices PRIMARY KEY CLUSTERED
( ValidFrom ASC,
InvoiceIDO ASC
)
August 20, 2013 at 7:18 am
In a way, it's all semantics. Whether SCF or SCD really depends on usage, nothing more. In the stuff that I work with, there is no question that invoices are...
August 19, 2013 at 6:02 pm
Since you don't delete from your Invoice "SCF" table, doesn't the PK give you a violation when you do reloads from the same day?
August 19, 2013 at 2:17 pm
R. C. van Dijk (8/26/2009)
August 26, 2009 at 3:45 pm
R. C. van Dijk (8/25/2009)
wbrianwhite (8/25/2009)
No offense, but I disagree. One large query that gets all your data at once is likely to be significantly faster than separate stored...
August 26, 2009 at 1:40 pm
It looks like a multikey index will be used ("index seek") if the first key in the index is referenced in the WHERE clause without a function and the second...
February 28, 2008 at 3:05 pm
hmmm.....On our db, these resulted in scans 100% of the time and removing the functions (isNull Usually) fixed the issue 100% of the time.
I'd have to see specific examples in...
February 28, 2008 at 9:39 am
I can't duplicate the effect documented in the article. In earlier versions of SQL Server, it was well know that the definition of a SARG did not include an expression...
February 28, 2008 at 7:38 am
Viewing 9 posts - 1 through 9 (of 9 total)