« first day (708 days earlier)      last day (4178 days later) » 
00:00 - 19:0019:00 - 00:00

7:02 PM
@swasheck thanks :-) Don't forget to upvote the other answer too now. That had some good info in it also.
;-)
 
1
A: Stack Overflow Annual User Survey

RichardTheKiwiI got stuck on the first question. http://en.wikipedia.org/wiki/List_of_Asian_countries_by_GDP http://www.nationsonline.org/oneworld/asia.htm No "New Zealand" to be seen. Australia is both a country and continent, but New Zealand is not part of it. I guess you didn't want responses from New...

+1
 
@RichardTheKiwi i upvoted, too ... btw ... we're not really against you
 
@Richard: You are in Australasia :)
 
@ypercube You just made me realise that @ in chat doesn't follow the 3-character short form. Makes sense since it can also ping people outside of the chat.
 
@MarkStorey-Smith while that was hilarious, I have to remove it
 
7:08 PM
so you didn't get a notice?
 
@jcolebrand you can remove accepts?
 
Nope
 
didnt think so ...
2
Q: ASPState Log file growing tremendously - SQL Server 2008

HaBoMicrosoft SQL Server 2008 (SP3) - 10.0.5500.0 (X64) Web Edition (64-bit) on Windows NT 6.1 (Build 7601: Service Pack 1) I have an ASPState database online, and its log file ASPState_log is growing tremendously. The current size is 536gb. How can I maintain this log file? I take a daily backup...

 
@jcolebrand jQuery and JQuery?
you really are multi-talented ;)
 
7:20 PM
I am indeed. I know all the javascripts
I also just realized I thought I did check that box >.<
Why is this chap now on my radar? I forget ....
 
JNK
@jcolebrand MSS wants him to accept answers I think
 
@JNK @jcolebrand it's been handled
 
He has already
 
I'm glad someone else handled him ;-)
 
@MarkStorey-Smith shall we delete the comments on the question?
 
7:33 PM
mine was already obsolete, but i see that a mod deleted it (probably thundercole)
 
@swasheck twas I
I should have flagged it first
 
@jcolebrand d3?
@JackDouglas hurts less coming from you
 
@swasheck It was a great comment that had had it's day in the sun
 
we had a good run
and i'm proud to champion the cause of @MarkStorey-Smith
 
I happen to have an infected ear canal, so I was away ear dropping. Saying that to say, sick cole is grumpy cole is fast-resolution cole...
 
7:42 PM
@JackDouglas apparently ipy has a bit of money now
@jcolebrand i couldnt hear you. what?
 
<sub>I said ...</sub>
 
@jcolebrand actually ... i'm sure disorientation is more of a symptom than muffled sounds
 
Ehhh, just irritated jawline atm
 
8:40 PM
@jcolebrand I'm lost in the conversation... remove what?
 
@JackDouglas I see it has been cleansed, splendid
 
@swasheck but my horoscope...
 
@jcolebrand Spotted it. What's up, are you anti black magic? :)
 
9:00 PM
@jcolebrand are you actually really good at jquery?
0
Q: Division using Convert Sql Server

user1564053I've got a question. I've programmed a function but im having some problems when i divide 2 numbers using convert. Here is an example: Declare @A Numeric(18,6) Declare @B Numeric(18,6) Set @A = 1 Set @B = 130 If i do the following query the result is : 0.007692307692307692 Select Convert(De...

 
@MarkStorey-Smith I .. what?
@swasheck I consider myself a bit of a ninja at jQuery
It's like .. you never even see me write it
 
nice
 
@jcolebrand nice
 
@jcolebrand The deleted comment regarding voodoo and SqlKiwi the witch doctor :)
 
what about JQuery?
 
9:03 PM
@MarkStorey-Smith I am for black magic, that's why I removed the comment
@swasheck you should read my JQuery, it's so beautiful it would make you weep. Everyone who has seen my JQuery has cried.
 
what is it you say you do here?
 
@jcolebrand would you say your jquery brings the boys to the yard?
 
What was the issue with @MarkStorey-Smith's comment, @jcolebrand?
 
@SQLKiwi that it said not to trust you, or something like that
it was funny but offtopic
 
@jcolebrand You've somewhat misinterpreted there cole
 
9:18 PM
@jcolebrand I don't recall it saying that. Of course I can't check now :)
Something like "Query optimisers are voodoo. SqlKiwi is the witch doctor"
 
"Query optimisers are voodoo. SqlKiwi is the witch doctor"
 
