Viewing 15 posts - 2,761 through 2,775 (of 59,067 total)
so how to use cross apply as you write below
The optimizer attempts to SORT 65 million rows after a merge join. Yeeeesh. One way to re-write the query would...
--Jeff Moden
Change is inevitable... Change for the better is not.
September 11, 2022 at 4:47 am
I've found that I really don't need all of that stuff for SQL Server. xp_LoginInfo and sp_validatelogins usually provide what I need. If not, then I go to the Windows...
--Jeff Moden
Change is inevitable... Change for the better is not.
September 10, 2022 at 9:50 pm
Please learn what a table is. First, we need to fix your non-table.
CREATE TABLE Expenses (emp_id CHAR(10) NOT NULL, pay_date DATE NOT NULL, -- read ISO-8601 formats expense_type VARCHAR(30)...
--Jeff Moden
Change is inevitable... Change for the better is not.
September 10, 2022 at 9:09 pm
I suspect a couple of accidental CROSS JOINs is the issue. Please run the following code and post the results.
SELECT f1_AllCount = COUNT(f1.PartId)
...
--Jeff Moden
Change is inevitable... Change for the better is not.
September 10, 2022 at 6:16 pm
Ah... I see what you mean. Guess I'll have to look up how to do a "StaNine" and see if I can make a function or a GP proc for...
--Jeff Moden
Change is inevitable... Change for the better is not.
September 9, 2022 at 9:03 pm
That procedure just calls some individual functions used to get each Stanine.
If you are looking for a formula for determining the bellcurve, we pay for studies to be done...
--Jeff Moden
Change is inevitable... Change for the better is not.
September 9, 2022 at 8:26 pm
It has one big select statement that besides tables also joins one view and one table-valued function. It does not have explicit transaction.
But what I can do about blockings?...
--Jeff Moden
Change is inevitable... Change for the better is not.
September 9, 2022 at 8:13 pm
Thank you Phil for this idea, i will test and let you know if this is working.
It would still be nice to know the need for this particular format. ...
--Jeff Moden
Change is inevitable... Change for the better is not.
September 9, 2022 at 8:08 pm
Excellent !!! Thank you very much!!
Any chance of us getting a peek at your "StaNine" stored procedure?
--Jeff Moden
Change is inevitable... Change for the better is not.
September 9, 2022 at 8:06 pm
It's funny how people rail against duplicates in a randomly selected set... it's a part of what "random" is.
--Jeff Moden
Change is inevitable... Change for the better is not.
September 9, 2022 at 8:02 pm
What’s happening with ASK SSC at the moment, I keep reporting a lot of spam topics but no one is removing them.
Is that site dead now or is Redgate...
--Jeff Moden
Change is inevitable... Change for the better is not.
September 9, 2022 at 8:00 pm
Also, Azure SQL Database is backed up for you. Further, there is no capability for you to do a traditional backup. Instead, you can create what's called a bacpac,...
--Jeff Moden
Change is inevitable... Change for the better is not.
September 9, 2022 at 7:57 pm
Thanks, Johan.
--Jeff Moden
Change is inevitable... Change for the better is not.
September 9, 2022 at 1:47 pm
Thank you for the kind words... it helps MY imposter syndrome. 😀
--Jeff Moden
Change is inevitable... Change for the better is not.
September 9, 2022 at 1:22 pm
Your internet speed is why I'm suggesting a local backup to a different local machine and then have that do the upload to Azure. It keeps SQL Server...
--Jeff Moden
Change is inevitable... Change for the better is not.
September 9, 2022 at 12:14 pm
Viewing 15 posts - 2,761 through 2,775 (of 59,067 total)