« first day (541 days earlier)      last day (4327 days later) » 

12:54 AM
@swasheck I see that. @jcolebrand left a sobering comment too
 
I try
 
It was good. I submitted a nasty-gram flag about him today.
 
That's why I left a comment
 
 
5 hours later…
6:08 AM
G'day
We have a flag to send this to you serverfault.com/questions/402668/…
if you'd like it let me knoe
 
@Iain: Thank you, we already have it :)
0
Q: € Euro sign/symbol not showing up on Oracle 10gr2 and aix 6.1

marc.rierathis is Oracle 10gr2 on aix 6100-02 The issue is that I do not manage to see the € sign from Oracle. This is an easy way to see the issue: SQL> insert into prueba values ('€'); SQL> commit; SQL> select * from prueba; EURO ------------------------------------------------------------ ¿ ...

I guess it should be closed as duplicate
cross-posting
Related: I had a bookmark on this meta question: meta.stackoverflow.com/questions/128548/…
but it was deleted?
 
6:32 AM
ok I'll delete it on my end
 
6:55 AM
Hmm. Just ran into an issue with SQL Server, maintenance plans, owners and jobs (if you create a maintenance plan and then disable the account you were logged in as, the plan's job's owner will snap back to the disabled login each time you alter the plan). Found the solution already, but is it worth posting and answering my own question about it?
 
gbn
7:10 AM
Morning all
 
@Simon: I'd say yes.
 
 
2 hours later…
8:45 AM
Morning
@ypercube - did you see my little missive about Python?
And in other news - why I love The Register:
 
Nothing to do with outsourcing ... yeah right
Also why the hell did they have anyone working alone on their batch processing. Shit, we do two-man check-and-test and the worst that'll happen if our system falls over is exam results being delayed a couple of days
2
 
I remember my aunt that worked in a phone company, inputing phone-bills (or something), many years ago, saying that all was processed twice, by different operators, to catch human errors.
And that was a trivial task.
I can imagine what would happen in another situation; "Obama: Oops, I pressed that red button"
 
@ypercube I did a search on Jobserve for Python last night and the number of jobs and salries on offer showed a definite uptick from what I'd last seen. If you don't mind working for merchant bankers you might get some mileage from hunting around for jobs in that space.
 
thnx, I've looked at that avenue, too.
 
@ypercube Best of luck.
@SimonRigharts Simple, because they could pay one person to do it instead of two.
 
9:03 AM
@ypercube Fortunately, nuclear weapon controls are slightly stricter than upgrade processes at RBS
 
@SimonRigharts Most pros in that industry are getting so old and crusty that the yanks have apparently more or less lost the ability to design new ones. I wonder just how good their processes really are.
 
Well we haven't had a warhead accidentally go boom, so I'm assuming they've done something right
 
It's pretty hard to make subcritical warheads go off. One of the security mechanisms on at least some models of warhead is they machine the fissile material and the explosive lenses to a precise shape so you have to set all of the charges off in exactly the right sequence with the right timing to get it to go off.
 
yeah, you can make a subcritical mass of fissile material critical by using explosives to compress it, but if even one of the explosive blocks is a dud, or goes off a millisecond too early, then you land up with a conventional explosion (with dirty fallout)
I did some study of nuclear warheads at university as part of physics papers
 
9:38 AM
Funny what SQL variations are allowed in some products:
1
Q: Why SQL Server doesn't treat this code erratic?

Captain Jack SparrowIt not actually a problem that i'm facing. But i'm just wondering that the first line in the code written below should be treated as a syntax error by SQL Server because of the extra comma (,) in the end of columns list. But it runs the code fine. Does anyone know the reason? CREATE TABLE #TEMP...

 
 
2 hours later…
11:45 AM
@SimonRigharts pretty sure this is a known bug connect.microsoft.com/SQLServer/feedback/details/295846/…
 
12:20 PM
If @JakeFeasal is online, or anyone else who knows about SQL fiddle, what is this error? "Component [models.Schema_Def] has no acessible Member with name [STRUCTURE_JSON]"
 
12:32 PM
So what on earth do I name a column that represents the number of business days before an event that a reminder should be sent? I can't think of anything that isn't overly long....
I think my brain is telling me to stop working already
 
ReminderPeriod ?
Is this being generically stored because you don't know the actual event date yet? If you know the event date I would rather store the reminder date than the reminder period.
 
Its an appointment reminder, and users can specify how many days in advance to get their reminder
I suppose it might make more sense to just store the date instead of the # of days.... might be a tiny bit off on holidays though
 
