« first day (602 days earlier)      last day (4270 days later) » 
00:00 - 16:0016:00 - 00:00

12:39 AM
@ypercube wow. Blatant omission. Don't you hate it when the answer is just staring you in the face and you don't recognize it. Post that as an answer ant I'll accept.
 
 
6 hours later…
6:21 AM
@MarkStorey-Smith probably not. But who did know back then...
 
 
3 hours later…
9:07 AM
Morning all.
What's with the tags. Do we really have a on dba.se?
Sadly, no :(
 
 
3 hours later…
11:46 AM
ORM weirdness: local supermarkets lists location hours as (504) 488-System.Linq.Enumerable+d__99`1[System.Char]
 
12:12 PM
@CadeRoux The first part of that looks like a phone number. Either way someone foobared it up
 
@SimonRigharts sorry, you are correct it is in the phone number column
 
at a guess, they didn't populate the phone number field for that sipermarket in their database, and their presentation layer code doesn't check for null values
because every supermarket will have a phone number in the database, right guys?
@ConcernedOfTunbridgeWells Strange I could swear I've seen a few questions that would fit quite nicely under that tag
(albeit a different usage of the word than we use in here...)
Ahaha I hate it when I spot typo errors in what I write approximately 2 minutes and one second after they're posted :v
 
12:47 PM
@SimonRigharts If you want a comment changed you can ask one of us to do it?
room topic changed to The Heap: General on-site discussion for dba.stackexchange.com [mysql] [nosql] [oracle] [sql-server] [yesql]
@ConcernedOfTunbridgeWells is that better?
 
gbn
yesql. very droll.
 
@JackDouglas O for Awesome!
 
@gbn I didn't think anyone would notice
 
@JackDouglas Can we have back on the heap?
 
@ConcernedOfTunbridgeWells did it ever leave?
 
12:53 PM
@JackDouglas It's not on the list of tags on the top right anymore :(
 
@ConcernedOfTunbridgeWells that's because you asked me to remove it
how about
more professional :P
 
@JackDouglas I never asked to remove it, I merely lamented the fact that there was no actual tag on dba.se.
 
@ConcernedOfTunbridgeWells well that is ridiculous - there is plenty as you well know, especially in here
even in Vote to ...
 
despite our best efforts
 
12:55 PM
I meant tag.
 
I know what you meant :-)
but my new joke is funnier :p
 
gbn
@JackDouglas and you're a mod
so I agree
 
thank you!
@gbn would bo interested in your POV on this
 
@JackDouglas I don't know what the world's coming to. First @gbn has no mullet, now isn't professional enough. Anybody would think this was a serious forum.
 
@ConcernedOfTunbridgeWells ?
 
gbn
12:58 PM
@JackDouglas bit more context please
 
yesterday, by Aaron Bertrand
@JackDouglas 100% serious. What are the benefits of creating 100 different tables for 100 different types of lookup strings? The table(s) will be in memory in either case, so the only real difference I see is programmability. I'd rather key into a single table than have to specify the table name depending on the lookup type. The latter is harder to do without dynamic SQL.
 
gbn
chesticles? covers both genders
 
@gbn so does gonads, technically IIRC.
 
2 days ago, by Aaron Bertrand
Let's create a new 3-row table for every lookup type we have, because it's more efficient and easier to manage
 
@JackDouglas I'm in your/Celko's camp on that one.
 
gbn
1:00 PM
OTLT? No, bad idea
 
ok, thanks, because I don't like disagreeing with Aaron as it often indicates being wrong
 
gbn
I'd use one table per lookup set
is that the gist?
 
@gbn Maybe useful if you want to make something that's user configurable.
 
gbn
then you get into EAV territory
 
1:01 PM
@gbn Also one of the few scenarios where EAV is possibly useful.
 
@ConcernedOfTunbridgeWells I did that once and I'm still regretting it. Also I'm still the one doing the CRUD for various reasons so lots of pain for no gain in this particular case :-(
 
gbn
OTLT: you need to constrain a lookup to the subset of rows relevant to that lookup. This means either a trigger
...or
a 2 column key including the the "lookuptype".
 
@JackDouglas It's quite commonly done that way on accounting systems.
 
gbn
And a CK constraint on the many side
 
@gbn which at least is better than a trigger, but is hardly ideal
 
gbn
1:03 PM
which side is Aaron on? OTLT or one table per lookup type?
 
OTLT
 
In my defense, it sounded like they would be adding lots of different lookup types ad hoc.
 
OK cool so I'm not the only one disagreeing with Aaron.
 
gbn
@AaronBertrand then I'd bite the bullet and OTLT
 
Oh, hi there. :)
 
1:04 PM
@AaronBertrand Sounds like the 'user configurable' scenario.
 
@AaronBertrand it's a bit hard to see now because the answers have been changed
 
I may have read more into the question than was actually there.
But it didn't sound like he had a fixed, finite set of lookup types. Seemed like a bunch of arbitrary string values that could change over time.
 
gbn
but attempt to prevent users from self harm (padding, three vs 3, colour vs color etc)
 
@AaronBertrand I've seen it done on systems before - Agresso, Oracle Financials to name a couple. The internal MDS repository seems to be an EAV structure. Kalido make a suite of tooling including a MDM tool based on an EAV model
 
yay - in fact no-one was disagreeing with anyone else, we just read the question differently ;-)
 
1:05 PM
If the lookups are well defined, then absolutely I agree, separate tables. It's when you start having to parameterize things that that goes awry.
 
That makes more sense. If your lookups are static, separate tables is easier (IMHO). If it needs to be user-configurable, then that way thar be dragons
 
@ConcernedOfTunbridgeWells they are everywhere I've ever worked
@gbn how?
 
gbn
I maintained an EAV at my last bank
 
@JackDouglas zee dragons?
 
I've actually implemented a pretty substantial EAV system where every single data point was user configurable.
 
1:06 PM
@SimonRigharts If you're doing 'user configurable' you're really up for making a robust subsystem within your application to manage the lookups.
 
@MaxVernon multi-purpose lookup tables
 
gbn
@JackDouglas That, i don't really know. never had to
 
gbn
@ConcernedOfTunbridgeWells "inner platform"
 
@gbn If you're making a user-configurable application you're essentially in the 'inner platform' game by definition.
 
gbn
1:07 PM
(slow news day at work :-)
 
@gbn Speaking of ...
 
@gbn .... how do you find that kind of stuff?
@ConcernedOfTunbridgeWells Too much bollocks for one picture, maybe?
 
@SimonRigharts On the internet that stuff finds you.
3
Suggest reddit or 4chan.
 
@ConcernedOfTunbridgeWells Especially hilarious when combined with @MarkStorey-Smith's comment (in the starred list)
("Sometimes I wonder, is this what the internet was made for? If the answer is yes, I'm ok with that.")
out of context quotes are the best
 
1:10 PM
Killer app of the internet:
1. ubiquitous automated surveillance.
2. talking bollocks
3. porn
In rough order of profitability.
 
gbn
follow up from profound programmer... theprofoundprogrammer.com/post/30309491579/…
 
@AaronBertrand Blog makes sense. "EAVs are evil" is a useful rule of thumb, but like all rules of thumb, if you are really sure you know what you are doing you should ignore it. I don't think I'd ever advise someone to go down that route unless I knew a whole lot of detail about their requirements though.
 
One of my highest-voted answers is basically "EAV is 98% evil". Maybe I should fluff it out a bit into a blog post
 
Right, you captured my point: I wasn't trying to suggest that everyone should use EAV, but rather that it shouldn't automatically be on the reject list.
 
@SimonRigharts go for it
assuming you mean here :-)
 
1:14 PM
yeah, I don't have my own blog
I probably should, might push leftovers of my misspent youth further down the google results for my name
As far as I can tell my first name and surname are unique. Which is great when it works and awful when it doesn't
 
I'm getting serially downvoted again. Sometimes I hate this f'ing place.
 
here or on SO?
 
SO, sorry, should have been more explicit. I think I've only received three or four down-votes ever here. Three in the last 10 minutes on SO.
-1
A: Two escape characters in a SQL query

Aaron BertrandHard to determine exactly what you're trying to find, but if you're trying to distinguish rows that have 1, 2, or n / characters: DECLARE @x TABLE(y VARCHAR(32)); INSERT @x SELECT 'Foo bar0' UNION ALL SELECT 'Foo/bar1' UNION ALL SELECT 'Fo/o/bar2' UNION ALL SELECT 'Fo/obar1' UNION ALL SELECT 'F...

0
A: Undo changes in SQL Server database since last restore

Aaron BertrandTo revert you can simply restore the database again from the backup WITH REPLACE, RECOVERY.

 
The downside is I've only ever used mis-applied EAV, I've never used it where it'd be recommended (which as far as I can tell is if you're supporting user customisability beyond the bounds of all reason, or if you have to support sparse data sets).
 
0
A: How to convert varchar to datetime in T-SQL?

Aaron BertrandThe right answer is to correct table1 so that it is using the right data types. In the meantime, assuming you need to match both date and time, you can try this: and CONVERT(DATETIME, t.notes_datetime, 101) = s.notes_datetime

 
gbn
1:20 PM
@SimonRigharts I read that first as "mis-spelled EAV".
time for coffee...
 
@AaronBertrand I saw that someone downvoted this one and was surprised by it
 
@bluefeet maybe they thought I stole your answer. I left mine because the real answer truly is to fix the table.
I also posted it before you fixed yours.
Which of course a casual drive-by voter wouldn't notice. <shrug>
 
i agree that the answer is to fix the table...yes, I was slow to correct my initial mistake, which you pointed out to me.
 
Well hopefully they trip the down-vote sensor and get caught. It's silly, really.
 
@AaronBertrand bonkers
 
1:25 PM
Has to be sour grapes of some kind. They're just picking random answers to down-vote.
 
maybe they mistook you for gordon
 
I wonder if one could make up a NoSQL drinking game, e.g.
Take a sip when someone mentions scalability
Take a sip when someone says ACID isn't necessary
Finish your glass when the term 'web scale' gets used in a non-ironic context
... and so on.
5
 
My last downvote on dba.se was June 12th, on this fun one:
21
Q: What database technologies do big search engines use?

rkosegiDoes anybody knows how Google or Yahoo perform searches for keywords against very very huge amounts of data? What sort of database or technologies do they employ for this? It takes few milliseconds, but they have more than a billion pages indexed.

 
@AaronBertrand In any public forum the proportion of bumping into crazies is a linear function of the number of punters on the forum. Given your posting volumes and the size of Stackoverflow you've got some non-zero chance of running into a dickhead of some description.
 
Quite true. It keeps me torn about the whole anonymous down-voting thing though.
 
1:32 PM
Shouldn't come as a surprise, I guess. At least it's not a crazed stalker - maybe.
 
gbn
@AaronBertrand I have downvotes on some of my highest voted answers
 
Yeah me too, I think people try to level the playing field
 
gbn
+94/-1 and +48/-1
 
@AaronBertrand No, they're not that organised. Some people are just arseholes.
 
+62/-2
 
1:33 PM
egotistical bastards, is what they are.
 
60
A: Update a table using JOIN in SQL Server?

Aaron BertrandYou don't quite have SQL Server's proprietary UPDATE FROM syntax down. Also not sure why you needed to join on the CommonField and also filter on it afterward. Try this: UPDATE a SET a.CalculatedColumn = b.[Calculated Column] FROM Table1 AS a INNER JOIN Table2 AS b ON a.CommonField = b...

+44/-1
43
A: Comparing DateTime structs to find free slots

Aaron BertrandSo imagine some tables: USE tempdb; GO CREATE TABLE dbo.Users ( UserID INT IDENTITY(1,1), Username VARCHAR(32) ); CREATE TABLE dbo.Groups ( GroupID INT IDENTITY(1,1), GroupName VARCHAR(32) ); CREATE TABLE dbo.Membership ( UserID INT, GroupID INT ); CREATE TAB...

 
gbn
+500 though. An older answer by me stackoverflow.com/a/982947/27535
 
Oh yeah the down-votes don't "hurt" they just don't make sense.
 
My 15 minutes of fame has 317 upvotes and 1 downvote.
Actually it wasn't even totally correct. I had to do some digging and fix an error that someone pointed out.
 
Did you say "whilst" in that post? I can't imagine any other complaint someone would have about a good, accurate post that obviously took some effort.
 
1:35 PM
@COTW: 318+ 1-
 
I think you're right though, people are just assholes.
 
gbn
although, there is a +97/-15 for accepted answer here stackoverflow.com/q/35366/27535
 
whoever did it, thanks for converting my "answer" to a comment on this: dba.stackexchange.com/questions/23273/what-is-mysql-procedure
 
gbn
coz he's talking gonads
 
@AaronBertrand Even more when they can be anonymous. Though I can see the benefits of voting without leaving comments
 
1:37 PM
@Lamak yeah I'm definitely torn.
 
@AaronBertrand In the days of bulletin boards, people complained about arseholes and flame wars. In the days of usenet they complained even more about arseholes and flame wars. Stackoverflow goes to a bit of trouble to make flame wars difficult, although it doesn't totally succeed and peiople manage to have flame wars in comments. However, they haven't managed to prevent arseholes.
There's one common factor in all of this ...
 
I find anonymous down-votes (especially when they're in the vast minority) akin to shitting on someone's porch in the middle of the night.
 
@AaronBertrand I tend to view them as more indicative of the voter than the answer they voted on. If the answer is wrong then downvote for sure, but at least try to explain what's wrong with it.
 
@AaronBertrand Have you ever done, or been the victim of, such a thing?
 
@AaronBertrand I've downvoted whithout leaving a comment before, but mostly when there already is a comment explaining why (and I happen to agree with that comment), otherwise I try to explain my vote
 
1:39 PM
@DTest shit on the porch? No.
@Lamak same here.
 
@MaxVernon Not sure if you're being sarcastic there...
 
@Phil sorry _ I should have been clear. I cannot leave a comment because I'm under the 50 reputation required... so not being sarcastic.
 
Hi, I just got an answer of mine converted to a comment. Which is totally correct. It was a comment. (well a request for clarification). However, can somebody explain to this newbie why I can not add comments to 1) initial questions and 2) Answers added by other people?
 
@EdwardDortland Probably not enough rep. See above.
 
@EdwardDortland you need 50 rep Edward
@EdwardDortland you should be able to do it now
 
1:43 PM
o gosh, I'm on a role, 51 allready . :-)
 
@MaxVernon and Max, if you're under 50 rep, you should be able to get 100 simply by linking your dba.SE and SO accounts, if you haven't already.
 
@AaronBertrand ahhh, I didn't realize that. Also, I just went over 50 from an answer that got upvoted.
 
@MaxVernon thanks for introducing me to duckduckgo
getting sick of Google
 
@JackDouglas my pleasure.
 
@JackDouglas too good for bing?
 
1:45 PM
@JackDouglas It's completely anonymous, so it doesn't customise results for you. OTOH the context in the google search does a better job of picking up relevant maternial IMO.
Depends on the situation. If your search bubble is useful to you then google will probably get better results.
 
@DTest never got on with it - no idea why
 
Context
Real men use altavista. I'm enough of an old fart to remember using it too :(
 
@DTest LOLOLOL no Bing is too good for me.
 
@ConcernedOfTunbridgeWells I don't care about anonymity in particular I just want to punish Google for 'updrading' Postini to Google Apps. Grrr.
 
@JackDouglas I'm fine with google, and don't use bing because it's too 'pretty'
 
1:48 PM
@ConcernedOfTunbridgeWells This is true. I love that I can add a !g to my search request and have DDG search Google for me, via SSL.
@ConcernedOfTunbridgeWells ahhh, Altavista was good before Google.
 
@MaxVernon Not sure altavista was ever good as such, it was just before google.
 
@ConcernedOfTunbridgeWells touché
 
I remember seeing a description of the big alpha box they ran it on at DEC in 1995-ish. It had 32 CPUs and 1GB of RAM. I remember being quite impressed with the scale of the machine.
Not sure I particularly lament OSF/1 but HP should never have canned the Alpha.
 
gbn
@ConcernedOfTunbridgeWells I used to admin VAX/VMS boxes pre my SQL Server days
and PDP/RSX for the really old bastards
 
@ConcernedOfTunbridgeWells HP should never have bought DEC. They killed a fantastic company there.
 
1:52 PM
@gbn The outfit I'm currently working on is just migrating a policy admin system off VMS.
 
I learnt to program on a PDP11 in my high school.... ah the good old days.
 
gbn
@MaxVernon DEC did shoot themselves in the foot. With artillery pieces.
 
@ConcernedOfTunbridgeWells Tru64! Those were the days
 
And I had a friend who used to use a PDP 11/03 as his personal computer. I Never did much with it.
That was RT-11.
 
gbn
I did a PDP course in , er, 1997.
 
1:53 PM
@ConcernedOfTunbridgeWells I have two Alpha workstations in my basement - they ran NT 4.0 and never got 2000.
 
gbn
@ConcernedOfTunbridgeWells ahem RSX-11 :-)
 
@gbn They were still quite widely used in industrial control systems until around 2000 or so.
 
God you old farts are making me feel young. :)
 
@gbn RT-11 was a different O/S. Basically CP/M was a knockoff of RT-11.
And DOS was a knockoff of CP/M ...
 
gbn
@ConcernedOfTunbridgeWells dont' remember it
 
1:54 PM
@gbn Probably never used it. RSX/11 was the main one used for realtime systems. RT-11 was much more basic.
 
gbn
@ConcernedOfTunbridgeWells oil rigs had them most definitely
 
@gbn DEC was still making PDP-11's until 2000 or so. RSX/11 had a fairly loyal customer base in the industrial control space and DEC made ruggedised PDP/11s.
 
gbn
they were very good
my first NT servers were Alphas
 
@gbn I used one as a pleb for a while at AK uni. There was an Alpha at UOC running VMS, but people mainly used it for running legacy SAS code.
The engineering school was quite big on DEC kit, but I did computer science and they were basically a Solaris shop. I learned CS on Intel Solaris on a really high spec (for the day) PC that was quite a bit cheaper than the cheapest entry level SPARC box that Sun made.
 
gbn
OT: I'm in 3 chat clients. FB, Skype and this one
 
1:59 PM
My first ever paid programming gig was porting a finite element modelling program to DEC visual FORTRAN.
 
gbn
and I just typed the wrong thing into the wrong one. Oops.
 
We had diskless SParcstation 1s that swapped over NFS. Black and white displays
 
gbn
@ConcernedOfTunbridgeWells I had to port FORTRAN to CORAL-66 at one point.
 
@Phil At one point UOC bought all of Sun Australia's trade ins and converted them to X terminals.
The machines we used had local disks.
Now I have someone hitting me up on Lync.
 
oops
0
Q: Is there a way to recover dropped mysql database located on online server phpmyadmin

kewlI accidentally dropped the mysql database which was in my online phpmyadmin?

 
2:02 PM
I got a good deal on a couple of shoe boxes with big ESDI hard disks and SCSI to ESDI bridges.
Put the disks on an ESDI controller and had 600MB of disk on my PC in 1992.
Well, as the saying goes:
You can write FORTRAN in any language ...
 
@DTest ouch
that is not what he wants to hear
 
not at all
 
@DTest but maybe he is on Windows?
 
@EdwardDortland Didn't realise you were in here... just responded to your comment on the FACT table Q. Feel free to throw any Qs back in here if you prefer
 
@JackDouglas I know next to nothing about windows...are you thinking he might have automatic backup configured?
 
2:10 PM
@DTest I was thinking 'undelete'
 
@JackDouglas Told you I know nothing about windows :) didn't realize there was an undelete
 
Don't empty the recycle bin :D
4
 
@DTest There are tools that can occasionally save your bacon
I wasn't referring to something built-in
 
mmm
 
Chances are, if he's got the DB hosted somewhere, it'll be Linux
(Due to licensing costs etc)
 
2:11 PM
@Phil this is my assumption as well
 
me too - just clutching at straws. poor chap.
 
"I wonder what this DROP DATABASE button does?" Clickety. "*^$^#*&$^*#$!!!!!!"
 
Never used a hosting company...do they not keep backups for their customers?
 
@MarkStorey-Smith Hi Mark, I just left you a reply, we agree on the fact that the server is very undersized.
 
@DTest unmanaged hosting? no that is up to you
 
2:24 PM
@Phil lol, and of course that's the one piece of functionality that doesn't confirm 5 ways to sunday that you actually want to DELETE YOUR ENTIRE DATASET!!!
what am I talking about. I was adding a table the other day, and when I executed the CREATE TABLE statement, sql told me I already had an object named "blah", so I typed in "DROP TABLE blah" hit F5 and then said out loud, "oh sh*t"
time to go back to the latest backup. luckily it was a table that hadn't been updated in months.
stooopid autopilot brain.
 
hehe
 
I'm guessing we've all had moments like that
 
the other day i dropped a maintenance job
 
@SimonRigharts You, too will be a crusty old fart someday.
 
@ConcernedOfTunbridgeWells this is not guaranteed
 
2:37 PM
Looks like we're finally getting Isaac rain bands now.
 
@CadeRoux I'm kinda jelly
 
@swasheck ahhh so much fun. I created a dedicated database along with a set of stored procs to handle all our maintenance plan needs. Now I just have a single SQL Agent job that runs a master stored proc that automatically rebuilds/recreates fragmented indexes, updates statistics for tables that have a changed row count, and does backups automatically. The database also has a DDL trigger that propagates design changes to the other servers on our network.
 
@MaxVernon I was completely thinking that I was going to drop an unused monitoring job ... BOOM! ... at least i've got recent experience restoring system dbs
 
@jcolebrand It is just like most of IT, hurry up and wait. At least the kids aren't here - would have been stir crazy and then escalated once power and Internet go down. They were due to fly out to Florida tomorrow for a vacation, so switched them to a flight yesterday. Hopefully can just write their trip off as evacuation expenses.
 
@swasheck restoring system db' s is not fun.
 
2:41 PM
@CadeRoux nice on the not having to have kids underfoot during this.
 
@jcolebrand I'm not sure we're going to see sustained hurricane force winds - the intensity forecasts have been dropping - maxing out at 70 on the models right now.
 
slow-moving but not gaining any force
@MaxVernon but when you're used to it --- it isnt much of anything
 
@jcolebrand Just got a tornado watch from NWS, though.
 
0
Q: how to use a different tmp dir for INTO OUTFILE select with MySQL?

pocketfullofcheeseI am trying to dump a large table (40GB, 600,000 rows) using a SELECT ... INTO OUTFILE query. I want to use that because I want my results sorted in a particular way (so mysqldump is not good enough). The problem is, I am getting an error code 28. I am pretty sure it is because it is running ou...

So tempted to reply using analogies based on the OPs username.
Sounds like he needs to empty some cheese from his pockets, or get more pockets
 
@Phil do it. you'll get an immediate +1 from me for the effort
 
2:51 PM
0
Q: In SQL Server, is there a way to return a single row of data as a 2 column table?

DucainI have a query that returns a single row of data. Let's say it looks like this (with column headers). Fruit | Veg | Meats | Nuts | ---------------------------------------- Apple Lettuce Veal Almond Instead of this, I'd like to return this single row as a two column tab...

 
@swasheck I guess I just haven't had much direct need to do that. Although yesterday an msdb almost consumed all disk space. Turned out it was having an issue with queue messages not getting deleted.
 
So, how come the only upvoted answer here is the only one that doesn't actually answer the question?. The other two do work (one is mine)
 
Sorted
Pockets full of cheese
 
@Lamak my days of trolling SO for rep are nearly over. as such, i dont stumble across your stuff
or aaron's stuff
or ypercube's stuff
 
@Phil lol
 
3:02 PM
@Lamak because it is on SO?
 
@swasheck It seems that you are a fast learner then ;-)
@JackDouglas Well......yes... didn't think of that
 
i find myself growing grumpier and grumpier on the SE network
 
@swasheck Just stay away from all of them apart from here :P
 
@Phil that's probably good advice.
i dont dislike the people ... but i find that the quality is tailing off
 
@swasheck So, it's not that you are learning fast, you are just aging fast
 
3:06 PM
and people accept it as the new norm ... so it gets upvoted and accepted and becomes the standard for an asnwer
@Lamak SE fatigue
 
The quality of questions will go downhill for the next month or two because School starts again. Should settle down after an influx of homework though
 
the majority of my time is spent in here ... i rarely even look for questions or answers
 
@swasheck but you look at them when they are posted in here ;-)
 
@JackDouglas indeed
and sometimes i try to engage ... and it works for about 5 days ...
but then i just decide i'd rather be in here
 
@JackDouglas that's the only time i get them as well
 
3:09 PM
listening to the experts
 
plus you answer plenty on bh.se
 
@JackDouglas i'm slowly disengaging bh.se but i'm trying to periodically lurk. usually the "accepted answer" is of poor quality or is something that does not fit (my) standards of bh in general. the
 
@DTest you've been known to use the review tools :)
@swasheck there too? shame.
we like you there
 
@swasheck I wouldn't say we're all experts. Some of the stuff I answer I didn't know before I answered. Just did a bit of research & tested myself before answering. The site's a good way of learning random things
2
 
@swasheck I's nice here. So much potential to learn
 
3:11 PM
I troll the gardening/landscape site occasionally, as well as the diy
been a while since visiting either, though...I tend to want to spend money after a good troll
 
@Phil indeed.
@DTest i troll DIY, homebrewing, BH, and Christianity
 
@Phil that's why I joined and it's still useful for that
 
@JackDouglas i initially liked it quite a bit. i think that my back-and-forth with a user there just left me with a bad taste in my mouth.
 
@swasheck we have had a few problem users
some are not worth bothering with
 
@JackDouglas bh.se ?
 
3:14 PM
@swasheck You should use the aaron's approach
 
This was a cool problem. Implement disk quotas within a database per user:
0
Q: SQL Server: Is it possible to limit the maximum disk usage for a user

SQLMIKEIs it possible to set a limit on the amount of physical disk space a user (or group of users) can use within a single database? For example is there some method of associating a schema with a file group and then setting a maximum size for the file group? The actual database would have other table...

I've VTC'd for migration to dba.se
 
@JackDouglas - indeed. and while i'm normally fine letting people be wrong about humanities-oriented things ... but some of the things are just so egregiously wrong and misleading that i feel like it's irresponsible to not raise an objection
 
@MaxVernon yes - not so bad here
 
I also know what my next mssqltips.com tip is going to be. :-)
 
@AaronBertrand you really mailed that one in, didnt you
 
3:16 PM
@AaronBertrand So, if I favorited that question, what happens if it gets migrated?
 
@swasheck yeah that is a bad habit of mine
@Lamak hmm, no idea, perhaps one of the mods knows
 
@Lamak you too?
2
Q: SQL Server - Update Datetime scenario

contactmattI'm in a situation where I would like to update the date of all the values in the table to have the same day but persist the time of each record. So these three dates... 8/28/2012 14:00:00 8/28/2010 12:00:00 8/28/2008 10:00:00 Should be turned into... 8/28/2012 14:00:00 8/28/2012 12:00:00 8/28/...

 
@Lamak then again, the volume on dba.se is still at a point where it won't exactly be difficult to find this question next week. :-)
 
@AaronBertrand and here it is!
 
@Lamak ... no favorite
 
3:18 PM
@swasheck yeap, they should go with the stars when they get migrated
@JackDouglas - Is there any chance that they can linked favorited questions that get migrated?
@AaronBertrand - For a moment I thought that you were being sarcastic using MySpecialTable here ;-)
1
A: SQL Server - Update Datetime scenario

Aaron BertrandDECLARE @Target DATETIME = '20120828'; UPDATE dbo.MySpecialTable SET DateField = DATEADD(DAY, DATEDIFF(DAY, DateField, @Target), DateField); This will work if the target date is before or after the value in the column.

 
@AaronBertrand you and Gordon are the answerers ... THIS MEANS WAR
 
@swasheck Gordon's answer is weird and unintuitive.
IMHO.
 
@AaronBertrand it also seems exclusive to newer versions. i was going to answer with something similar to yours, but tried to get information about the requirements. your answer deals with those requirements anyway
 
Gordon tried to have a ClearLogic answer.
 
@Lamak allegedly it does:
4
A: Add to favourites and migrate - gets stuck at favourites at the first site?

Andrew BarberWhen a question is migrated, it actually gets duplicated to the new site. That includes duplicating your "favorite" selection on it. You can remove that one. It does make it somewhat more difficult to remove it from favorites on the originally posted site, though; when you click most links to th...

 
3:31 PM
@JackDouglas hm, I mean, it still have his star on SO and links me to the question on DBA, bu it wasn't starred on DBA
 
@Lamak I've commented on that answer on mSO
 
@JackDouglas thanks
 
3:52 PM
Funniest thing I've seen all day:
 
@jcolebrand thats a pretty good show
 
@rfusca what show is it/
 
@jcolebrand The Newsroom
 
Yeah, I lack HBO
 
Ditto, but I caught like 5 episodes in the hotel last time I traveled lol
 
3:55 PM
All right, how many identical answers do we need?
0
Q: T-SQL Query / Count Rows by Partial Date Grouping

SkatterbrainzI have a table (in SQL Server 2008 R2, in case that matters), defined with the following rows. The DateAdded column is a SmallDateTime data type. ID DateAdded 1 2012-08-01 12:34:02 2 2012-08-01 12:48:25 3 2012-08-05 08:50:22 4 2012-08-05 11:32:01 5 2012-08-26 09:22:1...

 
@jcolebrand I was going to cry foul at 42
 
@Phil response from Oracle on my SR:
I am Pavithra from RDBMS team and your SR is assigned to me.
Can you upload the screenshot/spool output of the error which is occurring when you run the query?
 
well that would just be silly
 
My answer:

Hi Pavithra
Do you have a working instance of Oracle 11.2 to try my minimal working example on? If you can reproduce it you can get a trace file easily enough. If you want me to, I can talk you through the process of getting a trace file (but I expect there are some experts there on support who know?)
Kind regards
Jack
 
3:57 PM
@JackDouglas so you're supporting support
 
@JackDouglas whats the bug?
 
@AaronBertrand hm, weird. Bort's answer had a downvote before he deleted it
 
Aug 25 at 11:31, by Jack Douglas
Ok who wants to mess with Oracles head (on your dev db only please):
Aug 25 at 11:32, by Jack Douglas
select id, (select count(distinct column_value) from table(ids))
from (select id, collect(id) over (order by id) as ids from (select to_number(trunc(level/4)) as id from dual connect by level<20));
 
00:00 - 16:0016:00 - 00:00

« first day (602 days earlier)      last day (4270 days later) »