@MarkStorey-Smith it was flagged from folks, I didn't see it adding value, even though it was humorous
 
link?
 
Someone flagged it as offensive??!!
 
@MarkStorey-Smith how do you know that?
 
9:20 PM
it was RichardTheKiwi
 
@SQLKiwi not offensive
just offtopic
 
@SQLKiwi Weird huh? Perhaps I should of stuck a smiley on the end
 
@MarkStorey-Smith Very weird. Bordering on the downright odd.
 
was it on SO or DBA.SE?
 
It's funny. It's cute. It's clever. It's offtopic
@swasheck the comment?
 
9:21 PM
@jcolebrand Because I read the man's blog and answers on here, religiously. He's quite literally a QO sorcerer :)
 
@jcolebrand Good luck cleaning up all the off topic comments here! Would it help if we flagged them all?
 
@SQLKiwi Yes.
We do want to clean them up, if they're just floating there not contributing. Not the second they're made, of course.
 
@jcolebrand yes
 
This was granted like 24 hours after it was made or something
 
the question, answer, comment, etc.
 
9:22 PM
@swasheck here's the only place I can delete other people's comments
 
@swasheck It was a comment on dba.stackexchange.com/a/30215/2374
 
huuuurrrrrrrrrrp ... my troubleshooting skills are second to none
@MarkStorey-Smith ... i'm not convinced he's the witch doctor
@SQLKiwi is the frickin' Gandalf of SQL Query Optimizers. "That is a saving of 0.000098 estimated cost units (though the OFFSET plan would require extra operators if you want to return a row number for each row). "
 
how many cycles is an estimated cost unit?
 
I fear Gandalf may be off topic too :)
4
 
and do I apply that over all the rows in all the tables or?
 
9:25 PM
@jcolebrand Four penguins per quark
2
 
@SQLKiwi that's a rather good exchange rate
 
@SQLKiwi too ... ahem ... {removes glasses} localized .... YYYYYEEAHHHH!!!!
 
Penguins have declined in value recently
 
I just so happen to have here a couple trillion quarks in front of me, care for a few?
A quark ( or ) is an elementary particle and a fundamental constituent of matter. Quarks combine to form composite particles called hadrons, the most stable of which are protons and neutrons, the components of atomic nuclei. Due to a phenomenon known as color confinement, quarks are never directly observed or found in isolation; they can be found only within baryons or mesons. For this reason, much of what is known about quarks has been drawn from observations of the hadrons themselves. There are six types of quarks, known as flavors: up, down, strange, charm, bottom, and top. Up an...
 
i'll see your quark and raise you
 
9:28 PM
@jcolebrand Sure send them over. Make plans to accept a very large container from Antarctica.
@jcolebrand It's a total cost for complete execution of the query. The numbers were originally seconds in a model that used to relate somewhat to a particular pentium-class machine one of the optimizer developers had a long time ago. His name was Ian, I think.
 
All together now: "Thanks Ian"
"Thanks Ian"
 
Is Santiago Valdez anyone here/dba.se? Got a random linkedin request
 
@MarkStorey-Smith perhaps he wants to offer you some property in Chicago?
 
@swasheck Its not that one :)
 
@MarkStorey-Smith figured
 
9:34 PM
@swasheck Looks a happy chappy though, my first call if I'm stuck for an apartment in Chicago
 
9:45 PM
I'm sorry, his name was Nick, not Ian.
2
There is a picture of the particular machine in this post
2
 
10:02 PM
@SQLKiwi wow
 
10:13 PM
@SQLKiwi Brilliant. I'm going to use the "1 second on Nick's machine" quote often :)
 
10:56 PM
What's with this edit?
To elaborate, why does it originate from our beloved Community bot?
 
@MarkStorey-Smith then there's this travesty
see if select * from Table (NOLOCK) helps — Akash 6 hours ago
but i see now that it was suggested for the sake of lock contention
 
@swasheck As I'm halfway through an admirable bottle of wine, I'm going to accept his explanation that it was intended to be for diagnostic purposes only :)
I'm not sure Aaron was convinced though
 
@MarkStorey-Smith nice. 1 milk stout and 1 stella down and i think i'm inclined to give the benefit of the doubt.
 
@swasheck I quit Stella many years ago, along with Kronenburg. Any other lager/beer I'm fine but those two make me somewhat argumentative :)
 
11:06 PM
@MarkStorey-Smith well, they ran out of the milk stout here (workplace happy hour) and it was Stella or bud light
 