If you calculate the # of business days to come up with the date, or you store the # of business days and calculate the date later, how would it be different?
You need to take holidays into account in both cases. (And for this you should have a calendar table.)
 
I suppose that's true
I think I'll go that route, thanks :)
 
@Aaron: The error at SQL-Fiddle seems to get away the second time one tries to build schema.
If you change DBMS, it comes again (and then goes away the 2nd time)
 
12:48 PM
@ypercube no I get it every time
WTF.
0
Q: Nest a select statement within an update statement

kev670This is my update statement which works perfectly. If table 1 and table 2 contain an equal serial number then table 1 is updated with a yes and if it doesnt then it is updated with a no. UPDATE dbo.table1 SET [Match] = CASE WHEN dbo.table2.[Serial Number] IS NOT NULL THEN 'yes' ELSE 'no' END FRO...

 
can you try this one?: sqlfiddle.com/#!6/1dbb8
 
@ypercube well now it works
 
He didn't copy the "exact" answer, only the code :)
 
@ypercube that is just shitty behavior
 
it works for me.
Build schema -> Error
Build Schema -> OK
 
1:03 PM
Well I can't post a fiddle as part of an answer and say "oh yeah, just build the schema twice..."
 
@AaronBertrand He seems to be good at copying something and pass it off as his:
yes SQL-Server accepts it.When executing the CREATE TABLE command, a trailing comma following the last column is allowed. Based on the grammar in BOL and comma usage in lists in other T-SQL statements, this behavior is inconsistent. This is a very minor issue and does not appear to cause any adverse side-effects. It just appears that the parser may be a bit off. I'm not sure if the behavior occurs in any other DDL statements as I only noticed it by happenstance when commenting out a constraint in some code — Ram Singh 3 hours ago
 
@Lamak oh yeah it's the same guy
 
I flagged that comment.
 
Oh, that chat is really gonna be something.
 
"Hi Ram, how can I help you? Would you like me to point you to other answers I have that you can copy and claim as your own?"
 
1:10 PM
@AaronBertrand - Are you saying that he's here doing copy paste only?
 
What is wrong with people
 
really hard to say
 
@Aaron: WHy do you bother?
It's a copy-paste, no wonder about that.
("No bother" I mean: Why bother in discussing with him? Let others flag and deal with it)
I don't think he'll ever admit guilty.
 
1:26 PM
I can't help it. People do wrong, and I want to make sure they know that I know they did wrong and that I know they know they did wrong.
I have a really low tolerance for asshattery.
And plagiarism is one of the highest forms of asshattery.
 
Do these discussions ever get deleted/
or do they stay forever?
 
No idea
I'm not ashamed of anything I said, so I'm not concerned
 
I wonder how dumb must one be to think that he can do such a thing in front of (potentially) millions of eyes and go unnoticed.
 
@ypercube Sadly, a lot of them do go unnoticed
 
@ypercube chat history is logged and searchable until a room is frozen for inactivity (at least I think normal users can't see those), the room is deleted, or the messages are deleted by moderators/the posting user
@AaronBertrand great, you've made me waste one of my precious SO reps to downvote
 
1:39 PM
 
I'm sure I am sacrificing my meta.SO rep as I will be down-voted into oblivion, but I asked about this:
0
Q: What to do when someone copies your answer verbatim?

Aaron BertrandOkay, so this guy copied my code verbatim, 6 minutes after I had posted my answer. And he got the accept. He added a sentence above the code sample, which I neglected to do. But the fact that he copied the code from my answer is indisputable - it is identical right down to table aliases, whites...

It is kind of a duplicate but the other question ended up being about posting links and FGITW.
 
"(I seem to be the only person on earth who adds statement terminators as part of my answers)"
 
@AaronBertrand the other answer has been deleted :P (FWIW I flagged it, not sure if you did)
 
Yes, I had flagged it as well.
Not trying to be an asshole, but that behavior is unacceptable.
 
i flagged too
 
1:44 PM
Now I fully expect to get some random, spiteful down-votes.
 
@AaronBertrand But remember, downvotes on meta are different. <sarcasm/>
 
Doesn't look like a meta-downvote worthy post unless it's an obvious dupe.
 
oh no, I meant Ram is probably going to downvote some of my SO answers now.
It is kind of a dupe but again the suggested dupe involves copying content and building on it.
 
@AaronBertrand i throughly enjoy your snarkiness in the morning.
 
@bluefeet sorry, low tolerance today
 
2:05 PM
@AaronBertrand Oh. Whatever, he needs to learn it's not acceptable
 
@Aaron: a question about you. In this answer
2
Q: SQL Server 2008R2 - Why is my index not used

jimwI have a table defined in the following way: CREATE TABLE [dbo].[MyTable] ( [MyTable_ID] [int] IDENTITY(1,1) NOT NULL, [COLUMN_WITH_DATA] [varchar](128) NOT NULL, [COLUMN_A] [varchar](128) NULL, [COLUMN_B] [varchar](128) NULL, [COLUMN_C] [bit] NOT NULL ) And an index created lik...

by @vasja
 
I don't follow... "a question about me"?
 
Can an index be created like this:

CREATE INDEX [MyTable_Index_ABC] ON [dbo].[MyTable]
(
[COLUMN_C]
)
ON [PRIMARY]
WHERE COLUMN_A IS NULL
AND COLUMN_B IS NULL
I mean can we not include A and B columns?
Sorry, That should be "a question for you"
 
2:22 PM
Yes, that is valid. You can't use OR though, for example, or complex expressions - just constant evaluations or comparisons to NULL.
 
@AaronBertrand so on that MSSQL -> Postgres migration. Do you mind if I just copy/paste your answer into my edit?
 
@swasheck please do
 
it was a joke. just ramping up out here. headaches and allergic reactions. and now i have to present a compelling case against slapping McAfee on our SQL Servers
TPTB don't like links
 
@swasheck oh I know :-)
 
