Viewing 15 posts - 46 through 60 (of 3,482 total)
Just gonna leave this here:
https://www.mssqltips.com/tutorial/how-to-shrink-the-transaction-log/
April 19, 2025 at 1:08 am
Are the execution plans different? I would look there first. And test it out on a dev instance so you can do terrible things like DBCC FREEPROCCACHE, which you should...
April 17, 2025 at 7:49 pm
Seems like you should be able to CAST the end result of the query to get less precision. The only problem is if you're losing precision in the CTE.
April 11, 2025 at 11:23 pm
What "one very important step" am I missing? Please elaborate!
Seems to me, I should use a For Each File loop in SSIS, and then inside that, pass the file name...
April 9, 2025 at 5:27 pm
Is the PowerQuery source ever going to work in SSIS? If not, how do I call the PowerQuery refresh in Excel from inside SSIS?
April 9, 2025 at 3:49 pm
If you're trying to create a running total, use a windowing function.
SUM(1 + COALESCE(Fact0r,0)/100) OVER (ORDER BY PricingDate ROWS BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW)
?
Just make sure your "window" defining...
April 8, 2025 at 11:25 pm
Got some data instead of just pictures?
Oh, something like this:
SELECT
roh.itemID,
roh.[Best Before Date],
roh.[On Hand],
oa.TotalOrders
FROM REporting.FGMonthlyRiskOnHand roh
OUTER APPLY (
SELECT SUM(SalesOrders) AS TotalOrders
FROM Reporting.FGMonthlyRiskSales mrs
WHERE mrs.ItemID =...
April 5, 2025 at 9:40 pm
When you define your CTE, you have to specify the column names...
WITH cteExample (FirstName, LastName, IDNo)
AS
(
SELECT fName, LName, NotMySSN
FROM tableX
)
SELECT FirstName, LastName
FROM cteExample
WHERE IDNo > 10;
If you...
April 1, 2025 at 4:45 pm
Use SUM() instead of ROW_NUMBER()?
March 26, 2025 at 4:25 pm
You don't have anybody building databases in Access do you? That's where I'd look. My guess is that someone has permissions on your Master Data Services instance that he shouldn't....
March 17, 2025 at 10:38 pm
the sp_foreachdb part?
March 17, 2025 at 1:59 am
This may give you an idea... I dumped the result of the query into a temporary table. (Not sure how to parameterize the object name, for some reason.)
March 16, 2025 at 7:37 pm
This may give you an idea... I dumped the result of the query into a temporary table. (Not sure how to parameterize the object name, for some reason.)
March 16, 2025 at 7:37 pm
Oh riiiiiiight! (silly me!) ... RedGate has such a tool. (It's a good thing that nobody that works for Red Gate is on here... you know, like Grant or Steve!)
A...
March 13, 2025 at 3:59 am
Welcome! Getting a useful answer can be tricky. So Jeff Moden wrote a great article that explains how to ask a question in such a way that it gets answered....
February 27, 2025 at 5:51 pm
Viewing 15 posts - 46 through 60 (of 3,482 total)