« first day (2887 days earlier)      last day (2278 days later) » 

00:02
We really should be getting the postgis questions
shit network
00:20
Thinking about the hat thing.. already planning on my necro badge
@PaulWhite you're toast comrade
 
2 hours later…
01:55
Oh wow!
Stack Exchange Provides a mobile chat for mobile browsers
and it sucks so much less than the desktop one
Damn StackExchange did good with this one
This is so much less shitty than the desktop version.
code test
02:34
Oh no, one huge detriment, you can't upload files.
wtf is up with that
 
5 hours later…
07:44
Morning
Morning
08:00
@EvanCarroll out of curiosity, what were you trying to upload from your mobile phone? πŸ€”
I wasn't trying to upload anything from my mobile.
Also, yes. Mobile chat.se is no longer πŸ’©πŸ’© can confirm
I just like the mobile chat site better than this one
fucking bloated web chats/discord/slack
how did these become popular?
(corporate lock ins, and marketing nvm)
what, you don't collect chat clients? i thought they were like Pokemon
I don't want to collect them.
I feel like I'm forced to.
08:06
I'm still on pins and needles for chat integration into the app
like... why a push notification on the app if it needs to redirect you to the browser?
Which one of those interfaces looks more useful?
And, the one on the right manages like 30 channels.
yea... but can it support gifs?!
yes...
@Pet I use Kitty
Actually kitty only supports a still frame from the gif
oh well =(
Guess I could use a terminal image viewer for gifs
That would be an interested project porting SE chat to irssi WITH gif support
08:34
Morning
Morning all. Could anyone answer a quick question regarding SQL versions?
Thanks. The SQL servers our company uses runs on version 11.0.x. For my local copy of SSMS, I've been habitually using SQL 2012, which the rest of my team uses. If I installed a more recent version of SQL SSMS, would this be compatible with the database?
In my personal experience yes it works fine. I have seen the odd bug here and there but they were mostly connecting to 2008 R"
R
R2*
Besides - your version is still in support so you can submit bugs to MS if that happens.
I use the latest version of SSMS with all of our servers - the only one it really craps out on is 2005
The other thing to consider is that you can install them side-by-side anyway, so you can use both.
Yeah, we're not quite that old (but used to be a few years ago). I mainly do data analysis with it and create functions/sprocs/permissions/etc.
08:41
You should be fine - most of the issues I've found are in obscure UI elements that are rarely used anyway
But the real answer is test it and get back to us :)
The side by side thing might be a good option for me, just in case. I connect to the prod database, so hence the question here, I didn't want to do something that inadvertently upgraded the prod database or something daft like that.
i use to keep pinned the launchers for different major releases of SSMS & BIDS/SSDT and just kept a mental rolodex of which server was running which version so i didn't end up auto-upgrading packages just from opening them up
not my best time...
@Snow e.g. You can't connect to a SQL Server 2014 Integration Services with SQL Server Management Studio v17.9
also that ☝
...and other stuff.
I use the SSMS that comes with the product. Except for SQL Server 2016+ which doesn't deliver a SSMS with the product. Then I use the current stable release of SSMS 17.*
08:52
Hmmm.. Yeah, we use SSIS a fair bit. Hmmm. So now I'm edging toward the "safe, but boring" option.
... with the side option of side-loading a more recent version by the side of SQL2012.
2014 and V17.9 work side-by-side, just not for everything.
dang
To avoid some really dodgy script conversion errors, I always use the relevant SSMS for the SQL version whilst importing SSIS projects too
Noted, thanks for the tip. Really useful stuff from all of you.
Ok, so SQL Server 2014 Management Studio will basically give me the latest release version of SSMS, right? I think that's right. SSMS is one of those things I only install every 5 years or so.
09:09
No. SQL Server Management Studio 2014 which was supplied with SQL Server 2014 is the last version which was sort-of product specific.
After that SSMS became a stand-alone product.
Ahhh.. So SSMS 17.9 is the latest stable release. I'll grab that then.
26 mins ago, by hot2use
@Snow e.g. You can't connect to a SQL Server 2014 Integration Services with SQL Server Management Studio v17.9
But otherwise, yes. :-)
@hot2use Hey how can I copy a comment into chat like that?
Yeah, I'll be installing SQL 2012 as well and using that for things I have to use it for.
@George.Palacios Click the down arrow to the left of the chat message and hit the "permalink" link in the pop-up menu.
then paste the address into chat.
1 min ago, by Snow
@George.Palacios Click the down arrow to the left of the chat message and hit the "permalink" link in the pop-up menu.
Ah thanks :)
09:17
This also works with comments/questions/answer hyperlinks from the main site that you might want to quote in chat.
Like this.
Take a look here - please edit your question accordingly. — Vérace Apr 8 at 17:31
Error - Redirected you too many times. Try clearing your cookies. ERR_TOO_MANY_REDIRECTS
Ah cool - that's helpful
You get the hyperlink by right clicking on the date stamp after the comment.
Yeah I got that - thanks
Glad to give something back. Thanks for all the help. I've grabbed the installs for when my new dev laptop arrives.
09:25
Cool
09:46
Morning
Almost noon actually
10:00
@George.Palacios Sorry was working, but Snow was able to assist.
10:11
Morning
10:23
@hot2use Working. That old excuse :P
11:15
weird question for the room - anyone know if the Brent O weekly links are archived like the blog posts are anywhere other than my gmail recycle bin? like - i'm trying to remember some random post on memory pressure from a month or two ago but I'm pretty sure the original email has aged out of my trash by this point
gbn
gbn
Anyone use sp_databaserestore from Brent O? github.com/BrentOzarULTD/SQL-Server-First-Responder-Kit/issues/…
option 1 or 2 if you do please
@TomV my hero
@PeterVandivier It doesn't go back far enough but I'm not sure if there is a way to get the earlier ones
11:30
@TomV Facebook... Facebook always remembers... Facebook never forgets....
@PeterVandivier maybe url-hacking this: us2.campaign-archive.com/…
@TomV Yuuuup... mailchi.mp/brentozar/ffwu8288fq-$numbers$
damn utm params had me all shook and i totally missed that
11:54
@PeterVandivier My Newsletter Mail Folder goes back until 2nd April 2018
I trolled back through to June (ish) before I called it. I saved the links though (FB never forgets...) & I've grokked the URL pattern in case I get the gumption to take another crack at it
My old boss emailed me this morning to let me know they finally root-caused a recurring OOM hekaton issue we observed so I'm just sort of info-dumping to see if I can put together something coherent enough to be worth sharing
TL;DR: for the room "Turns out when you delete from an IMO table variable, it won’t release the deleted rows from memory until the table variable goes out of scope"
2
TIL... ¯\_(ツ)_/¯
12:41
@MaxVernon oh man
 
