Viewing 15 posts - 961 through 975 (of 2,648 total)
I can't see the full SQL query text. Can you paste the full query in this thread?
Also, how many rows are on EDW.dbo.DimInvoice?
September 25, 2020 at 1:46 pm
I think these 3 queries will do the same thing
SELECT t1.CATEGORY, t1.ITEMID
FROM ecomm.Promo_Items t1
CROSS APPLY (SELECT NESTEDSETLEFT,
...
September 23, 2020 at 11:39 pm
I've had to vertically split a dimension table on a data warehouse. It had over 500 columns, almost any update was causing a page split so splitting the table into...
September 15, 2020 at 4:24 pm
You can use MAXDOP on an individual query e.g.
SELECT ProductID, OrderQty, SUM(LineTotal) AS Total
FROM Sales.SalesOrderDetail
WHERE UnitPrice < $5.00
GROUP BY ProductID, OrderQty...
September 15, 2020 at 4:14 pm
It doesn't sound like a memory issue, but if you are sure it is you could reduce the memory SQL Server uses just before the SSIS packages run...
September 14, 2020 at 5:02 pm
It doesn't sound like a memory issue, but if you are sure it is you could reduce the memory SQL Server uses just before the SSIS packages run and increase...
September 14, 2020 at 3:22 pm
It's a very good idea to put all your stored procedures and other database code in source control. One file for each SP.
September 13, 2020 at 5:36 pm
If you don't want the rows with the NULL's to be returned just make it CROSS APPLY instead of OUTER APPLY.
If you want the rows with the NULLS to be...
September 11, 2020 at 3:09 pm
DECLARE @title as VARCHAR(MAX) = 'Title:';
SELECT si.ItemID,
si.Code as SKU,
si.AnalysisCode12 as MSKU,
...
September 11, 2020 at 2:35 pm
I'm not sure if I understand what you want. Do you want to find all rows in the master table that have rows in all the other 50 related table?
If...
September 9, 2020 at 5:11 pm
Compression to save disk space is of dubious value unless it saves IO.
With technologies such as Fusion-IO and SSDs where you are talking about literally thousands of times that...
August 29, 2020 at 2:19 am
How do you want the 30 second intervals defined?
i.e. do you want them divided into clock-face 30 second intervals or for the 30 second interval to start at the time...
August 26, 2020 at 2:25 pm
closed
Why did you delete the text in your original post? Even if it turned out to be a dumb question that you found the answer to, a followup...
August 23, 2020 at 12:42 am
You could create a daily agent job with a separate step for each (monthly/weekly/daily) task then add a step to the front of each of those steps to test if...
August 18, 2020 at 2:24 pm
I think if you format the values in your table correctly you should be able to do it without a cursor or using dynamic SQL by using
"CROSS APPLY OpenRowset(..."
August 13, 2020 at 4:27 pm
Viewing 15 posts - 961 through 975 (of 2,648 total)