« first day (1661 days earlier)      last day (3207 days later) » 

6:24 AM
Good morning
 
hey
 
What's running? :)
 
6:59 AM
good morning
(yes, that is an answer to the question as well)
 
Well, it's great to be running on a good morning ;P
 
@JohnSnow May depend on where to or who from, but in general I would agree :)
 
7:16 AM
Indeed :P
So many if-cases in life
 
10 degrees and rain is not my idea of a good morning #vilketskitväder
 
Well, if it's not a good morning then it's not if (goodMorning) then it's else ;P
I got me a second shower, that wasn't very nice >_>
#himlenbaraöppnadesig
 
7:40 AM
@JohnSnow Where are you?
 
Göteborg
It's not raining now
It - of course - only hell-rained the moment I stepped outside the door to go to the train.
 
Still raining up here (Östersund).
 
I suppose the weather is a little bit more stable up there?
If it's raining for more than 4h here it's a hurricane :P
 
Makes for annoying commutes. If it rains when you leave you're gonna look like a dork carrying your umbrella in the afternoon :P
 
8:07 AM
I sometimes forget my umbrella at work on the day it rained, and have to bring it back on one of the following days, when, of course it's already sunny and there's not even a hint of an impending rain.
But I'm sure I never look like a dork in such cases. If anything, I probably look eccentric, haha
 
We have umbrellas at work that we can borrow :-)
 
I don't understand people with umbrellas ;)
there are so good rain coats around
(the difference is the wind, I mean)
anyhow, good morning
it's sunny here
 
8:28 AM
Well, umbrella was 25kr at IKEA, Raincoat was 1000kr at Gekås :(
And I already have several coats :P
 
 
3 hours later…
11:57 AM
neato
a request came in last week for a failing sql agent job, by now it has escalated to 'no ldf for tempdb', 'The log for database 'msdb' is not available', 'fcb::close-flush: Operating system error (null) encountered.' and the likes
and not a single db available
 
12:17 PM
somebody's been screwing around with the cluster setup/storage
 
12:30 PM
O.O
 
preprod
this should only be going live next week :)
 
Meanwhile at my place: MongoDB, Y U So Unsafe?
 
1:17 PM
MongoDB: 'but im so much faster'
 
Faster at getting hacked :(
 
0
A: Best way to write SQL Query that checks a column for non-NULL value or NULL

Aneesh Mon NUsing coalesce to handle NULL should not have any performance impact. Try this once. SELECT ... FROM ... WHERE a.Blah = @Blah AND coalesce(a.VersionId,-1) = coalesce(@VersionId,-1)

I think the claim is wrong. Any comments?
 
1:33 PM
boom
0
A: Insert Unique Records in Vertica with COPY query

KermitYou can add NO COMMIT to your COPY and run ANALYZE_CONSTRAINTS before a COMMIT: dbadmin=> CREATE TABLE tbl (a int PRIMARY KEY); CREATE TABLE dbadmin=> COPY tbl FROM STDIN NO COMMIT; Enter data to be copied followed by a newline. End with a backslash and a period on a line by itself. >> 1 >> 2 >> 2

Please VTC as dup
0
Q: Copy restricting duplicate entries

Kundan JhaI need to load files in vertica using copy but i do not want duplicate entries. As unique constraint will not be helpful as it will load data and then i may have to delete duplicate entries from ananlyse_constraints().Other is using insert with bit of logic to check wether entry exist in table. I...

 
@ypercube Claim is wrong. Comment is correct. Requires a function-based index to work.
 
@Colin'tHart Funny thing is that the commenter made another answer - where he claims that using isnull instead of coalesce will be ok and the query will use an index.
 
@ypercube yeah, just reading them
 
I thought this was wrong but he insists. Am I wrong?
 
@ypercube Hmm, not sure. Maybe SQL Server has some special logic to process isnull?
I can't find anything to indicate that. It's just an ordinary function. So using it will prevent the optimizer from seeing an index, unless the index is on isnull(<column>, <value>)
I'm not going to get involved.
 
1:49 PM
I'll wait for @MikaelEriksson or @PaulWhite to comment ;)
(Aaron seems to be busy these days)
 
For those of you with arts degrees ...
user image
4
 
2:30 PM
@ypercube it looks like he doesn't insist anymore
user image
7
I'm not sure about the solution as an output
 
@dezso Sarcasm is the output, solution the side effect? :-)
 
