Viewing 15 posts - 3,106 through 3,120 (of 59,098 total)
Step 1 would be to query just the view to see if the date range returns anything. Then add a piece of your query for one of the joins and...
--Jeff Moden
Change is inevitable... Change for the better is not.
August 1, 2022 at 6:46 pm
If your system is like mine, the data in the default trace lasts about 6 seconds. 😉
--Jeff Moden
Change is inevitable... Change for the better is not.
August 1, 2022 at 6:33 pm
With the understanding that I've never used Power BI, are you suggesting that Power BI cannot get data directly from SQL Server without having to use a language like Python?
If...
--Jeff Moden
Change is inevitable... Change for the better is not.
August 1, 2022 at 4:55 am
I'm pretty sure that I'd remove the IP address and port from the original post. Just sayin'... you know... Security??? 😉
--Jeff Moden
Change is inevitable... Change for the better is not.
July 31, 2022 at 7:24 pm
I just checked the MS documentation... Here's the link of the document section I'm looking at.
https://docs.microsoft.com/en-us/sql/t-sql/statements/create-trigger-transact-sql#recursive-triggers
It's amazing to me that this is still only a server level option but...
--Jeff Moden
Change is inevitable... Change for the better is not.
July 31, 2022 at 7:10 pm
That other table has a trigger, but no write operations, other than to itself.
Just at a quick glance, I'm thinking the above from your original post is the source...
--Jeff Moden
Change is inevitable... Change for the better is not.
July 31, 2022 at 6:54 pm
The use of COUNT() OVER will make light work of this. It basically does what Phil says... provides a combination of COUNT with GROUP BY. You would use the PARTITION...
--Jeff Moden
Change is inevitable... Change for the better is not.
July 31, 2022 at 6:36 pm
PS... my version of money and happiness...
"Money can't buy happiness, but it can buy you a sailboat big enough that you can sail right up next to it."
Old and...
--Jeff Moden
Change is inevitable... Change for the better is not.
July 31, 2022 at 6:30 pm
Have you already started on this? I'm asking because I see some red flags in some of the posts above but don't want to waste my time advising if...
--Jeff Moden
Change is inevitable... Change for the better is not.
July 31, 2022 at 6:22 pm
Hi,
We have log backup job running daily 5 times. One time run is taking 4-5 times longer than the other runs daily. The backup size is same for all...
--Jeff Moden
Change is inevitable... Change for the better is not.
July 31, 2022 at 6:16 pm
The best way to do this is monthly partitioning using either Partitioned TABLE or Partitioned VIEW technology. Not intending to sound the part of an iconoclast ,...
--Jeff Moden
Change is inevitable... Change for the better is not.
July 31, 2022 at 6:04 pm
I've found that changing datatypes in a Tally function really isn't necessary but that's a personal observation. Implicit conversions usually work just fine here. I've not personally ever run into...
--Jeff Moden
Change is inevitable... Change for the better is not.
July 31, 2022 at 4:34 pm
Thanks, Jonathan.
A long time ago, it used to make quite a difference performance wise. Not so much on singleton big stuff like so many people test with but on the...
--Jeff Moden
Change is inevitable... Change for the better is not.
July 31, 2022 at 4:46 am
Thanks, Scott. I appreciate it.
--Jeff Moden
Change is inevitable... Change for the better is not.
July 31, 2022 at 4:37 am
WHY did you delete your original post? That's not very friendly.
--Jeff Moden
Change is inevitable... Change for the better is not.
July 30, 2022 at 1:58 am
Viewing 15 posts - 3,106 through 3,120 (of 59,098 total)