« first day (1688 days earlier)      last day (3179 days later) » 
00:00 - 23:0023:00 - 00:00

12:05 AM
@jcolebrand Er, where does 2012+ come into it? All those methods work in 2008, so long as it is patched up to date. CASE with OPTION (RECOMPILE) and dynamic SQL are the go-to solutions here, as Erland also concludes.
@jcolebrand I need to keep active at my age :)
 
@PaulWhite because there may be a better solution for 2012+
I just hate being told "well why aren't you on XXXX" when I'm not my clients making those purchasing decisions
 
@jcolebrand Ah, I see. No, not that I'm aware of.
 
someone else figures that out, it's my job to fix it :p
@PaulWhite 29 right?
That's what the gym is for :p
 
Yeah, 29. Give or take a few months :)
 
hehe
So, in order to evaluate what exactly my clauses look like, I had to use Excel to do analysis ...
that's how bad the original code was
complete and utter spaghetti
 
12:10 AM
Goodness me. Is it a very large dataset, very complex conditions, or just poor code?
 
poor code
the way the story was told to me was thus
someone wrote the requirements in C# that was processed through NHibernate, then ran sql profiler on the activity and grabbed the query that was being processed, slapped a recompile on the end, and called it a stored procedure
when I get done it's going to be maintainable who would've thought ...
 
@jcolebrand Sounds like a DailyWTF article!
 
What's more, I want to see if I can rewrite the whole thing in one night, make it infinitely more performant, and possibly get this deployed to prod ahead of expectation ... so I'm gonna give it another hour of boilerplate writing tonight :D
I'm actually rather close to being done with it aside from this one block of carp
holy crap, I've gone and discovered a condition that isn't even covered in the TSQL that should be
imagine had it been written the decent way to begin with
 
12:29 AM
There's a lot of satisfaction to be had in rewriting something awful to be a shining example of goodness.
 
well, for values of shining example of goodness lol
this isn't much better
how the hell are there at least three unaccounted for cases? There's not even a "default"
 
Because people.
 
yeah, well
now to rewrite the where clause now that the orderby is done
dynamic where clauses are still a thing right?
@PaulWhite seems you would know this .. is there a better way for someone to have written this as part of an order-by
 DATEPART(YEAR, t.CreateDate) desc , DATEPART(MONTH, t.CreateDate) desc , DATEPART(DAY, t.CreateDate) desc , DATEPART(YEAR, t.PostingDate) desc , DATEPART(MONTH, t.PostingDate) desc , DATEPART(DAY, t.PostingDate) desc
seems like a cast (that I can do at a lower level if need be) would fix this problem, no?
 
@jcolebrand In much the same way, yes. Suitable constructs with a recompile, or dynamic SQL. Erland again
 
@PaulWhite dynamic sql, but my point is
wouldn't a cast on the underlying data be sufficient?
or would it be better to run these functions inline?
 
12:37 AM
I was replying directly to the "written this as part of an order-by" remark. Response to the code is in progress :)
@jcolebrand Yes. CAST(t.CreateDate AS date) DESC, CAST(t.PostingDate AS date) DESC;
 
@PaulWhite that should be faster than the crap they have going on right?
 
@jcolebrand "Inline"?
 
hold please
 
@jcolebrand Perhaps. Certainly more readable.
 
and try not to have an aneurism when I give this paste
 
12:39 AM
(my wife is also talking to me)
 
                                    CASE WHEN (@OrderBy = 'EffectiveDate') AND @Descending = 0 THEN DATEPART(YEAR, t.EffectiveDate) END ASC,
                                    CASE WHEN (@OrderBy = 'EffectiveDate') AND @Descending = 1 THEN DATEPART(YEAR, t.EffectiveDate) END DESC,
                                    CASE WHEN (@OrderBy = 'EffectiveDate') AND @Descending = 0 THEN DATEPART(MONTH, t.EffectiveDate) END ASC,
                                    CASE WHEN (@OrderBy = 'EffectiveDate') AND @Descending = 1 THEN DATEPART(MONTH, t.EffectiveDate) END DESC,
@PaulWhite understood
Note that I'm rewriting the pile of garbage that was the above into dynamic sql, and I can either give the string of dateparts or a cast, makes no big difference to me. I suppose there's always the option of "do both, test, see which is better"
 