2:37 PM
Some days it doesn't seem worth it and I just want to say, "go for it, I'll be here to tell you 'I told you so.'" But I'd still be stuck with the fallout/cleanup, so that's not really a good strategy
 
@swasheck did you show them this? dba.stackexchange.com/questions/19903/…
 
@AaronBertrand yes. i did. "need more information" which, i presume means, "WHY ARE THERE NO CHARTS AND GRAPHS????"
 
@swasheck: Attach Aaron's CV
 
So I've had two down-voters on this question:
10
Q: What to do when someone copies your answer verbatim?

Aaron BertrandOkay, so this guy copied my code verbatim, 6 minutes after I had posted my answer. And he got the accept. He added a sentence above the code sample, which I neglected to do. But the fact that he copied the code from my answer is indisputable - it is identical right down to table aliases, whites...

Does this mean they think it's ok to plagiarize? How can they disagree with a question about what to do in this scenario?
 
They might just be downvoting because it's a dupe (stupid reason to downvote, but it happens)
 
2:45 PM
But I explained in the comments why it's not a dupe.
 
It could be retaliation.
 
I guess. If they thought it was a dupe, then the close(n) count should have gone up. I don't care about the down-votes, just doesn't make sense to me.
 
I'd never take less than 5 downvotes to mean very much on Meta (much like less than 2 is meaningless on the main site usually). People downvote anything, or they could just not like you, ect
 
If any of them noticed the meta question. Plus they probably got some downvotes at SO due to the attention on meta.
 
i'm pretty ambivalent about meta ... i got there for info since that's where the braintrust debates these sorts of things.
 
2:48 PM
It's probably random though, as Ben suggests.
I feel that many people downvote easier on meta.
 
@AaronBertrand upvoted and favorite-d ...
 
I added another
1
Q: Eliminate grace period for new answers

Aaron BertrandI find the grace period can lend itself to some unscrupulous behavior on popular tags. I've often seen an earlier, minimalist answer be updated within the first 5 minutes, and incorporate something mentioned in a later answer (also in its first 5 minutes, obviously) or expanded upon immensely. It...

Someone thinks it's a dupe, I couldn't find one
 
Yo
 
@AaronBertrand you may have just caught a fish, though :)
 
This looks relevant, but I wouldn't say duplicate: meta.stackoverflow.com/questions/134727/…
 
2:55 PM
@AaronBertrand are you just trying to get to 1k rep today on MSO? You sure have been busy on there.
 
@bluefeet no this incident just reminded me of some things I've been meaning to post there.
What does 1K let me do? Expand the vote count to see +/-. W00t. I can already see those on my own rep tab. :-)
 
@AaronBertrand but everyone loves the +/-
 
I know I do
 
Well it happened, I can only assume Ram down-voted this:
0
Q: Nest a select statement within an update statement