"possible" side effect :)
 
@dezso thnx to @AndriyM ;)
 
2:50 PM
@ypercube That was a useful discussion for me as well.
I've certainly heard it before that ISNULL behaved differently from COALESCE in certain situations. I may even have heard about this particular property as well (that it still allows you to have an index seek if you use it on a non-nullable column), but I wasn't sure and had to verify.
And verifying things yourself is a sure way of cementing your knowledge.
6
 
@AndriyM the isnull(x, 0) is converted by the optimizer to x when the x column is defined with NOT NULL, probably.
 
3:11 PM
@ypercube Something like that. In the XML plan I can only see that with a nullable column I have a <Predicate> branch and with a non-nullable one a <SeekPredicate> instead.
So it kind of ignores ISNULL (because it knows that that column is not nullable)
 
3:24 PM
@AndriyM very nice
 
just need 4 more close votes plz.. stackoverflow.com/questions/31586540/…
 
Got to love stored procedures that call stored procedures that call stored procedures.
Always fun to go down that effing rabbit hole.
@Kermit don.e
 
ty
 
@Zane If only there were some tool that provided the nested stack trace for you
 
@Kermit done
 
3:39 PM
ty
 
Holy Smowzow I think I may have found the single worst query in our environment.
@AaronBertrand Wait. Sentry does that?
I'm still getting used to it.
 
@Zane if it was caught by top sql then yes you should see the whole trace. Same if you generate a plan from within PE Pro.
 
@AaronBertrand @Zane @mmarie @ypercube thank you
 
God I wish I could show you guys this.
 
@Zane if there was only a tool that anonymized it
 
3:47 PM
Without seeing the code it wouldn't be the same.
There are 112 columns populated like this.
 
bollocks
 
Select
	(select count(column) From dbo.HugeTable where predicate = 'A'),
	(select count(column) From dbo.HugeTable where predicate = 'B'),
	(select count(column) From dbo.HugeTable where predicate = 'C')
from dbo.ThisHappens112Times
^^^ that's a alot of table scans.
 
Ubuntu is an ancient African word, and it means "I can't configure Debian"
6
 
@AaronBertrand Thanks! It does read almost as if I know what I'm talking about :) (All right, exaggerating there, but not much.)
 
Ubuntu is an ancient African word, and it means "I can't configure Debian"
 
JNK
3:56 PM
@Zane somebody needs to use a SUM(CASE)
 
My guess is this report is probably never even used.
 
@Zane pivot man, pivot
5
 
user image
6
 
4:17 PM
@bluefeet pivot is for the lazy
has anyone done any work on writing queries to compare existing indexes to "missing" indexes?
 
JNK
4:48 PM
@swasheck not that I still have code for. I did work on something before to identify redundant indexes
 
same same but different
thanks
 
i use kim tripp's code to identify duplicate indexes
 
@JamesLupolt i'm less looking for dupe indexes and more looking for overlap between "missing indexes" and current indexes
 
@bluefeet I'm not touching that process.
@swasheck I think I might have something.
Nope. That's comparing duplicative by usage stats.
 
5:05 PM
@AndriyM good answer. @PaulWhite has of course blogged about it. http://sqlblog.com/blogs/paul_white/archive/2011/06/22/undocumented-query-plans-equality-comparisons.aspx

If I remember correctly there is an issue in the XML version of the query plan when you do it with variables. Something to do with EQ showing where it should be IS. Perhaps a bug generating the XML version of the plan.
 
@Zane yeah. dupe finders are ubiquitous ... i'm writing something, but my sql sucks so we'll see how it goes
 
@swasheck I'm working on something to combine the three this week. Not sure when you need this by but I can send you what I come up with.
 
no rush, really
 
Cool I'll ping you with what I come up with.
Then someone on here can explain to me how I screwed it up.
 
bahahahahahahahah
 
5:13 PM
@swasheck Do you have a list of "missing" indexes?
 
@ypercube i do
 
ever worked on a absence tracker anyone ?
 
sys.dm_db_missing_index_details
 
