« first day (2359 days earlier)      last day (2523 days later) » 

1:48 AM
@srutzky You missed it when we talked about how great you are ;)
 
@JoeObbish Hey there. I was just reading through some of the messages above. I don't really have time to keep up with this chat room so I haven't been here in a while. But I noticed that a couple of questions got some up votes and couldn't figure out why / how (Google doesn't show any links pointing to them) so I thought I would check here.
 
yep, that was us
 
@JoeObbish And I don't really know what to say. If the comments above are not sarcasm (I truly do have a difficult time taking compliments) then to say that I am flattered doesn't seem to capture it. Would it be appropriate to simply say that I am honored? Or even better to say that I am honoured? ;-)
I also have a hard time finding where particular threads of a conversation start in formats such as this ;-)
 
@srutzky I wasn't being sarcastic and I don't think that others were either, although who knows with that Erik guy
 
2:12 AM
@JoeObbish Thank you (really) for such kind words / sentiment 😺 (happy cat, if it is hard to see). With regards to votes, I think it might be related, at least to some degree, to familiarity with the subject matter. Meaning, I think some topics, regardless of any answers, are by their very nature higher level subjects.
And so I think it is easier to get more votes on topics that a larger population of readers is familiar with. And it is harder to get votes on answers where the general population is less familiar with the topic, or the technicalities of the topic, regardless of the correctness and/or quality of the answer.
I have wondered about this for a while since I have some answers that I am really proud of but have low vote counts, yet one of my highest voted answers (tied for 1st and for a while was my highest) was one that I never felt was that spectacular. However, it is on a topic that most people have at least heard of and know the basics of (I would hope!): SQL Injection. And that is the only answer I have ever gotten 20+ votes on in a single day!
@sp_BlitzErik I am stuck in a sort of paradox there. I know I write long answers and articles, and I have gotten dinged on reviews at work (pretty much every year) for writing emails that are too long and that people don't want to read because they don't have the time. BUT...
even knowing that I should condense the material, I never know what to leave out. I am a firm believer in the idea that the more information one has, the better one can either a) understand a concept, or b) make a good / appropriate decision. So what details are ok to omit?
What if those details truly are pertinent to what issue is at hand? How can I decide what info someone else needs for whatever the situation is, especially when information gets re-applied to future situation having slightly different requirements. So, I err on the side of providing whatever info I can find, figuring that one can ignore what is there but not learn info that was left out.
 
2:30 AM
@srutzky Yeah I know what you mean. I've had similar thoughts but I don't think that I would have been able to express them so completely
With work there's at least some chance that you'll know the experience level of the person asking the question. On SE I find it difficult sometimes to figure out what to include because I don't know what the asker already knows.
Usually I solve that problem just by writing to the level of detail that I want to
 
3:01 AM
@Lamak If / when I ever figure it out I will let you know :-). But I don't see that happening for quite some time ;-).
 
3:13 AM
@Lamak Regarding Hank Scorpio: I picked him mainly for his attitude. Always chipper and positive, and didn't let things like being shot at get in the way of a completely unrelated conversation (i.e. Homer quitting). Also, he knew exactly where to get hammocks (the hammock district, of course).
 
3:23 AM
@JoeObbish Care to define "character"? Do you mean unicode.org/glossary/#character ? or Glyph?
 
@srutzky I'm like a deer caught in headlights
@sp_BlitzErik Is there a way to make wordpress not terrible? I've spent the last 15 minutes trying to format 3 lines of SQL and it just won't happen
 
3:47 AM
@JoeObbish Mainly, do you mean any single Code Point, or do you mean one or more Code Points that form what most people consider a "character"? Meaning, a single Code Point of "n" with an accent can also be expressed as an "n" without the accent plus another Code Point for the combining accent where both appear to as the single "n" with the accent.
 