kev670This is my update statement which works perfectly. If table 1 and table 2 contain an equal serial number then table 1 is updated with a yes and if it doesnt then it is updated with a no. UPDATE dbo.table1 SET [Match] = CASE WHEN dbo.table2.[Serial Number] IS NOT NULL THEN 'yes' ELSE 'no' END FRO...

 
@AaronBertrand It doesn't appear that he has, at least not on that account. There's no hit on his reputation
 
3:05 PM
@Lamak you don't see his down-votes.
 
@AaronBertrand Really?, I thought that I would see a -1 on the reputation tab
 
Neither do I, of course. It's total guesswork unless you happened to know what his rep was right before the down-vote happened.
 
He got 170 previously. Where he got -16 ?
 
The meta discussion brought about some down-votes on other answers, such as this one:
 
and i think the 170 was after thst accepted answer was delted.
 
@AaronBertrand But if he did downvoted something, even if I can't see what answer he DV'ed, I can't see the -1 on the reputation tab?
 
@Lamak no, you can't see them. I down-voted 4 answers today, let me know how many you see on my rep tab. :-)
I can see them, but you can't.
 
@AaronBertrand nope I can't see them on your rep tab
 
Actually a mod deleted that answer by Ram, so you may not all be able to see it anymore.
It was a link-only answer, copied from another answer from half an hour earlier that had better context. Ram got the accept, and someone pointed out that Ram and the OP live 3 miles apart.
 
@AaronBertrand That's interesting. So, If you downvoted 4 answers today, and on your rep tab says that you have 173 today, and if I sum the rep detail it does add to that, then you actually made 173 - 4 rep today?
sorry, I'm just kinda confused
 
3:21 PM
@Lamak that is the number that you see I've gained today. It does not match the number that I currently see.
 
So, today I learned....SO lies to me
 
It is for a good reason
 
Oh, I know
And I agree with that reason
 
11
Q: If I downvote an answer, is the lost reputation visible to others in my profile?

Cold HawaiianI've noticed that if I downvote an answer, the record of the downvote is visible to me in my profile. But when I view my profile from another browser that's not logged into Stack Overflow, I've noticed that I don't see the record of the downvote. So I was wondering if the downvote record is vis...

 
3:35 PM
@Lamak I actually have gained 171 today, though publicly it will say 173. Here's why: I down-voted 4 answers, but two were removed:
 
I understand how it works now, thanks
 
You shouldn't see the rep changes from my down-votes or corrections because of those posts being removed. Just up-votes and down-votes on my questions/answers.
 
 
1 hour later…
4:40 PM
I wonder if I made a mistake answering this question:
2
A: getting a conditional sum with group by

LamakI would recommend that you calculate BLA taking that condition in consideration. But, another way is just using your current query as a derived table and use a CASE: SELECT SUM(Jan) Jan, SUM(Feb) Feb, SUM(Mar) Mar, SUM(Apr) Apr, SUM(May) May, SUM(Jun) Jun...

but I remember @AaronBertrand said that nobody has make it big on SO without having aptem as a stalker
 
By the way, he really doesn't seem capable of resolving any problem by himself at all
0
Q: filling in the holes in the result of a query

Артём Царионовmy query is returning: +------+------+------+------+------+------+------+-------+------+------+------+------+-----+ | Jan | Feb | Mar | Apr | May | Jun | Jul | Aug | Sep | Oct | Nov | Dec | Bla | +------+------+------+------+------+------+------+-------+------+------+------+------+-...

 
@Lamak I want to flag every question he posts with other and say, "LOOK AT THE SHEER VOLUME OF STUPID"
 
He actually has 10 golden badges about famous and good questions
 
That depends on which account he used :)
And honestly, the premise of this question makes me weep for SO
28
Q: Basic differences between Oracle and SQL Server?

Артём ЦарионовI am going on a job interview and have zero experience with MS SQL Server. However I have 1 year with Oracle. Is there such a huge difference between the two? What programming questions can I expect?

ONE YEAR
 
@swasheck part of this question probably isn't a good fit for SO anyway...'What programming questions can I expect?'...maybe VtC it. :)
 
5:00 PM
@swasheck At least he says there that has zero experience with SQL Server, but it doesn't say that he can't solve any problems by himself
 
I guess you're right. The recent barrage of o_O questions just seems like these earlier "good questions" were an aberration
As an aside ... I cannot find the "Script Data" option in the Advanced options of "Generate Scripts ..." in ssms 2008/2012.
 
Is it wrong that I keep giving him answers?
1
A: filling in the holes in the result of a query