The CAST looks like the author might have had clue #1 about T-SQL :) But yes, test.
 
@PaulWhite wait wait, what? the cast is my imposition, not theirs
are you saying if I wrote it with a CAST that it might look like someone knew what they were doing? :p
I'll take that
 
Exactly, you'd be that author.
 
right
because I assure you this code is a real work of art lol
 
12:44 AM
Sorry that was ambiguously worded. Blame Amanda.
 
The wife?
I would never blame Amanda!
 
I have no doubt. You should probably print it and frame it for the pool room.
 
heh
 
Huh. My CW answer was migrated and is no longer CW!
@jcolebrand Is that expected behaviour?
 
I think that's
@TimStone thoughts?
 
12:47 AM
Yikes!
 
Seems likely
 
2
A: Migrated CW question no longer community wiki?

Rebecca ChernoffCorrect - community wiki is stripped during migration. Normal rules on the destination site apply, so the question may get auto-converted to CW again - however these checks are done when a new answer is submitted.

 
thought so
 
Well there you go. I did not know that.
OT: It's weird when people flag as VLQ but don't downvote.
 
@PaulWhite sweep sweep
See if you can come up with messaging that makes sense to the bulk of our flaggers
 
12:53 AM
@jcolebrand ?
 
Feel free to send mod mail too ;-)
@PaulWhite I meant being a janitor for the site, seeing the background noise
 
@jcolebrand Ah yeah, right.
 
This is what we see every time we open a mod panel lol
come on folks, surely you can just vote as well
 
Absolutely. Re: the VLQ description:
12
A: Let's justify the usefulness of the "very low quality" flag on answers

George StockerOne of the reasons we're so strict about VLQ is that it's being used for Audits. It's still useful to keep around for answers, but it has a very high threshold (as you point out) it has to meet to being marked 'helpful' by a moderator. Should it be this way? Yes and no. We need a way to alert...

Oh how I love fighting the markdown.
 
1:10 AM
Resorted to an image :)
 
1:22 AM
@PaulWhite back to my insanity
x.RN > (@pageSize * @PageNumber)
or
x.RN between @startCount and @endCount
when doing "get the top X records"
which is your preference
I rather prefer the x.RN between @startCount and @endCount so I don't have to do select top (@pagesize)
 
@jcolebrand Is this all in relation to the monster dynamic search-and-order query?
 
yes
 
I would generally prefer the TOP for the best chance of avoiding numbering the whole set when you only want one page. The optimizer can often infer this from the BETWEEN and introduce a Top in the execution plan, but not always. Test it to see.
 
ok, I wasn't sure which way was the optimizer injecting, and I was pretty sure it preferred the top
I'll just use it, I've already written it that way
 
It might not make any difference in your plans depending on whether a sort is always required. It always depends, I'm afraid, but Top as a starting point. OFFSET in 2012+
 
1:28 AM
right
once again I have to support at least 2008
 
Yes. I threw that in to make your reference to versions earlier relevant :)
LOL
 
holy crap I think I pulled it off in about 5 hours
Now to test it with the QA team
 
Yay!
Off out to get coffee.
 
later
I'm packing up so I can go walk my dog (she got walked at noon, so that's not too bad) and leave this for testing tomorrow, that should only recommend around 6 hours of my time I'm sure lol
 
 
4 hours later…
5:51 AM
PSA: Please vote on questions. That is all.
4
 
6:03 AM
I will probably never understand what voting on questions has to do with prostate-specific antigens, but fine ;)
 
6:31 AM
Ha ha.
 
morning
anybody care to remove this one?
 
morning
 
@TomV I wish I could. As it is, the tag will be auto-burninated after 6 months if no one uses it.
 
"If you use this, you must donate $1 to someone more intelligent than you."
 
Nice.
 
6:37 AM
huh, that really exists
 
It's not web webscale. It's CLOUD SCALE.
 
99
Q: Moderators should be able to remove / burninate a tag themselves