@srutzky I honestly don't have the technical expertise to be able to answer your question properly. Was just making a comment.
 
 
1 hour later…
5:18 AM
@srutzky Totally agree.
god morgon (Swedish)
 
@hot2use Duplicate! :)
Morning :)
@hot2use It wasn't you who said that, though.
 
@AndriyM Ah.
@AndriyM ... sorry for that.
Goedemorgen (Dutch)
 
 
1 hour later…
6:44 AM
@swasheck I'm still ever optimistic, but my current project would make a good Dilbert story arc.
 
7:08 AM
@swasheck He's putting so much more effort into a question of mine than can be reasonably expected on a free support forum.
 
7:33 AM
morning
 
Morning
 
morning
 
8:11 AM
Morning!
 
8:47 AM
Could someone please check if I've taken too much liberty with my edit here?
Seemed fine at first but somehow I'm not sure any more.
 
@dezso I thought about the design of copying data between remote db. One possible solution would be to user a dblink to cross the bridge between the 2 dbs. That's possible feat with RDS. But once done, I would need some kind of trigger that would poll specific tables in the distant db and do an insert in the source db. Is there a kind of postgres code that can do that like a trigger or some kind of postgres agent by any chance?
@AndriyM sounds good to me
 
@AndyK It's the end of the last sentence that I'm primarily concerned about. Do you think my version conveys the same intention as the original? The original isn't very clear, if I'm entirely honest, but at first I thought I understood it.
 
that would poll specific tables in the distant db and do an insert in the source db = that would poll specific tables in the distant db and retrieve the lines that are in the distant db but not in the source db, all every hour or so.
@AndriyM the sense convey by the OP is ... unclear. You've amended it to what you are understanding but in this case, by reading it for the 3rd time, I'm not sure about what the OP mean at the end of his question
 
9:06 AM
@AndriyM OP is asking a question because he can't change the orginal server's configuration. So your edit seems to be adequate IMHO.
 
9:22 AM
@AndriyM quite a conservative one in my view
 
10:04 AM
What is best way to extract tokens from a string into a date ? I have columns with this value : Prepaidcards_07604_2017-06-15-15-34-39.csv and I need the _2017... etc part to become a date. (2008). I guess that I have to manualy parse the string ?
 
Has the last part of the name fixed length and format? ...2017-06-15-15-34-39.csv
 
yes. it will always be ...yyyy-mm-dd-hh-mm-ss.csv
 
Then you can use RIGHT function to cut and SUBSTRING to extract. (I'm assuming you're talking about MS-SQL)
 
@dezso You are probably right. Not very much labour went into it.
Thanks @AndyK @hot2use @dezso
 
@McNets Yes. MSSQL. nice idea. (RIGHT)
I started doing CTE stuff , but I assume that yours is better
But still I'll have to remove all '-' and add 'T' in order for it to become ISO. no ?
(there are many columns with those kind of values and i need to get the latest one - according to the parsed date)
 
10:12 AM
@Royi An optimal way IMHO would be to replace the third hyphen with a T and fourth and fifth ones with colons
So that you could get 2017-06-15T15:34:39
After stripping the trailing .csv of course
 
@AndriyM Seems fine
 
@Royi Not all -. ISO frormat has - in the date part. As AndriyM ^^ shows
 
@PaulWhite Thanks
@Royi Since the date time part of the string is fixed, the positions of the hyphens (after doing the RIGHT()) would be fixed too.
 
@Royi
declare @name varchar(200) = 'Prepaidcards_07604_2017-06-15-15-34-39.csv';

SELECT CAST(SUBSTRING(@name, LEN(@name) - 22, 10) + 'T' + REPLACE(SUBSTRING(@name, LEN(@name) - 11, 8), '-', ':') as DATETIME)
 
10:28 AM
@AndriyM it was not a statement about the labour, but the extent of the changes, considering the original message
 