LamakYou can use a numbers table or some table that has all values from 1 to 192. You can create that table, make one on the go using a loop or a recursive CTE, using some of the system views, etc. This is one example: SELECT ISNULL(SUM(Jan),0) Jan, ISNULL(SUM(Feb),0) Feb, ISNULL(SUM...

@swasheck its less visible
but its there
 
MS SQL Server, how do I remove a specific named instance?
 
EUREKA ... "Types of data to script
"
 
Also, how do I remove SqlExpress, do I need it since I have MS SS on here?
 
5:04 PM
@jcolebrand both answers: uninstall through Add/Remove Programs (Programs and Features)
 
@jcolebrand format c:\
 
You can't drop an instance like you can drop a database :-)
 
well the second question is more like: do I need SqlExpress?
 
If you have multiple instances of SQL Server, no. The only reason would be if you're developing apps that need to support SQL Express, that's the best way to make sure you don't use features not supported there.
 
5:34 PM
@Lamak it appears as though you have a new "special friend"
thank you so much! you have provided me with such amazing guidance and help! cachai? — Артём Царионов 30 mins ago
 
@swasheck Yeah. At the moment he hasn't really been annoying, though.
 
@AaronBertrand how do I know which one is the instance I want to remove? Select "MS SQL SERVER 64" and remove one?
 
6:08 PM
@jcolebrand can you show a screen shot of the instances you are seeing?
There should be one item that is clear is Express...
Oh I see in Programs and Features they're all bundled under a single item
I'll add the steps to the answer if you want to edit the question. I think it will be better than listing the steps here...
 
@AaronBertrand Yes. He'll need to go through and remove the instance and its features by using the main "Microsoft SQL Server" entry
 
Yay! first helpful flag on superuser.
 
@ConcernedOfTunbridgeWells nice
 
6:28 PM
@AaronBertrand yeah, I sorta have it under control :-| I have Sql Server 2008, Sql Server 2008 R2, and Sql Server 2005 installs
 
6:42 PM
I have a VM with 2000, 2005, 2008, 2008 R2, and three 2012 instances.
I don't run them all at the same time obviously. :-)
 
how can I see what apps are using this Sql Server instance before I remove it? I suppose the better thing to do is to just stop the service for a week or two and see what freaks out huh?
 
@AaronBertrand nice
 
@jcolebrand that's the easiest way, even if it takes longer. But how many apps are running on your workstation?
 
idk
pretty sure it's mostly just VS
 
@swasheck that's on Win7. On my Win8 VM I am missing 2005 because it won't install. (Even though 2000 will.) <shrug>
 
6:47 PM
@AaronBertrand And what are your impressions on Win8?
 
@AaronBertrand I remember you saying something about that
@jcolebrand Yeah. Just stop the service and set it to manual.
 
@Lamak meh, it's ok.
It's still Windows.
 
hahaha, I like windows anyway
 
I don't. Windows annoys me. But it has a place in my heart because it's where SQL Server runs.
 
... aaaand more on RBS (or should that be moron) from The Register:
http://www.theregister.co.uk/2012/06/28/rbs_job_cuts_and_offshoring_software_glitch/
 
6:49 PM
at least its a "meh" and not a "blargh"
 
@ConcernedOfTunbridgeWells I fear I'm out of the loop. What happened (I can tell that folks couldn't access their accounts).
 
@ConcernedOfTunbridgeWells hadn't heard of it, what exactly cause the problem aside of "software update"?
 
@swasheck RBS is a large bank here in the UK that outsourced a lot of its operations and has just had a very embarassing outage.
@Lamak They outsourced the management of a mainframe batch processing system with 18000 jobs.
And the 'outsourcing partner' cocked it up, which shut down a lot of their banking operations for quite a long time.
 
@ConcernedOfTunbridgeWells Was the outage because of outsourcing? Do I read correctly that there was a team on the batch system that was let go? Or did they just all retire/leave and there was no competency to backfill?
 
@ConcernedOfTunbridgeWells yeah, sorry for being lazy and ask away instead of actually reading your link (wich I did now)
 
6:56 PM
@swasheck RBS are going to great pains to tell us that the outsourcing programme had nothing to do with the outage. This is probably a big clue that suggests that the work was cocked up by one of the people working for the 'outsourcing partner'.
 
@ConcernedOfTunbridgeWells Ah yes. It took me a bit to work through the language. Slimmed down and outsourced, cue fail.
 
As an aside, does the banking industry have SLAs? Do they give you money if you "can't access your account."
 