slhckWe're doing some spring cleaning on Super User, which involves disambiguating tags, merging them, creating synonyms etc. However, one of the most troublesome things is removing a tag. Often, it's easy enough to agree that a tag should be burninated completely, possibly even blacklisted. But the...

 
@PaulWhite ah nice, thanks
 
7:03 AM
Snazzy.
 
7:22 AM
@TomV Perfect. Except it should have been NAA rather than VLQ :)
 
I meant to click NAA
If I flagged it VLQ then it was by accident
 
@TomV Actually you did, sorry! I saw it first in the VLQ review queue. NAA goes there for 15 minutes before becoming a real mod flag. Apologies.
 
 
1 hour later…
8:32 AM
@MikaelEriksson Is a 'broduct' what brogrammers create?
 
8:46 AM
Why some novices cannot answer comments?
I find it very common. If I ask something in a comment they may answer.
If I ask 2 or more things, I usually get a response on only one of them.
 
@JamesLupolt haha, I'm starting to doubt that mangodb is the answer ...
 
@ypercube Yes it is odd. By the way your comment here notified me as the owner of the answer, but I'm not sure 'cnbwd' will get notified for it. You might need an @?
 
9:02 AM
A vote on my SO answer brought this to my attention:
3
A: How to continue cursor loop even error occured in the loop

user3310306Try This:- DECLARE @intFlag INT SET @intFlag = 0 WHILE (@intFlag <=5) BEGIN begin Try if @intFlag = 3 begin SET @intFlag = @intFlag + 'A' End Else begin PRINT @intFlag end End Try Begin Catch --print 'Error...

Three votes on something that seems hardly relevant. Very suspicious.
Someone setting up a sock puppet perhaps?
 
@PaulWhite Yes, thank you. I copied the comment in the question but forgot to remove it from the answer.
 
Or I'm missing something (always a possibility)
 
@ypercube The problem is, that won't notify him either. It's all a bit unfortunate, but the OP was an unregistered account on dba.se. When it was migrated, he commented (presumably the same person, anyway) under a different account.
 
Ah, I hadn't noticed that. Are the comments on the answer by the different account?
 
@ypercube Yes, 'cnbwd'. I can't tell if it is the same user or not.
@AndriyM You might be right, it's hard to know. The SO mods have good tools and automation to detect sockpuppets.
 
9:09 AM
@PaulWhite you'll get a few more notifications ;)
 
@ypercube That's fine :)
@ypercube BTW I would have suggested merging accounts, but the original account had no account on SO, so there's nothing to merge with. I'm trying to get some help on this elsewhere, but the current consensus is that it is very hard to do.
i.e. it would probably need a Community Manager or Dev. They're busy people though, so it might not be worth getting them involved.
 
ah ok then
 
2
Q: Strange things happen when questions are migrated

Jeffrey LinRecently, a question from SuperUser was migrated to Arqade. The user that posted the question, however, was unregistered and did not have an Arqade account. As a result, some strange things happened. First, look at the picture. See anything missing? Second, when you open the question to look at ...

It's been discussed a few times on meta. Some mods decline to migrate questions from unregistered users for this reason, but then it's not always mods doing the migrating. Besides, if a question belongs elsewhere, my view is it should go. It might get an answer, which it surely won't on the off-topic site.
 
But I see a point in refusing the migration.
Because who is going to accept an answer?
 
@ypercube No one, but accepting is not that important in the wider scheme of things.
 
9:20 AM
Absence of an accepted answer can still be rectified by having a convincing number of upvotes
On-topicness (and better chance of a good relevant answer) is a priority, the original author still in control of the question – more like a bonus (or a boon, if you like)
 
@AndriyM Exactly!
76
A: Would it be possible to have a "community accepted" feature?

SampsonThe number of up-votes shows the level of acceptance by the community. If the "accepted answer" has no up-votes, but yours has 12, clearly yours is the community-accepted answer :)

 
 
1 hour later…
10:40 AM
hi guys in mongodb how to support multiple timezones?
say every client has his own timezone
i want to group by dates
 
@Lynob I don't think there is anyone with mongo experience in the room.
You should make a question at the site
 
@ypercube will do thanks
 
@Lynob you a chess player?
 
11:17 AM
@ypercube not professional but I'm addicted to it :p
@ye
@ypercube if you want to play some time my username is 0bz on chess.com :p
 
