« first day (1648 days earlier)      last day (3213 days later) » 

2:42 AM
Hi all - there was a post about 2 hours ago offering to sell EU passports and other ID documents. I flagged it as illegal activity but I also deleted the text. I was then told by "Undo" not to edit spam. Is the only course of action to flag and nothing else? It was particularly egregious so I thought that I was doing the right thing - but what is the group consensus?
 
 
4 hours later…
6:18 AM
@Vérace I agree with you. I think I would have done the same, after checking if there were any mods around the Heap. Assuming we're talking about dba.se
 
@MikaelEriksson I must say I find their question very provocative. And their choice of a nickname doesn't help at all.
 
@AndriyM Hard to say about what the question is about. Should the title be "(Cross Apply over inline sub-query) vs (CTE over inline sub-query)"? And the CTE query provided is invalid so...
 
@PaulWhite ran into a meeting yesterday and forgot to say thank you for your help
 
And there is a dupe on SO posted 1 hour after this one
The person who close voted it. I had posted it at dba.stackexchange.com but haven't got any reply/comment. So posted it here. — TheVillageIdiot 2 hours ago
 
@PaulWhite Yes - it was dba.se. It's the only one of my forums on which I have the power of editing without needing approval. I did flag it to the mods, but they were taking their time (not there?) and I thought that the best thing was to get rid of their excrement.
 
6:29 AM
@MikaelEriksson Very well, thanks, I was about to write an answer.
 
@TomV No worries. Thanks.
 
@AndriyM Not sure what to do with this one. If you have an answer for him you could write it. And perhaps vote the SO question over to dba and then close as duplicate. It also probably could be closed here as too broad, at least when enough of us has figured out what he is actually asking about :).
 
For one thing, I think I've seen a question here recently closed with a custom reason as a cross-post (unanimously, judging by the number of votes on the close reason comment). But also, since the SO question has already got answers and the DBA one hasn't, we could migrate it the other way and close as a duplicate at SO.
 
0
A: No advantage of using Cross Apply or CTE over inline sub-query

Paul White But the execution plan for both is same as shown below: The plans are different. One is an inner join, the other is an outer join. The results may be the same in your simple test, but the semantics are different. In more complex queries, the difference may cause more obviously different exec...

 
Too late to migrate then :)
 
6:43 AM
I doubt it will get accurate answers on SO.
Voted to migrate it here so we can close as dupe/merge.
 
And just one more vote needed
 
I was tempted to close it as a duplicate, but I fear that would reject the migration. Flagged it for a moderator to merge (if possible) instead.
 
I think duplicates do not end up rejected migrations. If I remember correctly, it has been done in the past (closed as a duplicate, then merged). I might misremember, though.
 
Should I risk it?
Boom! You were right.
That's good to know.
 
7:01 AM
And you effectively marked my flag as helpful. That's interesting, and good to know as well.
 
7:14 AM
This question
3
Q: Optimize a SQL query

VivekhI have to select 2 values that were less that the given id and greater than the given id. I have tried this query but is there any better way to do it Fiddle Sql Begin declare @rootValue int declare @repID int set @repID = 2 set @rootValue = (select Id from tblLookups where Id = @repID) dec...

I agree that it doesn't explain the problem in the clearest possible way, but... Three people upvoted and two starred it, it's got two answers, one accepted too. So the overall situation makes little sense, don't you think?
I mean, shouldn't it be re-open?
 
Yes, one more needed.
 
@PaulWhite Yes - it was dba.se. It's the only one of my forums on which I have the power of editing without needing approval. I did flag it to the mods, but they were taking their time (not there?) and I thought that the best thing was to get rid of their excrement. Just to be clear, the excrement I'm talking about was the spammer's - my language was ambiguous, it could have been construed as a critique of the moderators, which it wasn't.
 
@MikaelEriksson Ah, it's being voted then, I can't see the votes yet.
 
It has 4 reopen votes already
 
Right, thanks
 
7:40 AM
Including mine, 5th person needed to reopen. Or a mod :)
@AndriyM I suppose the other side of the argument is: what would reopening achieve?
 
@PaulWhite Are you saying that mods are not persons? They are bot's right? But I have met Aaron so it must be bots impersonating real people.
 
I'm sure I meant inclusive OR :)
 
@PaulWhite "Always" a valid point :) Not in this case, anyway. "So that someone could post another solution" would be my reply.
 
And I would agree
 
