@Charlieface The other issue is the aggregates used with group by apply (e.g. MIN, MAX, AVG) don't have a WITHIN GROUP order to satisfy, so the replacement plan doesn't account for it. Seems likely STRING_AGG was not intended to work with GbApply, or work would be needed to make it compatible (honouring the sort request).
The most important thing about new SQL Server versions is to play lip service to fixing long-standing issues by breaking 50 other things and ignoring the deeper problems that caused those issues to begin with
@ErikDarling Dem's fightin' words! Personally, I'm delighted to see that with the advent of Brexit, we (in the unoccupied part of Ireland) are gradually reducing our imports from and our exports to Britain (the latter one is good, since their economy is tanking!).
Taxonomy mnemonics are used to memorize the scientific classification applied in taxonomy. They are usually constructed with a series of words that begin with the letters KPCOFGS, corresponding to the initials of the primary taxonomic ranks. Words beginning with D (corresponding to domain) are sometimes added to the beginning of the sequence, and words beginning with S (corresponding to subspecies) are sometimes added at the end of the sequence.
For example:
King Phillip came over for great spaghetti has the first letter of each word corresponding in order to the first letter of the descending...
@SeanGallardy it reminds me of silly things I’ve run into like people installing two instances that share a directory for tempdb so only one can start at a time
@PaulWhite It's certainly true of Stack Overflow. I'm a big fan of banning not only images in first posts which are already banned I believe, but also links to images, which is what most posters ending up doing as a workaround.
@ErikDarling - I'm loading my tables for my tests we were speaking about earlier - eveloper Edition (64-bit) on Linux (Fedora 34 (Xfce)) <X64> - and it's rejecting a file full of statements like INSERT INTO _order (order_id, total_price) VALUES (591200000, 10000000); - rejects with Invalid object name '_order' - but it accepts that very statement when I do it indivdually.
Do I have to put my statements that are in a file into square brackets or something? Anybody with SQL Server knowledge feel free to chime in! TiA!
I don't know - the issue they are reporting sounds like blocking, which I don't think is going to show up, but I think if I just see the SSRS report's activity that they are complaining about, that would be a start.
Hmmm, nothing under the account that all SSRS is supposed to use. But this is IBM's (now Merative's) own configuration of SSRS - I don't normally work a lot with that side, I'll need to check with someone familiar with how they alter our install and configuration.
It looks like they are running all their reports under the account that the OLTP service uses as well, so it's not distinguishable by that. I found the query being run, though.
I'll just need to load it into a table where I can query it properly.
Anyone got any idea if it's possible to read SESSION_CONTEXT values from another session? dm_exec_sessions.context_info only contains the older CONTEXT_INFO values.
In Oracle it is possible from PLSQL to set an attribute (CLIENT_INFO) in the session. This allows it to make the link between the session object and the running package/stored procedure. The package to do this is the DBMS_APPLICATION_INFO package
So executing in the client session:
exec DBMS_APPL...
@HannahVernon No I hadn't, thanks. I guess that sums up what I found also. Curious to know what the XPs do, there is probably a way of getting round it using SQLCLR.