2 hours later…
14:20
Hello
Hey Zane
14:46
Good grief people on SO overcomplicate things.
0
A: How do I return records which are never equal to 1 when the same record is present several times in the table

Yogesh SharmaYou can use not exists with row_number() : select top (1) with ties t.* from table t where not exists (select 1 from table t1 where t1.id = t.id and t1.IS_FINAL = 1) order by row_number() over (partition by id order by seq desc);

from what I cant tell the user is just looking for distint values where the ID isn't 1 select distinct ID, State from table where IS_Final != 1
Agreed. I have no idea why the other two answers are in any way superior to the simple option.
Yeah it got marked as a dupe anyway(as most SO questions are) but that is in my opinion a terrible and confusing answer.
And the proposed duplicate doesn't do what the user asks either.
Oh really?
Oh yeah.
The dupe question asks for the top row. This question just wants distinct results.
14:55
he doesn't need a CTE and yeah that is wrong as well.
@Zane I first saw that trick (SELECT TOP (1) WITH TIES ... ORDER BY ROW_NUMBER() ...) in one of Martin Smith's answers. I actually liked it, to be honest (still do). Not sure how well it performs compared to others, though
This fella seems pretty green. I feel simplicity is the way to go here.
Totally agree
And even if there's a gazillion rows, then add an index. Shees. I'm a dumbass and even I know that.
Soooo the flaged as Duplicate does not answer the OP's question. He just needs a where cluase and distinct rows via either a group by or a distinct this CTE asks for the top row. This question just wants distinct results where the value isn't 1. — Zane 12 secs ago
I'm a huge fan of keeping things simple wherever possible.
15:01
There's no need for even a group by, just the distinct col1,col2 where col3 = x
Darn. I read the question again and it's not as simple as initially thought.
You need to exclude a group of rows if at least one of the rows has Is_Final = 1. It's possible to avoid a NOT IN or NOT EXISTS or any other kind of self-ant-join but it still won't be very simple.
yeah he doesn't want both. I missed that part as well. Either way it's been closed. Also I still stand by my that guys solution is insanely overworked. I had a fiddle to do what he wanted but fiddle is borked and the question isn't open anyway
And the dupe isn't the right dupe.
Yes. it still just grabs the top row.
just adding the state to the distinct list should do what he wants, leaving his original query as it is. I think.
15:10
Yeah I just had a where not exists on those ID's
Like I said I had a full working fiddle but it's borked
Is there an alternative to that.
15:32
Anyone care to check my work?
0
A: How do I return records which are never equal to 1 when the same record is present several times in the table

ZaneOkay so I've come up with a pretty simple solution that works for you and should be pretty easy to follow. Answer and demo is up top explaination to follow. create table #SOQ ( ID char(2), Is_Final smallint, SEQ int, State varchar(30)) insert into #SOQ values ('A1', 0 , 12, 'Pen...