@swasheck Bingo. However the execs who signed that off and pocketed huge bonuses for the 'cost savings' aren't going to admit that.
@swasheck Doubt it. They run the show in London just as much as they do in New York.
They may get a slap on the wrist from the FSA but I doubt there will be much if any compensation handed out.
I think the FSA have a wet bus ticket that they keep especially for this sort of thing.
 
That's a big deal. If I'm reading it correctly it's not "hey, my balance hasn't been updated" but "we're sorry, do you even have an account here?"
 
7:00 PM
@swasheck Apparently the cockup nuked all of their batch jobs. However, technical details aren't thick on the ground.
 
If a mortgage hits an autopay on an inaccessible account, there'd be some pretty epic fines. Fallout will be felt for a while.
@ConcernedOfTunbridgeWells Who admits, "yeah, I crippled the bank ... here's how."
 
@swasheck Yay! outsource the operations of our core banking systems. What could possibly go wrong?
 
@ConcernedOfTunbridgeWells Who cares? Upper management churn is so high, I'll be gone by the time it all hits the fan, with my fat payout in hand.
 
Outsourcing has gotten trendy in the square mile all of a sudden, just in the past few years. I've seen a few of the results of that up close and it's not a pretty sight.
 
That's the most frustrating thing about things I read. "You did a really CRAPPY job. You've run our company into the ground. Go away. Here's $4 million for your ineptitude."
 
7:04 PM
@swasheck That's the mentality. All looks good on the C.V. - outsourced the operations. Saved millions.
 
I wish I could get $500,000 to be fired for my bad decisions here as a DBA.
 
@swasheck If you're that far up the food chain you get to negotiate golden parachute clauses in your contracts.
 
Instead, it'd be blacklist.
@ConcernedOfTunbridgeWells Fair enough :)
 
Jon Skeet upvoted my meta question. Isn't that worth +500 or something?
I'd like this to apply to the question, as well as answers. Sometimes I (or others) have added perfectly good answers, but then the question has been changed within the grace period, making answers look foolish without any indication of what's happened. — Jon Skeet 2 mins ago
 
@AaronBertrand Congratulations. You've stepped out of the realm of mere first-world problems and into the rarefied heights of A-list problems.
 
7:07 PM
Hollywood Insider and TMZ will soon be knocking on your door.
 
Not that I'm jealous or anything ...
 
@ConcernedOfTunbridgeWells It's a nice colo(u)r on you
 
@ConcernedOfTunbridgeWells I don't believe that you're in DW at all. You're clearly a graphic artist.
 
@swasheck I used to work as a typesetter back in the late jurassic period, but I'm a crap graphic designer. Pretty much a talent-free zone.
One lady I used to work with about 20 years ago was an amazing finished artist. I saw some of her portfolio work. One thing she had was a mock up of a cigarette packet that she'd painted by hand. It was detailed right down to the typeface of the small print on the packet. She'd rendered it so well you could tell what the typeface was on something that was meant to be about 10 point.
 
7:29 PM
That's impressive
 
@swasheck I was impressed. She could also cut out and transpose letters in typeset text (bodies of 9-10 point type) to fix an error - by hand.
18:00 DEX.
 
@swasheck Why be a Graphic Artist when you can be a Hello I am GrApHiC DeSiGnEr
**Hello** I am GrApHiC DeSiGnEr. and early i tend to be web designer,and ux.

‎" I only want to speak about Graphic, why talking about something else? With Graphic we talk about everything, we arrive anywhere."
 
@BenBrocka Old school. She started around 1970 or thereabouts. I helped get her a secondhand mac so she could learn to drive pagemaker and freehand.
 
I just wanted to segue into that gem of a user profile
found that on UX this morning
stupid multiline markdown not working mumble grumble
 
@BenBrocka I'm guessing English wasn't their first langhage.
 
7:34 PM
Even then I don't know WTF they're talking about
And "GrApHiC DeSiGnEr" just makes me want to cry
 
@BenBrocka At a guess they're probably also an idiot.
 
They come in all languages
Idiocy has great i18n and l10n
 
Quite universal.
 
@AaronBertrand this looks like one just for you
0
Q: Which approach is better for writing queries for writing joins?

dotnetN00bSo we are migrating from Informix to Sql Server. And I have noticed that in Informix the queries are written in this manner: select [col1],[col2],[col3],[col4],[col5] from tableA, tableB where tableA.[col1] = table.[gustavs_custom_chrome_id] Whereas all the queries I write in SQL Server are wr...

 
@bluefeet I think you just broke him.
 
