Viewing 15 posts - 226 through 240 (of 2,756 total)
A nice read for a Saturday morning. I remember back when I started in my current department and I thought "one day, I want to be a manager like my...
January 13, 2024 at 6:18 pm
What you could do then is change your SQL to include a TOP(1) and an order by FailDate DESC. Will that solve your issue?
Alternately, make your whole query a subquery...
January 12, 2024 at 9:42 pm
I think the easiest way to help you is if you can:
1- provide sample data so we can run your query and get similar results
2- provide expected output
With point number...
January 12, 2024 at 3:42 pm
In that case, what you are likely more interested in is the page life expectancy. How long are pages estimated to remain in memory:
https://www.sqlshack.com/page-life-expectancy-ple-in-sql-server/
The lower the number, the...
January 11, 2024 at 8:08 pm
I think that your "physical memory in use kb" is the number you are looking for, but even if things aren't running, stuff is in memory. SQL will keep things...
January 11, 2024 at 6:16 pm
Just wanted to point out that rmeldrum indicated in their script that temp tables put the results in memory. This is not accurate. Temp tables are written to tempdb which...
January 11, 2024 at 5:26 pm
My opinion - I wouldn't make changes to the core SSRS files. My reasoning - you make all your changes and make things work exactly how you want and everyone...
January 10, 2024 at 9:08 pm
As a completely random guess, are you renaming the column inside PowerBI at the presentation layer?
As far as I am aware, PowerBI shouldn't be renaming columns on you.
Alternately, any chance...
January 10, 2024 at 8:53 pm
Possibly a dumb question, but if secondary should never become primary, do you even need AG to be set up? Could you set up something like replication instead?
As for having...
January 10, 2024 at 5:07 pm
How is this (performance wise and for what you need):
DECLARE @Histo AS DATE;
SET @Histo = '1900-12-31';
;WITH Customers
AS
(
...
January 9, 2024 at 9:42 pm
I am glad you got it optimized. One thing that MAY also help with your optimization is to change your UNION to a UNION ALL. That will remove an implicit...
January 9, 2024 at 9:14 pm
That is a long run time... so it sounds like it needs some optimizing.
How much data are you working with and where are you presenting the data? If it is...
January 9, 2024 at 8:21 pm
For handling it dynamically, I imagine it would be possible, but dynamic SQL is always risky. Since this would be a "write once and never again" (hopefully), my opinion is...
January 9, 2024 at 7:04 pm
There was some problems with your CTE's for the between_rows data due to the filter on RN=1. That shouldn't be applied on the between_rows set of data (happens higher up...
January 8, 2024 at 10:06 pm
Feel free to ask. In my experience, I haven't needed to use the import functionality before. I've exported when I needed a data dump of all my reports to disk...
January 8, 2024 at 8:15 pm
Viewing 15 posts - 226 through 240 (of 2,756 total)