@PaulWhite Of course, my bad, otherwise you would have said. "5th person needed to reopen. Xor a mod.". Perhaps I am a bot and not a very good one :)
Last day before 4 week holiday might also explain my .... well ... 5 hours to go.
Weather is rain and 10 C. Something like a NZ winter I guess.
 
7:58 AM
@Vérace re your question about editing spam, I think we have enough active users here that obvious spam gets swatted quickly enough, so I think the logic on this M.SE post applies here too:
75
A: Should Spam posts be edited?

Simon SheehanThis was recently brought up at the Super User Meta also. Why shouldn't we edit spam posts?: Usually spam is easy to spot, and gets removed very fast. 6 spam flags deletes the post. Moderators can easily see (or search for) the links posted by spammers, and can blacklist sites once it is pos...

@PaulWhite thank you :)
 
moin
 
I didn't think you'd need us and I'm glad to see I was right - it's had a 5th reopen vote
@dezso good morrow
 
does this make any sense?
0
A: Installing SQL Server 2000 32-bit on Windows Server 2008 x64?

Qaiser HameedInstall MS SQL server 2000 via setup instead of AutoRun... setup can bypass the compatibility check very easily... Try this... Thanks and regards Qaiser Hameed

If ever you want to port this system to another RDBMS you'll be in trouble. New programmers won't understand this. You should change this now. — Vérace 17 hours ago
@Vérace I see this argument ever so often when choosing from syntax alternaives
but how often does this actually happen?
 
8:14 AM
I have yet to come across anyone that wants to port an entire system from one vendor to another
2
 
and from those cases, in what proportion you don't have to rewrite nearly everything, regardless of these choices?
 
In reference to the question linked, the comment is correct. If I saw the (+) notation, I'd have no idea what it meant
Not sure what is wrong with a LEFT JOIN
 
@MarkSinkinson we do
there is no warning set up for it (except the disk is getting full alerts), but there is a nice chart showing DB size in our historical views
 
@MarkSinkinson most Oracle folk still know what it means and I work with a DBA who still prefers the syntax
the risk of digging through old working code just to change the join style is completely disproportionate to the benefit, so I think the comment is misguided
most of the time you have to work with what is already there
 
@JackDouglas I would agree with that, however if you're already making a change to an existing query, or are developing something new, I'd tend to bring it inline with current standards
3
especially when I come across old style JOINs
 
8:26 AM
@MarkSinkinson I sometimes do that, especially if it makes the change easier which it sometimes does
In this case I think he's asking about understanding existing code - it's a little unclear from the question
 
@JackDouglas @Vérace I think I'd still edit it if I had flagged it as spam and nothing had been done about it after an hour or two. The site can be very quiet at weekends.
 
@MarkSinkinson I have. Someone wanted to move the system I work with from SQL Server to MySQL to save money in a hosting solution. I provided some feedback on what we had to do to make it happen and have not heard from them since.
 
@MarkSinkinson but for me its always a pragmatic choice - having a code base with a mix of both styles isn't a great help to new programmers either
@PaulWhite maybe it's best in that case to edit out the links but not disguise the fact that it is spam?
idk
 
Probably idk either.
 
9:08 AM
True\False ::: Update statement doesn't throw error if Where ID = 11 (doesn't exists)
True, because it doesn't finds anything
 
^^ Huh?
 
@Learner is this an exam question?
 
I was confused, but brain started working itself, it was supposed to be a stupid question
 
In SQL Server no error will be thrown if the ID doesn't exist
 
That is true
@MarkSinkinson enjoying sun today ?
 
9:12 AM
Hard to believe it was supposed to be a stupid question. Anyway, it's always good news when someone's brain starts working :)
 