@ypercube do you not?
 
or perhaps anyone know any source I could use to DB diagrams
 
5:14 PM
not me, @Learner, sorry
 
I need to develop DB structure for a absense tracker, or you can also call it timeoff tracker
 
@swasheck yes, understood. although she has some good code examples of how to work out what columns are actually in the intermediate and leaf level pages of an index. personally i'd probably take that, and then work out the same for 'missing' indexes, and you can assess how much overlap there is.
 
@Zane I don't use much SQL-Server lately. Only Postgres.
 
@JamesLupolt cool. thanks. her style is so different from mine ... i'll have to wrap my head around that
 
@ypercube how's that working out for you.
 
5:28 PM
holy crap!!!! i just found a dimension table with 179 columns
 
@Zane great
 
5:39 PM
@swasheck At least it's not a fact table with 179 columns.
 
at least
 
We've got Tera Data sources that have over 800 columns...
Which apparently some find to not be enough....
What would you possibly need a table 2048 columns for?
 
SalesPerson1SalesJan2015, SalesPerson1SalesFeb2015, ...
 
/shudder
 
so that's a good pattern, right?
 
6:05 PM
Well probably more underscores and maybe more descriptive, like Sales_Person_1_TotalSales_January_2015
 
ah. better
 
@AaronBertrand I have an acute case of B.I. Rage.
 
don't hate BI
hate the business consultants who think they can do BI
 
@ConcernedOfTunbridgeWells are you sure it's not curiosity? hyuk hyuk
 
don't hate the game, hate some of the players
 
6:10 PM
Yes, Excel - Access - I'm a consultant now.
@AaronBertrand Oh, no. I'm definitely B.I. Nothing curious about it.
Wanna see my fact tables?
Or maybe my dimensions?
We could really drill down together.
 
uh, gotta go, pot's boiling
 
as long as your measures are good
 
SELECT [Measures].[ConcernedBIThing] ON 0,TopCount({[Concerned].[Dimension]},10, [Measures].[ConcernedBIThing]) ON 1
or something
mdx never feels like something you can type from memory
 
Oooh, i come back to the room and there is MDX. I <3 MDX
 
6:25 PM
not to mention vulgarity :D
I <3 that :)
 
I like vulgarity more than I like MDX
 
@Zane i thought that MDX is vulgarity
@ConcernedOfTunbridgeWells someone's pressing the metaphor a bit too far
i just signed up for an indoor soccer league
if i'm not on The Heap tomorrow i'll be in the hospital
and one of my missing indexes is on one column and includes the rest of the table :S
(the 179-column dimension)
 
make it the clustered one :)
 
well the clustered PK is on the natural key ... which is helpful for joins, i guess ... this is just weird.
our query patterns clearly blow goats
 
if the goats have the right measures and dimensions I don't see the issue
 
6:35 PM
@swasheck I think DAX is vulgarity. MDX makes so much more sense and is much more concise.
 
@mmarie but it's SSAS
 
what? so all SSAS is vulgarity?
 
if you're not for me then you're against me
 
@mmarie @swasheck SSAS is just a different way of thinking, no rows, no tables but measures, aggregations and sets
I kinda like it actually
 
jk. still trolling you, @mmarie
 
6:38 PM
@swasheck I know
 
@TomV i'm hard-pressed to find any actual thinking in there
@mmarie (now i'm trolling @TomV shhhh. don't tell him ) ;)
 
even though i agree with @mmarie that DAX is gross
the excel mdx
when some finance admin thinks he will get the stats data part right
not even knowing what the fact table is loaded with most of the time
 
@mmarie people who already know SQL or MDX quite well hate DAX. However people who have very little skill in those area's seem to love it.
Aka the business monkey's.
 
@Zane Yep. I thought I would like it more because I am part business monkey and am quite good with Excel. But even 8 or more projects in, it's still just a necessary evil to me.
 
6:49 PM
God this RowStatus Indexing thing is really bugging me.
 
@Zane DO THEY SPEAK ENGLISH IN WHAT?
 
Somehow I cut starting to get to me.
 
excuses excuses
 
This environment is boned to the point that it makes me question my abilities...
 
7:13 PM
i feel the same way ... they always seem to make better idiots
and i can't keep up
 