real time or turn based?
I think chess.com has both, right?
 
12:06 PM
-1
Q: Update all table's columns with another table's colums

AhmetMelihBaşbuğI want to update a table's all columns values from another table, but it doesn't work. I get this syntax error: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'FROM silinecek s WHERE frameworkcode I...

Ugh.
 
12:23 PM
@PaulWhite I replaced your educated guess with my idea about the correct syntax
It's miracle's call now, I guess
 
@AndriyM Okidoki thanks :)
It's still a terrible question, even if it gets answered.
Honestly, I probably should have just closed it much earlier. It's not going to add any lasting value to the site.
 
1:21 PM
thanks paul for improving my answer on Ola's scripts not rebuilding an index with a link, I should have done that in the first place, and I hope this is an OK place to thank you, let me know if it isn't or if "thank you"s are just annoying to people :) (if you are busy I could see how they could be noise)
 
@rottengeek Anything goes in this chat room, well almost :) Thanks! I only vaguely remember the question, I'm afraid, but I'm glad you were happy with whatever I did.
 
0
Q: is there a place to request feedback for analysis I've already done on a complex issue

rottengeekI've had a complex issue involving strange wait types, VM ware, deadlocks,existing code and more. I've done in depth analysis and I think I've figured it out based on a ton of research. I'd like to sort of open it up to see if I've missed anything or I'm just plain wrong in my statement regar...

 
Goodness me:
0
Q: Query to get result in Excel file

m409The following query gives me the error Incorrect syntax near 'OUTPUT'. SELECT * FROM dbo.sales ; OUTPUT USING 'Driver=Microsoft Excel Driver (*.xls); DBQ=c:\\test\\sales.xls; READONLY=0' INTO "newSalesData" I know about the Import/Export Wizard and also about using Copy/Copy with Headers...

 
This Master Database guys is psychic or something
 
@rottengeek I see it now:
5
A: Ola Hallengren Index Script not Reindexing

rottengeekAh! It's the image column. [column11] [image] NULL, Online only works on tables without blobs. Guidelines for Performing Online Index Operations

 
2:20 PM
0
A: is there a place to request feedback for analysis I've already done on a complex issue

ypercubeI don't see any problem with posting it as a question at the site. We love complex issues! Depending on how sure you are about your analysis results: if you are not very sure about your findings: one question with two parts (within the question): the problem and your analysis/results. Others ...

@rottengeek ^^
 
2:47 PM
@rottengeek welcome! also --- @Zane is from your area
 
3:04 PM
Don't be giving away my secrets.
 
@ConcernedOfTunbridgeWells what's the status on this?
 
3:26 PM
@ypercube @MarkStorey-Smith can't come and it's getting a bit short notice now.
I didn't get any other feedback. What I think I'll do is push it back a week until after the week with the tube strikes.
Either that or continue with the 28th.
 
@ConcernedOfTunbridgeWells "tube strike" sounds like a mortal kombat finishing move
 
@swasheck Ooo errr. Sounds a bit rude.
 
suppose so
 
I'm amazed this hasn't attracted any close or down votes:
0
Q: Query to group by column and count number of days based on dates

Fabrizio MazzoniSample data: id|location|date 1|TUNDUMA |16/8/2015 2|TUNDUMA |16/8/2015 3|TUNDUMA |17/8/2015 4|TUNDUMA |18/8/2015 5|TUNDUMA |19/8/2015 Is it possible to count the number of consecutive days for TUNDUMA? Something like: TUNDUMA -> 4 days

 
The English have a natural racial ability to take any given spoken phrase and turn it into double entendre.
 
3:35 PM
@PaulWhite that's because now you can unilaterally close it :-)
 
@Lamak Just because I can, doesn't mean I should. Anyway, I was just surprised to encounter it in that state.
 
3:59 PM
@ypercube Re: 30,000 rows per second. I couldn't immediately find a good reference if we are talking about single row inserts by very many connections, but 8 years ago (!) Alberto Ferrari managed 52,600/s with SSIS.
Maybe you were thinking of this question?
 
SELECT COUNT(t.ID) AS TransactionCount
                        FROM   core.Transactions t ,
                               core.Account a ,
                               core.AccountType AS at
