Comments (4)
After much confusion believing that dynamic SQL was the issue, I found the actual issue is with the population of the #am_pm
table which occurs inside the main database_cursor
. This means once the first database has been processed, duplicate rows are entered in this temp table on the second time around the cursor, and we then get the Subquery returned more than 1 value
error.
from darlingdata.
OOH! That's awesome, thanks for catching it. I was just about to push an improvement for something in HealthParser, so I'll have a fix out for this in the same thing. Refresh in a couple minutes.
from darlingdata.
Yowsers....that was quick! Thanks @erikdarlingdata
Edit: p.s. can confirm this now works perfectly.
from darlingdata.
@tominyorks hahaha, yeah, well, you did all the hard work. I just forgot to add a truncate statement to #am_pm
like I had to for some other tables. I suppose it would have been more obvious if I had a unique constraint or something on it like I do the others.
from darlingdata.
Related Issues (20)
- sp_HealthParser - Pending Tasks threshold
- sp_QuickieStore - Add parameters to search for plan feedback and variants
- sp_PressureDetector - Arithmetic overflow HOT 11
- sp_QuickieStore - add a parameter to ignore all plans for a stored procedure HOT 1
- sp_PressureDetector - deltas HOT 1
- Is this an appropriate way to find all references to a database with sp_QuickieStore? HOT 6
- Running sp_QuickieStore with @get_all_databases = 1 and @escape_brackets = 1 adds extra escapes to the query_text_search string. HOT 3
- My favorite [sp_QuickieStore] is giving an error when used with Azure SQL Database HOT 6
- Running sp_QuickieStore @include_plan_ids = 2, @include_query_ids = 2 seems to fail absolutely everywhere HOT 1
- Question regarding sp_pressure detector sp HOT 5
- sp_QuickieStore: @get_all_databases = 1 and @procedure_name seem incompatible.
- sp_QuickieStore - Ignore disagreeable state when it's a readable secondary HOT 1
- sp_QuickieStore - Bug in determining workdays
- @get_all_databases = 1 vs @get_all_databases = 0 result in different periods of 8 days HOT 3
- sp_HumanEventsBlockViewer limited to Blocked Process Threshold = 5 HOT 3
- sp_QuickieStore -- Add ignore function to query text search HOT 1
- sp_QuickieStore: @get_all_databases = 1 seems to ignore the time part of @start_date and @end_date HOT 1
- sp_QuickieStore: Make it possible to hide the "all done" table.
- sp_QuickieStore: Should the bottom table give datetimes rather than dates? HOT 2
- sp_QuickieStore: Mixing @query_text_search and @query_text_search_not created primary key violations in #query_text_search HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from darlingdata.