i'm willing to bet that op's indexes are only as good as the initial join, so thinking that a non-join where clause that resulted in sep filters would be an interesting plan choice
may happen if you wrote a case for each possible value in the driver table rather than one long case
wv_party_id is nvarchar(100). Welcome to my world of Dynamics CRM online ;-) This is a data lake with tables coming from Dynamics. The person(s) who designed them should be flogged - in other words your typical COTS app. — Saxman8 hours ago
Ah, Dynamics
@gbn It seems like an odd bug to have. Hopefully an easy and quick fix now SSMS is regularly updated.
CACHESTORE_SQLCP Sql Plans takes up > 38 GB after a few days.
We are already running with "optimize for ad hoc workloads" option on. (Entity Framework and custom reporting creates a lot of ad hocs!)
SQL Server 2016 SE 3.00.2164.0.v1 on AWS RDS with multi-AZ mirroring
When I run:
DBCC FRE...
While I've never worked with replication, the question looks to me so far from contrived that I'm sure it's been discussed many times in various forums, probably on DBA.SE as well.
wv_party_id is nvarchar(100). Welcome to my world of Dynamics CRM online ;-) This is a data lake with tables coming from Dynamics. The person(s) who designed them should be flogged - in other words your typical COTS app. — Saxman8 hours ago
The flogging should be extended to whoever wrote or was using the condition where wv_partyid = 343083 without quoting (what should be a) string literal. — ypercubeᵀᴹ43 mins ago
To be honest I'm not sure if the trouble is the 100 tabs. It could be some memory leak, as I usually have it open for hours / days. It seems to behave after restarting it
I run a report in which I have a situation where based on a column value which is basically a Key or Id, I need to fetch corresponding value from the mapping Id table. Something like below:
SELECT
(case when [column1='A'] then (select value from Table1)
when [column1='B'] th...
I'm able to post any question but sometimes unable to add comments to the answers posted and below error message is displayed on the top of the screen.
Database Administrators Stack Exchange requires external JavaScript from another domain, which is blocked or failed to load.
I'm using IE 11.0 ...