Wanted to add more explaination to what I'm doing. Like I said. Dude seems pretty green.
Works for me in SQL.
16:00
@Zane I think your indentation style is disgusting and I hate you. But the code looks great :D
gbn
gbn
@George.Palacios ah, yet another OCDBA
3
@gbn Wait. There's another type of DBA?
@George.Palacios ApexSQL Refactor FTW.
@George.Palacios It's cool. I get that alot
@Snow I've heard of Apex but never used their stuff - how on earth can there be so many options for formatting hahaha. This looks like Ola's scripts if they had a UI
@Zane Haha I'm just kidding. But seriously though
16:05
Yeah, I only really use the code formatter because I suck at it myself. It works well and is configurable. And it's free.
@Snow All I read was free
@Snow Yoink
@Snow But yeah thanks - much appreciated.
No problem. I just use it because it's free and I'm lazy. And it's good to show off to colleagues that I can format SQL when they just send me free-typed junk.
@Snow Are you a DBA?
16:17
Nope. I'm a CRM developer, so I spend a lot of time in SQL and coding stuff that does stuff with SQL tables/data.
Ahhhhh okay
I was going to say, I think being Lazy should be a pre-requisite of a modern DBA
Gotta love that automation
I found ApexSQL Refactor because I had the hope that it would refactor my queries into more performant code. I since learnt that there's nothing that can do that form of magic.
@Snow Hahahaha I hope that story is true
@sp_BlitzErik you in here homie?
Sadly it is. I was hoping that my tangled mass of inner/left/crossjoin queries would be magically transformed into something cool and quick.
16:22
I'm curious on your thoughts on this dudes slow SAN and Blitz running on that.
@Snow Well it satisfied at least the former of those two!
Well, at least my code looks better and the blue/grey/pink bits are in uppercase.
@Zane sup
Ok, gotta hit the road and quit for the weekend. Thanks all for being welcoming and helpful, traits that are sadly lacking in some quarters of the SE network. Hope to see you guys around again soon.
@Snow Hope to see you around!
16:31
Was just wondering what you were thinking this fellas issue is.
1
Q: "Slow Storage Writes on Drive T" warning from sp_Blitz

James DWe migrated our platform to new SQL Server 2016 instances a couple of nights ago. Immediately following the migration, we ran sp_Blitz again, but noticed the following entry, which relates to the dedicated volume holding tempdb (all eight data files and the single log file reside on the same dedi...

Curious if his SAN sucks or if his pathing to it is borked.
if it's all SSD it seems super unlikely that it's this... what's the word. Shitty
Those cdm results are crap
Yes indeed. They are poop from a butt.
@Zane I did however see this on a 3par all ssd with a firmware bug in the dedupe logic
My favorite thing from running sp_blitz on some of my new boxes is these vendor app DB's that have 350+ triggers..... yeeeesh
You should've seen the look on the face of that customer after I ran sqlio on his new 300k euro toy and told him it was slower than his old msa
16:40
@Zane hard to say just from cdm.
1gb iscsi doesn't surprise me anymore
Yeah it could be a lot of things. Is it a vm on a saturated hba. Is it the bandwidth...
wack controller hw
His original question about the perf counter and the aggregated data in the dmv was probably OK but solving his storage problem is tip of the iceberg
the perf counters, etc. won't answer any questions about where along the line things are hosed though.
"yep, slow here too"
17:30
At my last gig we were getting huge disk latency and the SAN team kept saying that we were fine. I kept pushint and pushing and eventually found out they didn't hook up the cabling we asked and also hadn't striped the drives as per our request. I imagine they're still dealing with that now.
17:41
@JoeObbish, does this matter? I am switching between using dbcc traceon and querytraceon constantly and the results seem consistent. I assumed the behaviour of the 2 should be identical — Steven Hsu 2 mins ago
"seem"
The key phrase.
17:53
@StevenHsu Good luck with your issue! — Joe Obbish 4 mins ago
lol
18:37
I haven't spent a full work day dinking around on SO in a while. I forgot how many folks are doing weird bad things to their database servers.
 
1 hour later…
19:47
lol, came in here - as im watching brent ozar's "how to think like the sql server engine" - to ask what the general opinion toward brent's training materials were to this group
and i see @sp_BlitzErik - hi there, lol
i just registered for the live class season pass the other day. and the recorded classes. super pumped about it all
I've learnt a lot just by hanging around in here @JzInqXc9Dg
i definitely have too - more so on SO to be honest
but im starting to focus a bit more on dba activities these days
so im finding myself here more often now :)
20:03
I'm out! Catch you later folks have a good one.
Brent is a fantastic teacher.
cool! cya
You're definately going to get a ton out of it. Those folks are brilliant at makeing complex things accessable.
Feel free to use that quote there @sp_BlitzErik lol
im BARELY into it
and im already feeling like ive got some insanely powerful knowledge
@PeterVandivier for what it's worth, that is (rather discreetly) documented here.
> Unlike memory-optimized tables, the memory consumed (including deleted rows) by table variables is freed when the table variable goes out of scope.
20:30
πŸ‘πŸ»πŸ‘πŸ» Also useful is this blog post
@Zane mice down drinks up
4

« first day (2887 days earlier)      last day (2278 days later) »