@MikaelEriksson Added the reference to the answer, thanks very much!
 
7:27 PM
It's so doubled down on this stratagy they even are partitioned by this.
 
partitioning on a status flag?
 
sometimes I don't get posters not investigating and learning asking for an impossible straight up answer
0
Q: How to Interpret Trace Flag 1222 deadlock

sebeidplease guide me how to read this graph to figure out what is cause for this deadlock . I looked for resources online but didn't find clear information. this is my first time to see this graph deadlock-list deadlock victim=process49b0a0558 process-list process id=process49b0a0558 taskpriority=0 ...

not sure how I should've posted my answer, i have a tendency to be brief
but "Any idea why the deadlock happen from 2 select statement? " seems to be missing the point
 
Is ping from chat broken? I don't get notified any more if mentioned in chat.
 
@MikaelEriksson stop whining
(done for the ping)
 
@MikaelEriksson Wait people mention you in chat?
:)
 
7:37 PM
 
Nope nothing yet. Could be because I am in chat already. Leaving now. See you later.
 
7:57 PM
Thanks for the pinging @Zane and @swasheck, worked just fine. I probably "accidentally" blocked @ypercube and @AndriyM :)
 
@MikaelEriksson No, you hadn't. Pinging only works if one is recently active. You weren't the last days.
When I tried to ping you the first time, the @Mika.. did not auto complete with your name.
(recently active in the room)
 
@ypercube I think mikael ignoring you is perfectly reasonable ;)
 
@ypercube yes that's it. Holliday and summer activities keeps me from regularly visiting here. About your comment, I don't see the deleted answers but from what is shown here in chat the answer was wrong and you worked it out.
 
Oh, you are 8k. Needs 10k I think to see deleted posts
@TomV and thnx for the vote of confidence. First beer is on me when you visit London ;)
 
 
8:10 PM
@ypercube isn't happening anytime soon, maybe kingston upon thames but even that is unlikely the first months
brussels or paris is more likely
 
Actually I may go to Ghent next weekend
 
u serious?
 
yes but haven't decided yet
 
I would be able to meet if that suits you
 
are you living close?
 
8:12 PM
30 min drive yes
I worked there, I know bars & restaurants in ghent so you decide
 
I'll let you know.
But not sure if I'll have much free time.
 
sure thang
If I know in advance, I don't mind driving there
 
@ypercube You're just saying that because you don't like people.
 
If I go, I'll play in this: othellonews.weebly.com/ghent-2015.html
 
I didn't know that even existed :)
 
8:17 PM
If I manage to get a day or 2 from work, I'll have Friday or Sunday night free
 
this weekend, you would be mad to not participate in this
it's a week of folklore partying
let me google an english lnk
 
seriously, this week is the week to visit ghent
let me know if you want tickets for anything, but in my opinion the street art is what you need to see (for free)
if you are coming i'll host you
 
I'll have it mind for next year
 
@ypercube, just let me know, I don't live far and if you have time off we can meet up this weekend
or next year
 
8:24 PM
@TomV sure, thnx
 
how are you landing?
lille or zaventem airport?
 
I still haven't decided. But when I searched, only Brussels I found
 
I understand you are in london, I think eurostar to Lille is easier
but that's opinion
depends if you like a train station rather than an airport of course
 
Yeah, there is the eurostar and buses, too
 
there is eurostar up to lille and then train towards ghent
or plane to bxl and then a train
actually there is a plane to lille too, but i'm not sure if they drop there from a london connection
I'm a TGV guy myself :)
 
8:32 PM
I like trains, too. never travelled with TGV
 
thalys, tgv all the same different borders
 
there are flights to brussels and Antwerp but not to Lille, from London
 
If I were you I'd go for a thalys
When the destination is ghent
Lille-Ghent is an easy connection (for .be standards)
 
What's the difference between Dampoort and Sint-Pieters?
Just different stations?
 
depends on where you want to be
sint-pieters is central
dampoort is suburbs
if you want to be in the center you need sint pieters
 
8:44 PM
ok, thnx
 