why oh why oh why aren't we declaring things
 
@jcolebrand nice cartesian product there
 
why, oh why, are you using old syntax ... and hopefully you didnt include the filters because that's an awesome cartesian
 
there's a where clause
 
@ConcernedOfTunbridgeWells ok. sounds reasonable
 
4:04 PM
original wall time was 900ms using statstics time
gonna see what I can bring it down to, like 12ms
 
@PaulWhite Thnx but it was not on the site. It was a blog post that I thought I had bookmarked.
Probbaly on a different compuetr because I can't find it.
And it might not be 30K, can't remember the exact number.
@jcolebrand are the Account and AccountType used in the query (in the WHERE)?
 
@ypercube yes, sadly
actually, now that you ask that, the accounttype may not be ...
 
so there are filters in both those tables, ok
 
but the account is
wow, it isn't lol
 
If there is no filter, the table can be removed (assuming FKs exist and trusted)
I guess the optimizer may remove them anyway but not sure.
 
4:14 PM
SQL Server Execution Times:
CPU time = 15 ms, elapsed time = 20 ms.
@ypercube well the whole point of this is I'm refactoring to fix things lol
 
@ypercube @jcolebrand ... not sure. we'd have to see the plan.
 
Not really concerned about it lol
I've rewritten it and it is much more maintainable and more readable
who wants to see the ugly pile of shit it was before? :D
ALTER PROCEDURE [core].[GetTransactionCount]
                    @AccountIdentifiers NVARCHAR(MAX) = NULL ,
                    @StartDate DATETIME = NULL ,
                    @EndDate DATETIME = NULL ,
                    @StartCheckNumber BIGINT = NULL ,
                    @EndCheckNumber BIGINT = NULL ,
                    @MinimumAmount DECIMAL(19, 5) = NULL ,
                    @MaximumAmount DECIMAL(19, 5) = NULL ,
					@IncludeZeroAmountTransactions BIT = 0,
                    @Debit BIT = NULL ,
I'm not sharing my new version because like all of you I have a soul and I don't want it lambasted :p
 
all those @parameter IS NULL OR column = @parameter can really make a toll on performance
 
@jcolebrand You have OR at.AccountTypeClassID so the tables are used.
But since you tamed the beast, all is well.
 
4:29 PM
I find when I have nullable parameters building the where clause and using sp_executesql tends to result in better performance dba.stackexchange.com/a/74466/2131
 
@billinkc yup, me too
oh, god, I agreed with @billinkc....it feels so wrong
 
@Lamak It has an OPTION (RECOMPILE)
 
@jcolebrand. Shouldn't this:
                                  OR ( @StartCheckNumber IS NOT NULL
                                       AND @EndCheckNumber IS NULL
                                       AND t.CheckNumber = @StartCheckNumber
                                     )
be:
 
@PaulWhite aah, I didn't make it till the end
 
                                  OR ( @StartCheckNumber IS NOT NULL
                                       AND @EndCheckNumber IS NULL
                                       AND t.CheckNumber >= @StartCheckNumber
                                     )
 
4:32 PM
@Lamak I don't blame you :)
 
@jcolebrand Hopefully you've addressed those ABS(t.Amount) >= @MinimumAmount and ABS(t.Amount) <= @MaximumAmount as well
 
Cole has fixed everything, everywhere, at all times, I'm sure.
 
@PaulWhite thanks, I need to read things more carefully before giving my opinion
and specially if that opinion agrees with @billinkc
 
@Lamak OPTION (REREAD)
2
 
@Lamak If agreeing with me is wrong, you don't wanna be right
 
4:35 PM
@billinkc Yeah we discussed that earlier. While you were not here. Coincidentally ;)
 
Damnit
Stupid client with we-want-you-to-work nonsense
 
5:09 PM
-1
A: SSIS - Change the 15th to the 1st of the month

agrotheUse DatePart to extract the Month and Year adding in the day manually. Something like: SELECT * FROM [MarkTSK] WHERE Convert(date, DatePart('yyyy', [MonthlyDt]) + DatePart('mm', [MonthlyDt]) + '01' ) IS NOT NULL (Disclaimer: untested code)

