« first day (2222 days earlier)      last day (2661 days later) » 

1:39 AM
@ypercubeᵀᴹ Usually, the editions are bug fixes. ;) +@EvanCarroll
 
My code is born without bugs -- perfect in every way. And only gets better with time.
 
 
3 hours later…
4:26 AM
shittt
Just answered a question from 2014 and got it chosen. dba.stackexchange.com/q/78568/2639
I win
 
 
3 hours later…
7:00 AM
I don't usually talk about shit that's DBA-material, but this is one of my fav essays about Morality and it's pretty relevant right now. If anyone wants to read it. marxists.org/archive/trotsky/1938/morals/morals.htm
 
7:56 AM
Morning
 
Yes, it is
Good morning
 
 
1 hour later…
9:14 AM
guten Morgen
 
9:27 AM
Recruiters are hilarious. I don't think there's an Oracle DBA on the planet that would get out of bed for £35k.
2
 
@Philᵀᴹ possibly not even PostgreSQL DBAs (with more than a day of experience)
 
9:44 AM
@Philᵀᴹ You can see crap like that on Jobserve on a semi-regular basis. The recruiters know they don't have any hope of placing someone competent but they're obliged to go through the motions.
 
10:18 AM
@Philᵀᴹ Maybe there are some gitlab DBAs who are a) looking for new job right now and b) might have to lower their pay expectations ...
5
 
 
1 hour later…
11:32 AM
@wBob I think the problem gitlab had was the fact that they weren't actually DBAs. Devops is dangerous in the wrong hands
 
 
3 hours later…
2:02 PM
I've never seen the chat part of SE before. So, hello.
 
hello
 
hi
 
Welcome
 
2:25 PM
hola
 
Hi @Cody
Good to have you in here — we sometimes talk about on-topic stuff like what to throw close-votes at so the room does serve a purpose :)
I noticed you are very near 3k on the main site which is what you need to cast those
 
2:55 PM
And around Christmas we have a hat frenzy ;-)
Hi BTW
 
3:29 PM
@CodyKonior Hello
 
hello
 
4:11 PM
@CodyKonior hello!
 
 
1 hour later…
5:18 PM
hello!
 
5:30 PM
Hello one and all and all for one
 
:)
I'm having issues with getting SSRS to acknowledge an AD group's permissions.. the group members can run queries from Excel, but can't run SSRS reports even though I've set up their role in report manager. anyone has a clue?
 
"can't run SSRS reports" how so?
They navigate to the SSRS manager and can't see the reports, can see but can't run. Run but get no data. Not the data associated to their account?
SharePoint integrated mode or classic for the SSRS
 
can see but can't run, they get a message about insufficient permissions
native mode, no sharepoint :)
 
Excellent. How is the report data source defined? Does it use pass through authentication or something else? If pass through, does it work for anyone else to this database (so we can eliminate kerberos)?
There are useful views in the report server itself that help with some of this. The rest is going to be error logs on the server hosting the RS process
 
I have a shared data source that uses a specific SQL user account's credentials
hmm
looking at the logs
 
5:40 PM
Hello to all!
 
hi!
ah, got the AccessDeniedException. says the domain user (not the group?) has insufficient permissions, exception occurred in a shared dataset.
in SSMS the group has explicit SELECT and EXECUTE permissions in everything in the schema the shared dataset is pulling from
 
5:55 PM
@Mat'sMug verify you are not in a kerberos double hop scenario
 
I wish I knew what that means
 
On mobile but I think it logs a attempt for the anonymous account in the server logs
 
can't find "NT AUTHORITY\ANONYMOUS LOGON" anywhere in the SSRS logs, I suppose that's a good sign?
 
sqlbadboy.wordpress.com/2013/10/11/the-kerberos-double-hop-problem/amp/?client=m‌​s-android-google
Probably
 
@Mat'sMug Just out of curiosity, what drink do you contain?
 
6:01 PM
haha coffee, always :)
 
6:16 PM
@Mat'sMug oh oh @billinkc was just being helpful
@CodyKonior I see you do stand up comedy. Some jokes need lengthy explanations in here
 
6:38 PM
Anyone else going to SQLbits?
 
0
A: Is pg_trigger_depth() bad to use for preventing trigger cascading (recursion)?

Evan CarrollYes, it's always bad to make make behavior dependent on pg_trigger_depth() Maybe I'm a little less averse to blanket statements, but what good could it do? There is no argument I can see as to why you would want such a feature. The primary purpose of a database is to ensure data integrity. And a...

 
@EvanCarroll I agree with both of you :)
 