Do I need to walk through how I get to that link?
 
@jcolebrand Gracias, was confused about what was at work. And yes please :)
Would it be wrong to rollback the edit?
 
dba.stackexchange.com/posts/30285/revisions <-- go here, then find this text: (note yours may be off one or more minutes from mine, whatevs)
> suggested 56 mins ago
Click the word "suggested"
 
@MarkStorey-Smith @jcolebrand i'm all for rolling back the edit ... otherwise it makes DVers and commentors look more dickish
 
"suggested" was the bit I missed, ta
@jcolebrand Can you clarify what the "resetting any offensive votes" text means (on hover over the rollback link)?
Referring to flags?
 
11:12 PM
Maybe it means Votes to Close?
 
@MarkStorey-Smith thanks
 
@swasheck Done. Hope @MartinSmith and @RolandoMySQLDBA are ok with it.
Working on the assumption here that we edit good answers to improve them, not bad/wrong answers to save them
 
@MarkStorey-Smith i've had flags rejected because i flagged an answer as poor quality and the feedback was that's what downvotes are for. as such, if an answer is crap and people call it crap and then someone else comes along and edits it to look less crap, that seems an attempt to make a crap sandwich look like PB&J
@MarkStorey-Smith agreed
 
@MarkStorey-Smith I have no idea?
@MarkStorey-Smith we do both actually
 
@jcolebrand SE mechanics, that's your department man! :)
 
11:18 PM
@MarkStorey-Smith Aye, working on it
 
having said that ... it really irritates me when someone abandons a question
 
@jcolebrand Meh, I'm sold on the downvote/blast-em approach. What's the case for polishing a turd?
 
@MarkStorey-Smith flags (there's a couple of them)
@MarkStorey-Smith a new turd with a brand new OP who has no idea how to answer SE Q, for whom downvotes don't really punish, and who is fast to comment on what he intends.
However, if AaronBertrand (to pick on a friend of the room) were to post a kinda shitty answer, you're to destroy it with downvotes if it's wrong.
Guess how often experienced users post shitty answers ... no, just go ahead and guess roughly
 
@jcolebrand Can't say I see downvotes as punishment. +1 and -1 are markers of the accuracy/quality of the answer no?
 
It's a rep hit, and it's a "in the queue of answers" hit. If your answer is at -3, and someone else is at +5, they're +56 rep ahead of you.
And to the OP they're 8 apart
It's enough of a hit that most people realize that they're getting downvoted on Q and it upsets them and drives them to make it better.
Even tho it's just gamification
Psychology is a fun tool to twist the screws on people with
 
11:25 PM
@jcolebrand or run away
@MarkStorey-Smith i've always preferred this perspective
 
Experienced users of the SE network don't do that tho
 
I'm struggling to work out what this chaps after:
0
Q: Is it possible to get schema ID in another database without using dynamic sql?

jmh_grI start with an object ID and a database ID. Inside a user defined function, I want to get the full name and ID of the database, schema, and object. How can I get the schema ID without using dynamic SQL, which is prohibited inside UDFS? Note: I can get the database name with DB_NAME I can get...

 
@MarkStorey-Smith He wants to be able to query a schema ID from a different database context and, as far as I know, you can only get a schema id from the database context that schema exists in.
At least that's how I read it. WHY he wants to do that doesn't make much sense to me, but I figure that's his goal.
I just don't know if he can get it.
 
@MikeFal That was going to be my next question... why? :)
 
@MarkStorey-Smith I believe this is an exact dupe of a question I asked in SO a while back.
Close:
3
Q: OBJECT_ID of object in another database - how to find database ID or name/fully qualified object name?

Cade RouxExample: USE AnotherDB -- This works - same ID as from other DB SELECT OBJECT_ID('AnotherDB.ASchema.ATable') -- This works SELECT OBJECT_NAME(OBJECT_ID('AnotherDB.ASchema.ATable')) USE ThisDB -- This works - same ID as from other DB SELECT OBJECT_ID('AnotherDB.ASchema.ATable') -- Gives NULL SEL...

 
11:33 PM
@MikeFal the same reason why most inexperienced programmers want things, because that's the only thing they can imagine will work
Grease a pig up and it'll think it can escape from anybody trying to pick it up. What does it do when it isn't greased up/
 
@jcolebrand Agreed. I'm wagering if we found out the WHY, we'd see that he was over complicating his solution.
 
@CadeRoux For a maintenance script or some such?
 