@Learner Stuck inside an office? No.... :-(
 
:22685093 Where function is like a loop which checks each record and try to match given parameters ,

Where(bool match)  // looping function
{
    if(match == true)
    {
            // Do this, e.g. Update this record or update it
     }
}
can't see any exception rising there by any chance :)
@MarkSinkinson move next to window lol
 
@Learner this is not sql.
but if your code, sends an update statement that has a where ID=11 that matches no rows, then what Mark said, no error is thrown.
 
@ypercube that was for understanding how SQL works behind code, SQL is not a discovery it's an invention :)
 
not sure what that means
 
9:27 AM
you are not alone
 
SQL has been developed by C++ (I think) and above code is sort of an example for Where function as how would it be compiled in background
am I the only programmer here :(
 
@Learner No. But if that code is meant to be an example of how sql compiled code would be, it's an over-simplification.
 
@Learner "SQL has been developed by C++" nope. SQL is a language. And then there are products like Oracle, MySQL etc that use SQL to allow a developer to do stuff with the data. There is usually some feature in those products that allows you to look at how the SQL command was executed. For SQL Server it is the query plan.
 
Written in C, C++
https://en.wikipedia.org/wiki/Microsoft_SQL_Server

Sorry I meant SQL Server..
BEGIN
	DELETE FROM dbo.Membership
		WHERE
			((ID=@ID OR @ID IS NULL))  OR (
			(CompanyID=@CompanyID OR @CompanyID IS NULL)  AND
			(UserSID=@UserSID OR @UserSID IS NULL) AND
			(Role=@Role OR @Role IS NULL) AND
			(StartDate=@StartDate OR @StartDate IS NULL) AND
			(EndDate=@EndDate OR @EndDate IS NULL))
END
with this stored procedure, I would like to either update record with provided ID, or otherwise with rest of all provided para
but it doesn't seem to like it at this point
 
9:46 AM
@Learner You better post a question at the site for this. With your code, what you want to do, what happens, etc.
By the way, this will delete, not update.
 
10:06 AM
are we helping someone pass a test here?
 
10:28 AM
I doubt it.
Maybe helping them fail :)
 
10:39 AM
@ypercube there is a very nice post about the same on our site
(lame self-promotion)
 
11:00 AM
@dezso link it!
 
So that it gets the punishment it deserves!
 
23
A: Granting access to all tables for a user

dezsoFirst, you have to be able to connect to the database in order to run queries. This can be achieved by REVOKE CONNECT ON DATABASE your_database FROM PUBLIC; GRANT CONNECT ON DATABASE database_name TO user_name; The REVOKE is necessary because The key word PUBLIC indicates that the privi...

3
A: postgresql - granting schema to users

dezsoYou get the message No relations found. because the user does not have the USAGE privilege on the schema (neither granted directly, nor through the public pseudorole). You can check this by comparing \dn+ mra_dev_schm_99999 on the two databases. This is what the documentation says about t...

 
bah I've already downvoted both of those
 
me too
 
11:20 AM
I didn't but I have now. Take that!
 
me three
 
another hidden gem:
1
A: GRANT USAGE on all schemas in a database? postgres

dezsoYou have at least two options. The first one makes use of a small query and a text editor. We have to collect the schemata of our interest: SELECT nspname FROM pg_namespace; You can add a WHERE clause if you want to limit the scope. Copy the output and amend it, so you get a number of G...

 
Im just too fond of my rep to down vote. Upvote is free +1 @dezso.
 
11:42 AM
@ypercube a hint to this gem as well? :P
 
12:05 PM
@MikaelEriksson I meant upvote :)
@ypercube that really is a gem
 
hey, guys, what have you done? :)
thanks a lot
BTW, the plague attacked our servers this morning
 
@dezso that'll learn you
the plague?
 
yeah, had to do several failovers
master node lost due to NIC failure, memory pressure on the promoted slave and so on
 
Anyone know a good procedure to quiesce a CHILD process? It's only meant to be active in daylight hours, but recently has refused to accept the SLEEP command. IO seems to be working properly. The Chief Operator's off duty, after dealing with several days on-call. I hope its not a system bug.
 
I got a notification that there is a spam message in a room I've never seen before
@MichaelGreen we usually give him food, tell tales, sing or similar
watching videos of U-bahn is a secret weapon of ours
also, sleeping instead of work is a workaround
BTW, what's the uptime?
 
12:19 PM
U-bahn videos? Trains off youtube?
Uptime is 05:00 to 22:20 and counting.
 
@MichaelGreen yes, specifically from Berlin - but some high-speed trains are also good
 
This is the scale-out instance which was only installed just over a year ago. I think the warranty's expired, though, and I can't find the documentation.
Hmmmm .. saturate the input stream and cause the system to crash overnight. Worth a try!
Train footage would very very acceptable test data, given the system's current development. Thanks.
 
12:42 PM
these problems just go away by themselves - the only problem is that you never know after how much time
in our case, co-locating the process with the parents also helped a bit (having the backside that when the CPU load raised overnight both parent sleep() calls were interrupted immediately)
 
1:07 PM
@dezso Downtime has been achieved. We've had success with a co-location solution but, as you say, it puts extra strain on the parent table, so we try to keep that as a DR solution. Anyhoo, time for some essential system maintenance. Catch you later.
 
seems about right
 