(disclaimer: I down voted)
 
@PaulWhite you worked with adam m. on sp_whoisactive, correct?
 
@swasheck yep
 
@PaulWhite cool. what's his notion of a tempdb allocation, if you know it? is it a page?
 
@swasheck I believe so, yes.
 
fabulous. thanks!
 
6:00 PM
Just found this "gem" looking for something like this, and based on comments this seems like a pretty bad, if not dangerous method of doing that...
-1
A: command or query to ping SQL server

Alexander FedorenkoEXEC sp_configure 'xp_cmdshell', 1 GO RECONFIGURE GO DECLARE @hostname nvarchar(20) = 'your_host', @cmd nvarchar(20) SET @cmd = 'ping ' + @hostname EXEC master.dbo.xp_cmdshell @cmd

 
6:32 PM
@ypercube hell, I did miss that, thanks for the re-read. I would've had a bad query in that case lol
@ypercube in this case, the deal is there isn't a "@exactCheckNumber" so that's what this is intended to do
 
7:12 PM
Hey
any tips on books/training on vmware performance/configuration and storage performance/configuration, preferably with a SQL server twist?
 
crickets
 
can't ask that on main site I guess as "too broad" and "opinion based"
and a face to face training with brent ozar would cost massive $$ :)
 
There must be a suitable SE site...?
 
@TomV David Klee - Heraflux consulting
 
Ah @billinkc.SE
 
7:16 PM
Don't forget to register
 
@PaulWhite problem is, I don't have the basics yet and I don't have a specific problem, so asking specific questions is a bit hard
 
Imma close you as off topic
 
Still need 4 more votes
Lord knows the denizens wouldn't elect you mod there
 
Truth
 
I was thinking amazon.co.uk/… and amazon.co.uk/… but maybe there is better stuff around
 
7:19 PM
Buy every VMware book on Amazon. Still cheaper than Brent :)
3
 
Might also look at your local community - sites like meetup.com may reveal user groups that cover such things
 
I'll shut up now </unhelpful>
 
@billinkc you're clearly not in .be
 
Somebody had their bowl of SassyOs this morning
 
closest I get is going to .nl for a SQLSat, which means 2 overnight stays just to see @AaronBertrand
:p
 
7:21 PM
I'm sure there's plenty going on in berlin
:P
 
a city trip to berlin could pay for 2 days of consulting by Aaron while he's in the "neighborhood"
 
Let me play the dumb 'merican
 
Yes that should stretch your acting skills
2
 
@PaulWhite acting?
 
@PaulWhite maybe but I still need to study the new dynamics books too for vnext and time isn't unlimited unfortunately
 
Ha ha yes sorry. Not sorry.
 
(I know, I could be doing something useful instead of hanging around with you guys but hey)
 
We are very educational. Just not in anything you'll ever need to know.
 
did he....did he call us useless?
 
I think so!
 
7:27 PM
:D :D
 
I mean....it wasn't only @billinkc that was talking
 
I know I've talked with/followed more people in Belgium than twitter.com/chrissie1 but that's the only one I can find so far.
 
@billinkc there is also hugo kornelis
but I'm a SQL newbie compared to those guys
 
But they might have some local references that might help you out.
 
curriculum: .NET dev > dynamics allrounder (dev/sysadmin) > dynamics BI consultant > guy they throw all the stability and performance issues at
there's a downside to saying yes to every technical challenge
 
7:38 PM
I stop at a "weird" sounding name in my twitter list: Nope -> Norway/Netherlands/Sweden/Holland etc. They're close, ish :P
 
@billinkc ha ha
old bill jokes, not sure if the old applies to bill or the jokes :D
j/k
 
If I knew anything about Belgium, I'd use it to insult you.
Oh wait, Belgium is a province of France, right?
(that work?)
 
If you knew anything about belgium you'd have plenty of opportunity to insult me
 
I'm the Jon Snow of The Heap: I know nothing
 
but I'm not easily offended
 
7:44 PM
@TomV You suck.
 
Please vtc
-1
Q: Transfer bigtable from one vertica schema to another using python