I'll never steal a chosen-answer from Erwin. I'm pretty much of that mindset anyway. I just disagree with him here.
It's probably the first answer of his that I didn't upvote.
 
He says "It is not bad to use per se (IMHO). You just need to be aware of implications." — that is true, but the problem is that most folk visiting this site from Google need more of a nudge towards "If your trigger system is this complex. I think you're playing hot potato with a hand grenade in a closet all by yourself, and it doesn't seem likely to end well".
I'm not convinced the question should remain open though — it looks 'primarily opinion based' to me.
 
In the sense that all questions are primarily opinion based and everything can be done a different way, I suppose.
That's always been the most foreign reason for closing a question, to me.
If I ask "How do I accomplish X?" And, someone accomplishes X, I can chose it. If I get two answers, I get to pick whichever one I like.

If I ask about the drawbacks of X -- it's opinion based.
 
6:52 PM
@EvanCarroll yeah
but sometimes there are two or more technically good solutions and some or all are useful to everyone so the question is still good. In other cases the real answer is just 'it depends' and that's not really useful to anyone (and might be downright misleading to some, which is why the question is bad
 
7:10 PM
I'm confused at what answers could not be done an equally valid way and not also be "it depends."
 
7:56 PM
@EvanCarroll the close reason is not "opinion based", it's "primarily opinion based". To me, this indicates the question will be more about opinions than facts. But, yes, there is usually more than one way to skin a cat.
 
8:14 PM
There is always more than one way to skin a cat, and it always comes down to the opinions of the person submitting the answer, judgement of the community, and the opinion of the person who asked the question. "Primarily" doesn't give that one any footing.
 
@EvanCarroll what community do you belong to that you need to skin cats?
 
Feline Body Dysmorphic Disorder Association of America, or FBDDAA as us regulars like to call it.
 
sounds fun
 
8:43 PM
okay, progress - I've changed my shared data source to use Windows Authentication and redeployed; if I restrict access to the [DataSources] folder everything works for "normal users", but if I restrict access to the [Datasets] folder then users can't run the report. I'm kinda flabbergasted that I need to allow users to delete shared datasets from SSRS, so that they can run a report that uses a shared dataset.
it's like the datasets folder is ignoring that "normal users" only have Browser+MyReports roles there
 
They shouldn't have to have update permissions for the datasets folder, just access
and then you can set the visibility of that to not listed
Something like that
 
yeah I can hide it in the tile view, but then they can still see it (and modify it! and DELETE it!) in the detail view... which doesn't make any sense
 
@billinkc hey, so, I assume that you'll be an speaker to the next SQL Saturday Chile
to practice your spanish
 
@EvanCarroll I think it does, @Max is exactly right. It is not whether an answer contains (or is) opinion, it's whether the question primarily solicits opinion — a lot of questions solicit testable solutions, and yes, sometimes there is more than one testable solution. This is all perfectly obvious to people familiar with SE — and I think you know it too.
 
@Lamak No necesito a practicar hablo espanol. Me gusta!
2
 
8:55 PM
@billinkc I see
@billinkc yeah, no need at all
 
We were discussing what a mouthful entretenimiento was this morning
 
how is @billinkc's Inc going?
 
@EvanCarroll So, does this "come down to the opinions of the person submitting the answer" ?
 
It's good. I would not however recommend starting a new business at the end of a year. I paid a few hundred bucks for LegalZoom to get all the paperwork filed and they did. Sort of. Except for all this taxation stuff
 
@billinkc ah, yeah, US taxes sound complicated
 
8:59 PM
It can take up to 50 days for Missouri to issue you credentials to electronically file your quarterly taxes.
Rule #1, don't make it hard for people to give you money
Don't care what business you're in
 
@billinkc yikes
@billinkc you know what your company needs to get well known?....to sponsor SQL Saturday Santiago
 
9:15 PM
That is a horrible question Max.
Not just is it horrible. All of the answers are wrong.
Actually, I take that back. GBN is right.
I can't see AMtwo's answer i guess he deleted it. That quote is also right.
 