2:30 PM
@dezso Granted porting is not common - what is far more common is for companies to try for the "of course we support your database sir, of course"... which leads to common-denomitorism - which is related, but not identical to, porting. BTW, when you said "argument ever so often", did you in fact mean "argument ever so often" or "argument every so often"?
 
6
Q: What is the correct usage? "Ever so often" or "Every so often"

geekdesigngirlA colleague asked to check in with me every couple of weeks. I would like to respond that it would be wonderful if they checked in ever so often. But, I don't believe that sounds correct. How should I phrase it?

(to illustrate the difference)
 
Hiya @all..
quick poll: you want this question?
2
Q: Hotel reservation system with Discounts and Deposits

Dev14I'm making an hotel reservation app.It has the following features Promo Codes: The guest can choose to pay half a certain percent of the total_amount or the entire total_amount. I want to use stripe, paypal and authorize.net as payment gateways. Reservations are stored here CREATE TABLE `res...

seems like a normalization / schema-review to me....
 
2:50 PM
@Vogel612 the question looks a bit silly now - after the edit.
> How does this look to you?
 
as opposed to:
> How do I keep track of such things ? I mean what is the right way to structure these tables ? I don't have any idea on how to fetch this for later use and for other operations.Can someone give me a tutorial link about ecommerce with discounts and deposits(I google a lot but couldn't find one similar to my app) or give some help on this?
sure it might need a little cleanup, but the stuff below was not edited..
 
Yes, the part "I mean what is the right way to structure these tables?" seems to be key point in the overall question.
 
that part is way off-topic on CR though, because it's a design issue
so editing it out for CR was imo the right call
IIRC the migration carries over revision history...
 
I'm torn. On the one hand it is a pretty reasonable question. On the other, it's pretty localized and schema review is a grey area of on-topic-ness.
What say we accept it and see what happens?
 
so the question is right off topic for CR? Because the only code is the CREATE TABLEs
 
2:53 PM
it's so close to off-topic as it can be...
the problem with schema reviews for CR is that it's a design that's under review
there's no "code" so to say
DDL is only a skeleton
 
@PaulWhite I agree with that. No idea how migrations from non-SO sites work though.
@Vogel612 can you do it alone or we need to summon our @@@@mods?
 
I assume @Vogel612 is a mod, so can migrate anywhere.
 
can't do it alone, already flagged on CR, though
we're not quite graduated yet, so no user-defined migration paths
@PaulWhite nope. If I were my username would show up in blue here
 
Ah true.
 
then again I'm currently running in the CR elections, but that's a different matter
 
3:04 PM
Sounds like we need to register and black ball your candidacy then...
 
@Vogel612 good luck
 
Don't mind Bill, he thinks he's funny :)
 
thanks :D
 
and he couldn't vote anyway
You need like 150 or 200 I think to vote in elections
 
150.
 
3:07 PM
Tsk, you non-'merkins don't know nothing about rigging 'lections
 
but 150 rep are one day's worth of CR answers
rep is fast at CR
 
Or fried chicken
3
 
hmm fried chicken
 
(long standing joke from our favorite kangaroo hugger about my handle being bill-in-kfc)
 
Sigh.
 
3:10 PM
:D
A guilty conscience needs no accuser
 
It's weird watching The Ashes (as I am currently). I sort of want both sides to lose.
 
That's understandable (once I bingled The Ashes)
 
@Vérace /me confused
 
@Vogel612 don't worry, it was meant for another user.
 
@AndriyM "Every so often" means "once in a while" - "Ever so often" means "frequently/regularly" , perhaps even more - it's almost a lament. Since it's an easy mistake to make for a non-English speaker, I was just wondering how forceful @dezso 's argument was.
@Vogel612 Check out my explanation to @AndriyM
 
3:20 PM
INSERT statement INTO answer;
 
@Vérace good question, it turns out I meant 'every so often'
but I don't remember for sure, I see it too often, i'd say ;)
 
Yo
 
3:43 PM
@Vérace Yes, that's what I derived from that thread too (the difference wasn't entirely clear to me at first). Thanks for confirming my conclusion.
 
@dezso Nem boj.
 
baj
but for most foreign speakers it sounds an o
9especially when I am saying it :o)
 
@dezso Always confused me, the "a"s and the "o"s. I had other things on my mind.... :-) How about semmi gond?
 
Are you speaking some Uralic language?
 
3:47 PM
tökéletes
 
@AndriyM Magyar.
 
pontosan
 
@Vérace Thought so
 
@Vérace how do you know these?
 