Amir NepaliI have to transfer table 'USERS001' from schema SOURCE to schema DESTINATION. Table 'USERS001' contains 3 million entries. I want to use python script to transfer data in chunks. what is the procedure and python script to do this ?

 
ty. need 1 more
@Lamak did you vote?
 
yup
 
thanks man
 
7:57 PM
no problem dude
 
how's the greatest country on earth?
 
I wouldn't really know
 
anyway, thanks for being such a great help. Talk to you later :)
 
you're welcome
@Lamak i wouldn't know either
 
apparently it's true that we know nothing
 
8:03 PM
I really wouldn't know
 
8:16 PM
@AaronBertrand kinda doing a crummy job of explaining myself. my understanding is that the optimizer does use incremental stats, but only at the fully merged level. i suppose the benefit of incremental stats is that you can get a higher sample rate on your stats if you can break up the sampling work into different chunks. maybe get a better plan? regardless ... it's an incomplete implementation for sure
 
8:34 PM
"Works as designed"
 
right --- but inadequate by design
 
If you say so.
 
not me. beaker and stellato :)
i'm on the fence
 
They're just grumpy bunnies.
 
@PaulWhite heh. do you know of any magical trace flags that help pull the curtains back on the process of stats updates?
 
8:38 PM
SQL Server could print free money and someone would still complain about the exchange rate.
 
Probably the Chinese
 
@swasheck For incremental stats? No just the one I told you before.
 
@PaulWhite in general ... but thanks.
 
That was 2309 I think.
8721 shows stuff when AUTOSTATS runs
Nothing else springs to mind.
 
right ... i've used 2309 in the past (for exploration ... not production :)
thanks. never hurts to ask
 
8:53 PM
There might be others - it's not an area I've explored much.
 
I did not get unicorn points. My children will be so disappointed
 
@billinkc Did you know the answer?
 
Please, I always know the answer
Whether it's correct is another matter
 
You should post it. If there are any fewer than 11 herbs & spices in your answer ... no unicoins.
 
Your mastery of pop culture never ceases to amaze me
 
9:07 PM
4
A: User-shared queries: Dynamic SQL vs. SQLCMD

srutzkyJust to get these out of the way: Technically speaking, both of these options are "dynamic" / ad hoc queries that are not parsed / validated until they are submitted. And both are susceptible to SQL Injection since they are not parameterized (though with the SQLCMD scripts, if you are passing i...

^^ If you got votes to spare
 
@billinkc they're disappointed in you for many other reasons
 
ReasonsForDisappointmentInDad++;
 
@Phrancis I'm only voting for that if Solomon managed to post fewer than 1,000 words.
Huh. That's pretty brief for him :)
 
lol
 
I'm out of votes for the day, but I'll try to remember in 2 hours.
Some VtC Duplicates needed here:
3
Q: How to increment field value count using MySQL

user71959I have a student attendance table. Fields/data sample id | studid | smonth | syear | total_p | total_a 1 | 20 | 08 | 2015 | 1 | 0 2 | 21 | 08 | 2015 | 0 | 1 3 | 22 | 08 | 2015 | 1 | 0 Those are the first entered values. Then I again enter ...

And here:
0
Q: how to increment field value count using laravel-4

cnbwdI have a table student attendance. Fields/data sample id | studid | smonth | syear | total_p | total_a 1 | 20 | 08 | 2015 | 1 | 0 2 | 21 | 08 | 2015 | 0 | 1 3 | 22 | 08 | 2015 | 1 | 0 this is the list entered values. then I am again enter ...

 
Thanks.
Both are duplicates of a third one btw
 
i give and i give and i give
 
 
1 hour later…
10:48 PM
Stack Overflow currently has 9,999,258 questions.
 
@PaulWhite i give it about 5,000,000
 
Probably 1,000 questions 10,000 times.
 
i wish i had the storage available to add stackoverflow to my demo database
 
I wish it weren't such a pig to download. I looked at the instructions once.
Once.
 
@PaulWhite i have the scripts to take care of it ... well ... except for the "xml document is >2gb so t-sql cant parse it for some reason"
 
10:59 PM
Oh yes that was it. It's an XML file will some dodgy parser that isn't maintained.
 
00:00 - 23:0023:00 - 00:00

« first day (1688 days earlier)      last day (3179 days later) »