
Mom of 3 kids, wife of @mkizer, SQL Server DBA, Senior Consultant at Straight Path Solutions
San Diego, CA, USA
Joined October 2008
- Tweets1K
- Following187
- Followers773
- Likes56
Query Store goes into read-only mode 2 hours after it is turned on. Tens of thousands of same adhocs. Playing around with 2019 custom capture policy but wondering about Forced Parameterization. Does Forced Parameterization help QS collection for adhocs? #sqlhelp 1/2
1
265
Query Store not collecting data after AG failover. No errors, just no data. Have turned QS off/on, increased size, etc. Nothing. Next up is failback but needs business approval. 2017 latest build. Any ideas on fix?
#sqlhelp
Weird perf issue w/ nearly all waiting time on SLEEP_TASK, causing query timeouts. No hash spills. This is on AG readable replica. Can't reproduce long duration in SSMS even with ARITHABORT=OFF, same plan as app though. Is it possible SLEEP_TASK could be waiting on app? #sqlhelp
2
308
1/2 Are JSON_VALUE, ISJSON or JSON_QUERY functions implemented through CLR? We have missing logical reads and time in the STATS IO,TIME output. No UDFs at all. Lots of JSON functions though. #sqlhelp
1
1
2/2 First exec took 10 seconds (6s CPU time) with 4k reads. Duration in STATS output shows 400ms. XE shows 128k reads. Subsequent calls are 100ms. Thinking it's CLR being loaded for that slow call since STATS IO,TIME is very skewed as compared to actual values from XE. #sqlhelp
1
1
Query Store - forced plans across 20 similar queries. Today SQL picks diff plan for these queries - severe degradation. Freeproccache allows forced plan to work again. GENERAL_FAILURE/error 8695 are shown in forced plan report. Any idea why forced plan would be ignored? #sqlhelp
3
5
Is there an extra step needed to free up space in Query Store? App has parameterization issues (though they are prepared stmts) --> bloated QS. 1 query_hash has 30k rows in sys.query_store_query. Query has OPTIMIZE FOR UNKNOWN (sigh). QS still full after 10k deleted. #sqlhelp
2
Help with XE session for long transaction. Not long-running query as query is fast at 1 millisecond (UPDATE filtering on PK row), but transaction is being left open for several minutes. Need to see the parameter values for troubleshooting. #sqlhelp
2/2 Ends up being due to blocking. A long-running SELECT query blocks spid 13 (system process). Killing the SELECT resolves it. SQL 2016 SP2 CU12. Any ideas? #sqlhelp
1
1/2 Twice a month, LOG backup job starts failing on replica. Error is "failed because the last backup LSN from the primary database is greater than the current local redo LSN." #sqlhelp
2 plans in QS: 1 is forced and failing sometimes w/ NO_INDEX, other is identical except for estimates. Same index names and definitions, same operators, no temp tables or table vars. Forced plan can be used sometimes but not others. What does NO_INDEX mean in this case? #sqlhelp
1
1
Tuesday's SQL security update - we've found that if the security update is installed on a service pack (no CU) that you can't later install a CU for that SP. So to install a CU, you have to uninstall the security update. What gives? #sqlhelp
1
1
Index rebuild of 1TB index to add compression. Server is going to be rebooted tomorrow morning and likely index rebuild won't be done in time. ONLINE=ON was used. Lengthy crash recovery or no because of ONLINE=ON? #sqlhelp
Today I worked on 2 emergency prod perf issues. One lasted about 4 hours. Being a consultant, I don't get to do these very often. But I sure do love them IF THEY OCCUR DURING BUSINESS HOURS. I don't miss the ones after-hours.
2
On a server with TF 2312 (new CE) enabled at server level and legacy CE enabled at user db level, which CE wins there? #sqlhelp
1
1
The 2 largest school districts in CA are closing for 3 weeks (SD and LA). Our school district (we are just outside of SD Unified but within SD County) hasn't announced yet. In fact, yesterday they said we aren't closing. I bet they follow SD Unified now.
BREAKING: San Diego Unified School District to close to help prevent the spread of coronavirus cbs8.com/article/news/local/…
1
2
Helping client with migration of 1200 dbs using Log Shipping. Using a shared cloud storage bucket so don't need the copy job to copy files. But the restore doesn't do anything as it's waiting for the copy. Any way to avoid updating the LS tables to fake a copy? #sqlhelp
2
Just to close the loop on this. It's not a problem with the copy job. Unsure of what the issue is, but everything works fine when I setup LS manually. Need to figure out what I'm doing wrong with Invoke-DbaDbLogShipping. #sqlhelp
1
1