7:49 PM
Oh and I wrote the post Kevin pointed to. priceless
 
anybody wanna double check me on a task scripting for SSMS and make sure I'm able to do what I want? (typing up a gist, hold on)
Is what I'm wanting to do sane? Would you do it as inline strings output via query or run it via a cursor and exec it?
 
8:07 PM
@BenBrocka But it shows their creative side
@jcolebrand Dev?
 
@swasheck It's still unoriginal. Many a myspace user has written in the same style
 
@BenBrocka yeah
 
@swasheck aye
 
8:52 PM
how do I ask this question?
I have a table with n rows. Each row has a field that is proper TSQL
I want to exec(TSQL) for each row
I don't care the order they occur in
how do I do that?
 
@jcolebrand a cursor?
 
In MySQL I'd use cursors and dynamic sql (prepare statements). SQL Server has cursors...
but not sure if it's the 'best way' in sql server, tbh
 
@DTest I just don't even know what the question is.
how do I execute each line of TSQL in a given VARCHAR(MAX) field as a query?
 
Here is an example. `CREATE TABLE HereAreMyQueries(Query VARCHAR(MAX))

INSERT INTO HereAreMyQueries
VALUES ('SELECT 1 AS A'),
('SELECT GETDATE() AS B')



DECLARE @Query VARCHAR(MAX)
DECLARE Queries CURSOR LOCAL STATIC READ_ONLY FORWARD_ONLY
FOR
SELECT Query
FROM HereAreMyQueries

OPEN Queries
FETCH NEXT FROM Queries INTO @Query
WHILE @@FETCH_STATUS = 0
BEGIN
EXEC(@Query)
FETCH NEXT FROM Queries INTO @Query
END
CLOSE Queries
DEALLOCATE Queries
`
Sorry, for some reason sqlfiddle is not working for me
 
@Lamak aye, but is that the most elegant way? Anyways, this is a one-off, so no loss.
 
9:02 PM
@Lamak very nice. I like not having to create a prepared statement and just passing the string into the EXEC() function...
 
Oh, I guess that doing something like SELECT Query + ' GO' FROM Queries and then copy that result on another window and press F5 could be more elegant
 
heh
 
You can also use the quirky update to generate a monster EXEC:
SELECT @Query = COALESCE(@Query, '') + Query + CHR(13) + CHR(10) + 'GO' + CHR(13) + CHR(10)
FROM HereAreMyQueries
EXEC (@Query)
 
I guess I brought this on myself
lamak im sorry i slightly needed to change the query and your solution is not working for this for some reaosn — Артём Царионов 1 min ago
Aptem unaccepted my answer because he needed to change his query and my answer were no longer working with his new change
 
Obvious drawback there of the giant string - note that you cannot PRINT giant varchar variables or columns in SQL Server (unless they fixed this in 2012) - they will EXEC larger than they can print.
 
9:17 PM
Even though my answer still works for the question that is posted
Nope, he changed the question again
should I flag this?, the question is really different now
 
@Lamak Make a new answer on the same question, you'll be able to get votes from the same people who voted up your earlier answer to the original question. Even though the questioner should have asked a different question, you can still get credit. Not that it's all about the rep, but anyway.
@Lamak Flag it - this guy has been a bozo for a while now
 
@CadeRoux Thanks for your advice, but I'm not gonna do that kind of effort for him now. I answered two of his questions today, that's enough for me
 
@Lamak your choices are 1) leverage for rep, 2) ignore
 
@Lamak I would either flag it or tell him to post a different question since you answered his initial one
 
you chose wisely
@Lamak what's the question?
 
9:21 PM
@Lamak OK - if you were going to put the effort in to track his changing question, I would do it under a separate answer.
 
@CadeRoux He left me some comments for me to notice that he changed the question
would you be so kind as to look at my query once more and see if there's a quick fix? — Артём Царионов 7 mins ago
@swasheck Option 2) it is.....after leaving him a comment, though
 
very courteous comment, I'd say.
 
@Lamak Reply with "Would you be so kind as to put this in a separate question since you've changed it so much as to not be able to modify my answer on your own and you will confuse later users of this site."
 
@DTest I tried my best
@CadeRoux He re-accepted my answer now. And the question was rollbacked by the omnipresent @jcolebrand
 
I would never ...
 
9:29 PM
lol
 
@Lamak He doesn't really have a point about being a duplicate - if the question was really that close, he should be able to use a modified version of your answer. It kills me when they get a spoonfed answer and then can't modify it because they don't really put any effort into understanding how and why the solution works.
 
