Viewing 15 posts - 1,306 through 1,320 (of 7,608 total)
If the Production.ProductInventory table is clustered on ProductId (and it almost certainly should be), and you specify a specific ProductId or a list of ProductIds, as in the WHERE clause...
August 25, 2021 at 10:48 pm
Looking at the Clustered Index for the oeordlin_sql table, I'm a wee bit concerned (especially for insert and update performance) over having the leading column be in...
August 25, 2021 at 5:53 pm
SELECT
J.Job,
J.Category,
COALESCE(C.Value, C_All.Value) AS Value
FROM Job J
LEFT OUTER JOIN Category C ON C.Category =...
August 25, 2021 at 4:31 am
Sorry, no, I just need to get time to get back to it. I should be able to do that tomorrow.
We have to reduce the overhead in the Write proc...
August 25, 2021 at 1:38 am
Actually, it depends on how the table is searched.
Do you often filter the rows by only type when SELECTing? If so, then the clus index makes sense...
August 25, 2021 at 1:37 am
Looking at the Clustered Index for the oeordlin_sql table, I'm a wee bit concerned (especially for insert and update performance) over having the leading column be in the...
August 24, 2021 at 7:45 pm
None of this works:
...
SELECT * INTO 2415_10_Ga_Trunking_Design_Configurator FROM 2415_12_Ga_Trunking_Design_Configurator
What about that doesn't work?
If you don't want any data in the table, use TOP (0) and/or WHERE 1 = 0...
August 24, 2021 at 6:34 pm
You're welcome. Thanks for the feedback.
If you would mark it as the answer, it could help people looking at this later, as they will then know the q has been...
August 24, 2021 at 6:31 pm
Our situation appears to be quite a bit different than yours (and no... neither is wrong, IMHO... they're just different because of different business requirements). My best friend, who...
August 24, 2021 at 6:29 pm
I think FULL OUTER JOIN is what you need here:
SELECT
COALESCE(sales.mth, receipts.mth) AS mth,
COALESCE(sales.yr, receipts.yr) AS yr,
...
August 24, 2021 at 3:49 pm
Correct. We never do multiple named instances on a server. Heh... they still haven't found the body of the last person that tried to do that on our servers....
August 24, 2021 at 3:37 pm
SQL Server will install some things on the C: / main Windows drive regardless of what you do.
The windows teams have a nasty habit of installing SQL Server on...
August 23, 2021 at 10:18 pm
Better to script out the indexes; sp_helpindex doesn't show INCLUDEd columns, for one major failing.
A simple sys.sp_helptext on the view to show us its definition is fine.
August 23, 2021 at 10:06 pm
You could do some major clean up on your existing code:
...6. Since Write_Error_Log is called *so many* times, need to see the code for it too. It needs to...
August 23, 2021 at 6:31 pm
It also looks like you're querying a view for oeordlin rather than the actual table. If you are using a view, the text for that view would help us a...
August 23, 2021 at 6:19 pm
Viewing 15 posts - 1,306 through 1,320 (of 7,608 total)