Why can an INLINE UDF be ordered using SELECT TOP 100000 but it can't using SELECT TOP 100 PERCENT?
http://dbfiddle.uk/?rdbms=sqlserver_2016&fiddle=91519fea20eff927af7b985b76f222b7
 
Thank you all.
 
10:49 AM
@McNets I guess TOP 100 PERCENT is optimized away as redundnant
Try TOP 99.999999999 ;)
 
ha ha, thank you @ypercubeᵀᴹ
 
11:14 AM
@McNets In both cases, the ORDER BY only determines which rows TOP applies to. It does not do anything for the final output. You always need an ORDER BY at the top level of the outermost query for that.
SELECT * FROM dbo.fnTree100() ORDER BY path OPTION (MAXRECURSION 0); and SELECT * FROM dbo.fnTree() ORDER BY path OPTION (MAXRECURSION 0);
 
@PaulWhite Ok, thank you.
Is there a way to move OPTION(MAXRECURSION XXX) into the function?
 
Apparently? CTE doesn't work in MySQL — Robert Carnegie 5 mins ago
I just don't understand ^^^. There's some communication gap.
 
11:39 AM
@dezso I thought you used the word "conservative" in response to my using the word "liberty", as though you jokingly took it as a political reference (as in conservatives vs liberals). So I decided to throw in "labour" into the mix, to keep up the joke.
 
@AndriyM @dezso, You keep us entertained ;)
Let me explain that ^^
Ukip us entertained ;)
3
 
Ahhh, now I see
 
12:06 PM
@McNets No.
 
12:27 PM
@AndriyM Let me craft a counterjoke
 
@dezso You probably mean counter counterjoke. But well, who's counting.
Admittedly, counters do.
 
reverse counter counterjoke
 
@McNets redouble reverse counter-counterjoke
@AndriyM was this a counter joke?
 
@dezso Apparently
 
@dezso ;) I'm dizzy
 
1:03 PM
@McNets oh, nice to meet you
 
The effects of the heatwave are showing
 
@JoeObbish i don't know what you're trying to do. i think i mentioned i use enlighter to format code. try that instead of the default one?
@srutzky i wouldn't want your answers any other way. i like reading what you've learned. i would not like learning what you've learned :)
 
1:23 PM
@srutzky I agree, Hank is great
 
@sp_BlitzErik Thanks, but it looks like I don't pay enough money to use plugins
 
@JoeObbish ah. annoying. so what's going wrong with the built in doodad?
 
I thought the issues had to do with whitespace
looks like there are some bugs as well
when I changed ">=" to "<=" it destroyed the spacing
BETWEEN ended up saving the day
maybe I'll complain
 
did you edit an existing code block or paste different code into a new one and it broke?
 
I must have tried fixing it 20 times
all of the above
 
1:36 PM
weird. i've run into spots where brackets and some aliases would break code.
like [c] would make the plugin start interpreting code as c code
D:
 
@dezso Obviously this is my skill ;)
 
 
2 hours later…
3:58 PM
@ypercubeᵀᴹ Ukip us awake at night.
 
 
2 hours later…
6:12 PM
user image
4
 
6:57 PM
@ConcernedOfTunbridgeWells ha nice ;)
 
 
2 hours later…
8:48 PM
@JoeObbish Sorry, wasn't trying to be difficult. You had prefaced the question with "seems like a good quiz question" so I thought you were going for something specific. I think it would be a good question to ask ;-), but for now, I will say (with respect to MS SQL Server in which UTF-16 is the only Unicode option):
If speaking of individual elements (something that has a single value in a character set) then it is 2 bytes for VARCHAR and 4 bytes for NVARCHAR. If speaking of what is considered a "letter" or "character" in a language, then it should still be 2 bytes for VARCHAR but varies by language for NVARCHAR / Unicode, and might realistically go up to 12 perhaps?
 
9:22 PM
well ... i dont know how long you had to think about that response, but it's certainly orders of magnitude less than i would have
 

« first day (2359 days earlier)      last day (2523 days later) »