@dezso Koszonom szepen.
 
3:48 PM
He's ninespecial
 
which means?
 
@dezso Blame a Hungarian girl :-)
 
2 mins ago, by dezso
9especially when I am saying it :o)
^ ninespecial ^
 
Subtle
Ninesubtle
4
 
3:50 PM
OMG
@Vérace this happens every so very often
 
@dezso ilyen az elet a baratom! Such is life, my friend.
 
4:06 PM
@dezso Ever so true.
One of my colleagues has a Hungarian girlfriend and another one (now gone to a different company) tried to have - a Hungarian girlfriend - but failed.
and there are only 10 people in the office
 
@ypercube once we had a lunch with some colleagues - a Brazilian and a Colombian had Hungarian girlfriends, the third one some Hungarian cousines, and I was the fourth
and this happened in Berlin
 
seems like Hungarian girls like Latin Americans. My colleague is from Venezuela ;)
 
Now I'm hungry </drEvil>
 
that's sooo original
 
Inorite?
 
4:21 PM
well, I haven't heard it yet this week
 
You need to hang out with more Americans
 
in the meantime, I switched on the Erwin mode, editing some old posts of mine
are you telling me they all have the same sense of humour as you?
 
I thought we were all crass, uncultured swine
 
Are you sure a SQL join will produce HTML for you? — dezso 7 secs ago
 
4:40 PM
0
Q: What is the recommended RAID configuration for data Warehouse?

SQL_DBA_BiniI am trying to understand if there is RAID best for data warehouse.( for version SQL Server 2012 or 2014). so What is the best RAID for data Warehouse performance wise? What is the recommended RAID for SSAS and SSRS?

is the question it points to as a duplicate a duplicate?
 
5:10 PM
Curiously, in the comment @Kin linked one question, but ended up closing as a duplicate of another.
 
@MartinSmith Chris Adkin has a full listing up now (sorry to keep bugging you about this :): exadat.co.uk/services
 
@swasheck Stop that now, haha
 
Much better
 
@MikaelEriksson howdy
 
@swasheck Hello
 
6:36 PM
@MarkSinkinson I don't think it's terribly uncommon for vendor apps that are either ubiquitous (e.g. SAP) or verticals where there aren't enough customers to insist they all run the same database platform.
In my experience it results in an app that either uses the database in a weird way or applies coding patterns that work well on one database but cause horrible problems on another.
I agree it's close to irrelevant in the context of that question, though.
 
just spun up a windows 10 vm. i called it winten. that's pretty original, if you ask me
 
@swasheck If there were an award for originality, you would not win it.
 
6:58 PM
@billinkc You are - at least you.
@JamesLupolt It's pretty uncommon for vertical market players to support more than one database platform. SAP does - Oracle doesn't (except maybe for legacy Peoplesoft and JDE customers). Most smaller, niche market players will only support one platform.
 
You are a good contributor and I don't see anything wrong with you posting this as an answer - though perhaps you should make your association with TwinDB more clear? — Jack Douglas ♦ 52 secs ago
^^^ That's on a post that was flagged as spam
happy to be out-voted if you all think it should go...
 
@MikeFal how original
@JackDouglas he edited
 
7:28 PM
@swasheck that was quick
 
 
1 hour later…
8:51 PM
@ConcernedOfTunbridgeWells Maybe it's just a coincidence, but I've come across a few in energy trading: Openlink Endur and Exxeta. I think Intellimatch might too, but I can't find a reference online and it's not really an energy trading specific app anyhow.
In some cases I'd guess it was because a customer was willing to pay a vendor extra not to have to buy an Oracle license, or an Oracle DBA.
I helped a few customers with MySQL -> SQL Server migrations at Rackspace, but those were fairly abnormal. MS Access + VB -> MySQL + PHP was a more common (and more painful to watch) platform shift.
 
9:07 PM
ahem
 
@billinkc Big MS Access fan, then?
 
Google says that tomorrow is @PaulWhite's birthday and since it's already today there, let us all wish Paul a most happy 57th birthday.
7
@JamesLupolt Access ranks a notch above getting kicked in the junk for favorable items
 
9:57 PM
@billinkc is this number some Kansas-based joke?
 
@dezso Nope, just a number that was larger than the truth and therefore makes me giggle
Also Kansas City is in Missouri, at least the only one that matters
 
@billinkc well, your nick is not billinkcmo
but I will remember that I have to be careful
 

« first day (1648 days earlier)      last day (3213 days later) »