but st pieters is still a tram ride away from the historic center
otoh st pieters & dampoort should be on the same line on most trajectories
just let me know where you want to be & I'll look into that, if you have time for lunch i'll drive you there if i'm at home otherwise I'll fix your train itinary
public transport isn't great in .be
 
@TomV hey so I have a question
 
I may just take the bus from London. Drives directly, and just a block from the hotel where the event is.
 
@AaronBertrand sure
@ypercube let me know
 
For SQL Server Days I fly into Amsterdam then I need to get to Utrecht for SQL Saturday, I have a ride from Utrecht to Antwerp, then I need to get from Antwerp to Brussels to fly out, what are my best modes of transport from AMS -> Utrecht and Antwerp -> Brussels?
Time/rush isn't a factor, just wondering what the locals would do
 
8:53 PM
@AaronBertrand locals would drive :)
 
Well, yeah, let's say a local who just trashed their car
 
antwerp to bxl seems like a reasonable train connection though
 
I thought so, but really haven't looked into it yet (still a few months away), just thought I'd ask since you were talking about similar
 
ams-utrecht is more of a dutch connection, i don't know right away but i could look that up
or ask around
you do have an airport in antwerp though, not sure where you connect to but london might be an option antwerp-airport.be/contentpage_en.php?p=vertrek
it's a bit old school the airport but it's ok
 
My flights are booked already
Thanks, if you don't know off-hand, don't worry about it, I plan to do research anyway
Just don't want to be stuck the day of, wondering, "how do I get there?"
 
9:03 PM
@TomV When I searched, the flights from Antwerp were only to London City airport
If Aaron wants to have a connection flight to America, Brussels to Heathrow is more likely
 
I have direct to AMS and direct from BRU
(Both Detroit, IIRC, on Delta)
 
ams-bru is a bit trycky atm
 
@AaronBertrand Rome2Rio says it's a 100 euro taxi drive, from Ams to Utrecht: rome2rio.com/s/Amsterdam/Utrecht
 
there is a bit of inter-nation discussion on a train vendor
 
@ypercube yeah I think a train will be better :-
 
9:05 PM
and taxi will be expensive
but it's not my expertise
 
ok thanks all
 
afaik thalys/eurostar/tgv is the way to go if available
but a'dam is a drive for me
 
seems like a short ride on the train
 
antwerp to bxl is on nmbs.be usually
I was mislead with a'dam > bxl
antwerp > bxl is national and should be ok
a train every hour (except strikes)
indicated in the station
anyways, i'm off
if @ypercube wants dinner & a drive this weekend that can be arranged if I know upfront
 
@TomV If I come, it will be next, not this weekend. But thnx!
 
9:19 PM
and if @AaronBertrand needs train info I can get more info but i don't know the .nl trains by heart
 
slacker
 
@ypercube next weekend is even better, i'm on holiday then
let me know if you want to go for lunch & need a ride from lille > ghent then
 
INSERT INTO core.vw_Account
shudder
 
yeah. who names a schema [core]?
 
@swasheck I don't get it. Why is that weird? (I don't have a schema named core. I just don't understand.)
Oh, you are joking, I think. Nevermind then.
 
9:32 PM
@mmarie i'm beginning to question our "friendship"
 
Haha. I'm just a little brain dead today. Don't mind me
 
@swasheck the core of your friendship?
 
Ha
 
given the shortcomings of your comprehension of my dry jokes over the last few days on this sterile medium
@ypercube you didnt schema-qualify it
 
@swasheck It's because I haven't seen you in FOREVER
Like since November or something
 
9:37 PM
who inserts into a view?
I mean, I get why it's done
but it shouldn't be here
Oh if people would understand that using duct tape to hold the hood down on your car when for an additional nickel I could just buy the bolts needed ...
 
You guys watch any of the Performance Palooza webinars today?
 
is that a new Electric Co. show?
 
Heh.
I think @MikeFal is up next performance.sqlpass.org
@swasheck I went to watch the Tim Mitchell SSIS one and Leslie was moderating
 
weed's awesome. i like weed.
 
:-)
I wonder what weed on weed would be like.
 
I was 8 in 1993
 
 
1 hour later…
11:14 PM
@AndriyM Let me know if that edit is too much and I'll convert it to a separate answer.
 

« first day (1661 days earlier)      last day (3207 days later) »