I, of course, have NEVER done anything like that.
 
@MikeFal that was my point
 
@jcolebrand squeal
 
11:36 PM
@MarkStorey-Smith I think I was parsing error messages or code in T-SQL - it's been a while. For this system I had a comprehensive database health system which made sure that every object was documented and looked for all kinds of things which could get kind of broken in a change but not actually cause a runtime error. Like processes which didn't have anything depending upon them in the dependencies table, multi-statement scalar function etc.
@MarkStorey-Smith Database code health from the point of view of everything the system expected to be done a certain way which couldn't be enforced with actual database objects or constraints.
 
@CadeRoux That reminds me... I need to digest your LeversAndTurtles presentation and scripts. Looked interesting!
 
@MarkStorey-Smith That presentation is basically trying to tell people to avoid tables of tables because then you have to have more exception reports because you can't implement constraints against system tables. You can use extended properties and simply report when those are missing. But then you can also codify any other rules you like too.
@MarkStorey-Smith It is not meant to be advocating metaprogramming within systems - that abstractions leads to bad maintainability - only to the level of code generation and configuration.
 
Is there a generic pattern for TSQL for insert into where not in? I mean, all I want is a left join on a composite key, right? (where the actual from table is the table I'm inserting from, and the table on the left is the table I'm inserting to)
The issue is I need to add about 3000 records into a table, but not the existing 2500 or so ...
 
@jcolebrand you should as @SQLKiwi about anti-semi-joins
make sure to tell him that you're planning on using a left join
 
a) that doesn't sound like a TSQL thing
b) I'm asking if that's the right pattern, not saying that's what I'm going to use
my TSQL is weak
Besides, it's like 10am, where is he?
 
11:45 PM
@jcolebrand WHERE NOT EXISTS (SELECT NULL FROM TableB B WHERE B.x = A.x) ?
 
yeah, that doesn't sound like what I expected ...
 
but yeah, @MarkStorey-Smith has an anti-semi-join
6
A: How to update one database from another?

Aaron BertrandWithout more specifics: CREATE PROCEDURE dbo.UpdateA AS BEGIN SET NOCOUNT ON; UPDATE A SET col1 = B.col1 /* , ... */ FROM Adb.dbo.commonTable AS A INNER JOIN Bdb.dbo.commonTable AS B ON A.key_col = B.key_col; INSERT Adb.dbo.commonTable(key_col, col1 /* , ... */) SELE...

that one started the conversation yesterday evening
 
So I'm cross joining users and category_default to get the users_categories, if that helps
 
where i learned about Paul's preference for the where not exists convention over left join ... where ... is null
 
11:47 PM
I was going to gen a temptab from users and cats and populate that, then join back into the users_cats where it doesn't exist in users_cats already
will that be faster or just cleaner?
 
@swasheck But I should use SELECT 1 as per Aaron's example. SELECT NULL confuses folk
@jcolebrand Neither
Does the example in Aaron's answer fit your use case?
 
Honestly, my brain is in another place atm, so I have no idea
 
@MarkStorey-Smith yeah. i've always learned SELECT 1 (though not in the context of updating across tables) but SELECT NULL still returns a result which is all it's looking for
@jcolebrand forgive my ignorance, but why are you cross joining?
do you really want every possible combination?
 
Yes, all the ones that don't exist
I added about 20 records
I've got other logic that looks for the ones that don't already have records in the users_cat table that are in the users table
 
@jcolebrand It sounds like you have a question :)
3
 
11:54 PM
probably
the trick would be to do it not now
 
@jcolebrand Ask it well and I might even chuck a vote your way :)
 
@jcolebrand i'll answer for 250 bounty
 
hehehehe
 
@SQLKiwi nice. also, did you sleep at all? i thought you were just here recently
 
I went to sit in the sun for a bit and read a book. Trying to get back on NZ local time while the weather's good.
It's 1pm Thursday locally btw
 
11:57 PM
@SQLKiwi oh ... ok.
 
I spy first post from @BobBeauchemin.. welcome aboard Bob! :)
 
5 hours ago, by SQL Kiwi
http://www.sqlskills.com/blogs/bobb/post/returning-document-property-values-in-full-text-seach.aspx
 
@swasheck Saw the blog post, didn't realise he'd been back to post on the original Q
 
@MarkStorey-Smith oh. i hadnt seen that either
 
00:00 - 19:0019:00 - 00:00

« first day (708 days earlier)      last day (4178 days later) »