9:37 PM
Bah. I'm not answering this I'll be here all day. Suffice to say this question be closed because it's badly formed. The title calls for 36 columns, the question itself shows 4. There seems to be 4 million rows. It could depend on all sorts of factors. And you not having made the answer specific to an implementation makes it even more complex. The maximum columns covered in a composite index from Microsoft are 16 prior to SQL Server 2016.
@MaxVernon I don't use Microsoft, my assumption is the right-most answer involves an index predicate WHERE a=0,b=0,c=0,d=0,e=0..z=0. Or, an index over a computed column (or however Microsoft implements their functional-index hack))
Calls for 26*
If you make an index over a WHERE b=0 AND b=0 AND c=0...z=0. I assume a SELECT * FROM foo WHERE a=0 AND b=0 AND b=0 AND c=0...z=0. will use the index and that it'll be the fastest.
 
9:52 PM
@EvanCarroll I think you're missing the point entirely. The question asks "I have a WHERE clause such as a=0 and b=0 and ... z=0, Would I gain any performance if I replaced that condition with a+b+...+z=0?" and then goes on to point out how the OP tested it, and his supposition that the addition variant is faster. That is provably incorrect, as demonstrated. I brought that question up because you were saying that every answer comes down to opinion, however that is clearly, demonstrably false.
Anyway, if you think you can answer the question, either do or do not. It matters not to me if you think my answer is correct or incorrect. It has 47 up-votes, and only a single down-vote, which I think speaks for itself.
Also, per your comment on row counts, my answer is based on a table with 260 million rows.
Perhaps, if there were several billion rows it might make a subtle difference, but I can't see how.
Or are you implying that it might make a difference if there were only 3 rows?
 
The downvote doesn't come from me, just fyi. I just think your reading of the question and his presentation leaves plenty of area for opinion. For instance, we don't know what he did even never mind his criteria. He claims it was faster? Was it.. I'm unconvinced he's wrong without clarification. Could it have been faster? That would be an implementation detail either way.
less rows may make a difference.
It's a function of the selectivity of the index, if we're presuming an index speed up. Fewer rows, or less selectivity can amplify the cost of index lookup.
 
@EvanCarroll I know that (the downvote).
 
If we're going with 0 indexes exist. As is in the question we're doing a sequential scan anyway. And then the question is just how does MS SQL impliment cola+colb, vs cola=0 AND colb=0.
 
the best index would of course be (id) INCLUDE (all_the_other_columns) WHERE (a=0 AND b=0 ...)
 
@EvanCarroll clearly. Again, the point is answers to the question would not be opinion-based. There is a correct answer and an incorrect answer. The correct answer to the question, as asked is "no, it's not faster to use addition vs discrete columns". It's not opinion, it's demonstrated fact. Even if my answer is wrong, it can be proven either way, and therefore the question is not opinion-based.
@ypercubeᵀᴹ agreed, of course. But then you can (almost) always create an index that will answer the exact question highly efficiently.
 
10:06 PM
Yeah, just saying. The question was about what happens when there are no indexes.
 
what that does to the rest of the workload is an entire subject by itself.
@ypercubeᵀᴹ yep. It's actually a very well defined question; hence the boatload of upvotes it received.
 
Just remembered an article I read last month, abut a company that uses some thousands of filtered indexes in their project
 
I'm inclined to agree to some degree but this is your reading of his problem in a theoretical and abstract way which is actually irrelevant to the real world, likely an x-y problem, entirely dependent on implementation, and formulated with insufficient details to make an answer useful to him or others. You've shown us something. For which version of MS SQL I'm unsure of, but I'm also not convinced it's what he wanted, or relevant to what he was asking.
 
@ypercubeᵀᴹ wow. I wonder what the impact is like on plan compile-times
@EvanCarroll you're right, I'm clearly an idiot. Thanks for so thoroughly proving me wrong. :-)
 
I'm not saying any of that is out of the blue or wrong. It's just how DBA.SE goes, but I don't think this question is much better better than any others because you've managed to read it literally, fill in the gaps, and answer in a way that you feel is objective.
 
10:08 PM
no sorry. 10 million filtered indexes
 
@ypercubeᵀᴹ come on, really?
 
Postgres, not SQL Server
Nov 11 '16 at 17:04, by ypercubeᵀᴹ
Hey, they stole our name! {Heap Analytics](http://blog.heapanalytics.com/how-heap-works-part-1-10-million-indexe‌​s-and-counting/)
Nov 11 '16 at 17:04, by ypercubeᵀᴹ
And wow, 10 million partial indexes in a cluster...
 
I've been meaning to play with Bloom on PG. I'll to refine his question into PostgreSQL and self-answer it with some data on different ways to do this.
As far as 9.6 goes anyway.
 

« first day (2222 days earlier)      last day (2661 days later) »