@jcolebrand Thanks, I was about to ask if the proper thing to do once he reaccepted my answer was to do a rollback on the question, since the answer wouldn't have made sense
 
Either that or fix your answer so it does
 
@CadeRoux Just what I was about to tell him
 
@CadeRoux this guy is one of the worst offenders of that
 
9:31 PM
@jcolebrand duly noted
 
@jcolebrand i'm flagging like crazy. be nice to me
 
Why do I feel like some old bearded man sitting in the middle of the jungle nodding at people and issuing edicts? I'm just 32 :p
 
Make it so
 
@jcolebrand Just put it on the iPad. Won't make me use it more, though.
 
did you do the tour yet?
 
9:34 PM
@jcolebrand trying to. lot of cell interference
@Lamak ... at least Artem agrees with me :)
 
I'm curious if that one has more than six tabs to swipe through, the iPhone was pretty short
I liked it
 
@АртёмЦарионов - This broaches the topic of knowing what you are asking. Take some time to think through your questions and use them as potential learning experiences and not one-off, symptomatic fixes. — swasheck 6 mins ago
@swasheck i totally agree with you — Артём Царионов 5 mins ago
 
@swasheck I wonder if he understood what you said
 
@Lamak GoToMeeting time
@swasheck Now he's your friend.
 
@jcolebrand Google also dropped the Cloud Compute bomb today, too.
 
9:37 PM
oh? do link
 
@CadeRoux I was his first. Then I ignored
Then @AaronBertrand
now @Lamak
 
@CadeRoux Can I use part of your previous comment on a comment to aptem?
@CadeRoux - don't make my mistake
of starting to answer his questions
 
@Lamak Sure - just don't mention my name. I don't want any enemies
@Lamak OR friends
 
Of course I won't. Its this part: you should be able to use a modified version of your answer
 
@Lamak I'm wondering if answerers above a certain rep should be able to lock their answers from comments from people under a certain rep
 
9:39 PM
I struggle with my english sometimes
 
@CadeRoux META
 
@swasheck No, don't do that, you will be severely downvoted with that. I saw a similar post once
 
@swasheck Rep isn't really enough to do it.
 
@CadeRoux @Lamak some rep, badge, age on site combo
i don't fall into any of those categories so i'd be the lockee and not the locker
 
@swasheck You'd think they'd just add an actual bozo bit we can literally flip.
The term bozo bit has been used in two contexts. Initially a weak copy protection system in the 1980s Apple Macintosh Operating System, the term "flipping the bozo bit" was later reused to describe a decision to ignore a person's input. Weak copy protection In early versions of Apple's Macintosh Operating System, the "bozo bit" was one of the flags in the Finder Information Record (also called the "no copy" flag in some documentation), which described various file attributes. When the bit was set, the file could not be copied. It was called the bozo bit because it was copy protection so we...
 
9:43 PM
I'd probably end up getting the bozo bit
 
Too harsh, or too soft?
@АртёмЦарионов - I'm sorry to say this, and I don't mean any offense. But if you really think that your new question would be closed as a duplicate, then that's a symptom of your lack of an effort on adapting the answers you have at your dispossal. You should be able to use a modified version of the answer I had provided without the need to change the question. — Lamak 2 mins ago
 
@Lamak Sounds fine. That guy seems to be a weird one
 
@Lamak too soft
 
The dude abides ...
0
A: Index defrag takes forever to run

PeterI used to mess around with DBCC INDEXDEFRAG and even ALTER INDEX REBUILD. Then someone turned me on to Diskeeper. I just installed it on the server and never had to deal with this again - checked off my list man. Seems pretty simple to me, but just my 3 cents :-) -Peter

@bluefeet R. Lee Ermey?
 
@swasheck He stood at infinity and saw that the index defrag took forever.
2
 
9:48 PM
@bluefeet my next comment to Aptem will be ... rleeermey.com/sounds/dirtbag.wav
 
@swasheck that might be too harsh
 
@bluefeet yeah, maybe. Well, next time I won't be
 
10:24 PM
If I want to pursue Microsoft SQL Server Certification, which path should I pursue? The newest version, or prevailing version in production?
 
10:41 PM
I would say newest version. It is probably 80% existing versions anyway. And why not get the one that will last longer.
 
10:54 PM
That was my thought as well, just didn't know if that was wise.
 
11:54 PM
@swasheck The Big Lebowski quote spotted ;)
 

« first day (541 days earlier)      last day (4327 days later) »