« first day (528 days earlier)      last day (4341 days later) » 

gbn
7:01 AM
hello
 
7:38 AM
Evening gents
Today I learned to not go drinking on a Thursday night if you have to work Friday
Longest. Friday. Ever.
 
hi
 
8:01 AM
Where is @Phil? Long time I haven't seen him around.
 
8:47 AM
@ypercube Indeed. Maybe he's busy with something.
 
 
2 hours later…
10:41 AM
My google-fu is failing me... where's @AaronBertrand's article on why you should upgrade to 2012 and why waiting for SP1 is daft?
 
11:01 AM
Two almost identical question by Jon Thio:
0
Q: Can we use innodb to store latitutude and logitude and retrieve 20 closest points well?

Jim ThioI've heard that innodb Why innodb doesn't store geospatial data? store geospatial data but cannot index it. Not really sure what it means. Is it a good idea to ask 20 closest businesses if point is stored in innodb?

0
Q: How do I get spatial index feature if I mainly use innodb?

Jim ThioMy current strategy is to create another table in myisam that contains those spacial information. Then if I want to find 20 closest business, I'll just use join. Is this a good idea?

@MarkStoreySmith: Perhaps you meant this answer by @Aaron?:
17
Q: What are Objective Business Reasons to Prefer SQL Server 2012 over 2008 R2?

usrMy company is facing the decision whether to purchase SQL Server 2012 Denali or SQL Server 2008 R2 for a new database server. I am looking for objective reasons to choose one over the other. Our requirements: Standard edition (for financial reasons and a lack of need for enterprise features) O...

 
@ypercube Cheers, that's useful.
 
And an answer by @COTW about the BI edition (and differences between editions):
5
Q: Sql Server 2012 data warehousing and different versions

Chris MarisicWith Sql Server 2012 there are 3 flagship editions: Enterprise Edition, Business Intelligence, Standard. The full comparison between the three: http://www.microsoft.com/sqlserver/en/us/future-editions/sql2012-editions.aspx The business intelligence edition implies that the purpose of it is for ...

 
 
1 hour later…
12:39 PM
For @Aaron and your "How (not) to write questions":
Don't change the question after someone has answered with something that solved your problem!:
Harassing @Lamak: "Your answer works but now I want something else" ...
 
1:04 PM
@ypercube yeah that's a good one. Looks like this guy is going to correct it though.
 
does HQL has issues with ORDER BY?
especially with computed columns? See this:
0
Q: HQL Order by query giving problem

amar4kintuI have following query written in HQL for Hibernate. ======================================================================== select new map(ret.retailerDesc as ret_name, ret.id.retailerId as ret_id, ret.id.serviceId as service_id, (select count(distinct i.inspectionId) as ins...

 
What the hell is "col_1_0_" that the self-accepted answer talks about? Seems real intuitive
 
no idea.
 
Seems very brittle (like ORDER BY 1). You change the order of the columns, you change the meaning.
 
The OP of this question (I answered):
2
A: HQL comparison inside the select statement

ypercubeNot sure how this can be transformed into HQL but your query could be written as: SELECT m.id, (SELECT COUNT(*) FROM SubqueryTable...) > 0 AS b FROM MyTable AS m; But perhaps you could use this - which seems to be bypassing the problem as it is using INT columns: SELECT m.i...

complains that ORDER BY b and ORDER BY 2 result in error.
 
1:15 PM
Does anyone agree that this question needs better clarification?
0
Q: How to search between date and time - SQL

MaturanoConsidering SqlServer 2008, i have a table that someone update this table every day. I would like to create a view and instead of update this view manually like the guy does, i would like to make it automatic. For example, today is 15/jun/2012 and the table is updated, the view must be updated(w...

 
@Aaron: The first question is 3 years old (I doubt they'll answer you comment)
 
Oops oh well
 
@ypercube I updated my answer anyway, since it was almost the same
 
I cannot make anythin out of that question (the date time one). Completely unreadble for me.
People deserve a "Read-minds" badge for answering such questions.
 
1:34 PM
Happy Friday, all
 
@Shark Happy Friday!....finally
 
@Lamak Yeah, seriously
 
2:05 PM
This question definitely belongs on DBA.SE: stackoverflow.com/q/11052032/596075
I flagged it //Cc @AaronBertrand
 
What does "i got a little trouble" mean?
Aaron, i was trying your solution and i got a little trouble. — Maturano 1 min ago
 
@AaronBertrand good luck with that, I still don't understand the question
mmm....something dosen't feel quite right with this answer:
0
A: XML index makes query slower - any suggestions? (sql server)

Gerardo LimaAlthough SQL Server provides some support to data structured as XML, it is not a recommended way of storing data -- its nature just don't fit well into RDBMs. If you need to search on data imputed as XML, I'd suggest to create a trigger on insert/update to get the searchable data and store it in...

 
It's frustrating to see how many "DBA type" questions there are on SO
 
@Shark Yeah, at least now you can choose dba.se as an option for migration
 
2:21 PM
@Lamak YOU CAN?!?!
 
'Yo, no cursors in functions! The DBA has been notified with your usename for attempt'
 
Wow you're right
Nice!
 
I was going to do something like RAISERROR('%s, you know better.', 11, 1, @username);
 
..Finally
 
@Shark Yeap, vote to close as off-topic and there it is a shiny radiobutton with dba.se
 
2:22 PM
@AaronBertrand Hahaha or RAISERROR('%s, tsk tsk.', 16, 1, @username);
 
@AaronBertrand i prefer something more frightening. "Your actions have been logged and reported to your direct supervisor."
 
@Shark You can thank @JNK
47
Q: Update Migration Path List for Non-Moderators

JNKCurrently the migration path options from SO are: Meta.SO Serverfault SuperUser Webmasters Programmers If we are going to be limited to 5 options, shouldn't we periodically re-evaluate which sites are most appropriate? Migration stats (10k only) indicate that the top sites for the last 90 da...

 
I owe @JNK EVERYTHING
 
We need more Oracle people on dba.se?
0
Q: This refactoring from cursor on a dblink'ed Oracle table OK?

Cade RouxThe data is being compared from the local version of the table to one in the contracts linked server. I'm not certain what the goal of this code is in the first place, but I'm trying to get a handle on simplifying it a little. CURSOR c3 IS SELECT bs.billing_service_id, bs.oser_id FROM ...

 
We need @Phil.
 
2:24 PM
@CadeRoux <all the jokes are clouding up my rationale> :)
 
@CadeRoux I think so, yes. Also more db2 people
 
In general I've found that the smarter Oracle people guard their knowledge very well. They don't seem to foster the sharing type of community that other platforms enjoy.
There are always exceptions, of course.
 
@ypercube or @JackDouglas
 
For DB2 I just think there aren't many DB2 people out there.
 
@AaronBertrand It's the pattern set by Larry
 
2:26 PM
(or maybe with DB2 it's a similar symptom as Oracle, how should I know - I don't know the people I don't know)
 
Maybe I'm just being negative (probably), but I don't think Oracle is as much a hobby/passion to professionals as SQL Server is to SQL Server professionals..?
 
I think the Oracle experts don't want n00bs to get better at their platform. Mostly because when they get better they start cutting into the consulting revenue and bring the price down.
Here's another case where someone assumes SQL Server maintains some magical ordering column for them:
0
Q: adding a new column as a cumulative column in a table

Venkateswarlu AvulaTable : A Col1 Col2 A 1 B 5 C 3 D 4 E 6 A 1 C 2 I want the result as follows : Col1 Col2 Col3 A 1 1 B 5 6 C 3 9 D 4 13 E 6 19 A 1 20 C 2 22 Third column (Col3) shoud be the cumulative value of the second column ( Col2). Please note that ...

A TABLE IS AN UNORDERED SET OF ROWS.
 
@AaronBertrand Why is that myth so popular lately?????
 
@AaronBertrand Psh ... yeah right. Next you're going to tell me that the Internet is not something that you just dump something on. It's not a big truck.
 
No idea
 
2:30 PM
@AaronBertrand Seems like in the past month or two it has come up a half dozen times
 
I naswered a similar one, a few hours ago:
0
Q: MySQL cumulative some over months with gaps

lepolacI'm trying to build a cumulative sum over months for the following table ; created_at Installs port 2011-02-01 00:00:00 2 7033 2012-02-05 00:00:00 8 7032 2012-03-01 00:00:00 1 7031 2012-05-05 00:00:00 2 8500 2012-06-01 00:00:00 4 754...

 
This guy is driving me nuts too. He deleted his original comment to my answer, that just said "I'm having a little trouble with your solution."
0
Q: How to search between date and time - SQL

MaturanoConsidering SqlServer 2008, i have a table that someone update this table every day. I would like to create a view and instead of update this view manually like the guy does, i would like to make it automatic. For example, today is 15/jun/2012 and the table is updated, the view must be updated(w...

His next comment is baffling.
 
@AaronBertrand Good thing you have a script for explain that issue ;-)
 
<facepalm> not sure why he thinks another table is necessary or how it will help
 
@AaronBertrand you should suggest an IDENTITY
2
 
2:33 PM
@swasheck ping romil and ask him to answer that question
 
@AaronBertrand Unfortunately yes.
@AaronBertrand Also, because many/most/all things ARE harder in Oracle, they are also harder to explain/fix.
 
2:55 PM
hooray for NULL
 
@swasheck: that (NULL) one is another case where the OP says min(date) but he actually thinks there's a hidden magic order column in the table.
 
I got caught second-guessing myself
 
"The magical ordering column" sounds like a good idea for the blog.
Or for a canonical answer.
 
voting to delete my answer because it doesn't really give OP the answer they're looking for
 
3:15 PM
@ypercube I had already added something about "natural" sort to the canonical questions list, but a definitive treatise on this needs to be written since there is no answer for it yet.
 
3:30 PM
This has to be one of the best titles for a question that I've seen
0
Q: SQL Distinct but not so distinct query

user1459066Maybe I'm over complecating this, or not. I just need a "simple" query to select one column but return only distinct rows. Here's the key, they need to be ruled out if they are similar, not just match exactly. For example, here's my current query select distinct channel from audio_srcs orde...

 
 
1 hour later…
4:38 PM
I take my eye off a table for one minute (meaning 6 months) and it's 12gb and 28,000,000 rows. hm. Correcting these data types is going to be fun
 
@AaronBertrand - That's your invitation to summarize what you stated on my answer (which I am deleting).
 
@NickChammas Will do, thanks
 
@ypercube ... good one
I don't think this should be a question. Only the dvelopers can answer this. (and maybe not even them!) — ypercube 9 hours ago
Does anyone know what this person is asking for?
0
Q: Is there any free database which stores keywords with other relevant keywords, for people to determine semantic relevance?

ugurcodeThis looks like a search for a valuable asset, but since we have a free alternative for many things, I am optimistic about this one. A database which stores two key-value pairs like key-value or key-context-value would be very useful for web developers who collect data and want to tag them. ...

 
@swasheck WTF Jim Thio is here too?
 
5:03 PM
@NickChammas have done so, hope it doesn't seem like I stole any of your answer.
Why do so many people wish to "fix" their slow query by increasing the timeout?
0
Q: what can cause a timeout in Entity Framework

Bas HamerI have other queries working with the same connectionstring; the server is returning data on those calls. some settings: Connection.ConnectionTimeout = 3600 (in debugger) DB timeout is set to 0 <add name="StuffEntities" connectionString="metadata=res://*/DataModel.Stuff.csdl|res://*/Da...

This seems so stupid to me.
I was tempted to post an answer though, consisting simply of: "Using Entity Framework." :-)
 
Here someone needs a function with perfect performance
0
Q: Want a query to found the missed numbers in DB

Jammy C.cI have a table part with a few demo data as below in Oracle DB: ID NUMBER DESCRIPTION 1 T00001 test 2 T00002 test 3 T00003 test 4 T00004 test 5 T00008 test 6 SG0001 test 7 SG0002 test 8 SG0003 test 9 SG0004 test 10 ...

 
5:22 PM
@Lamak Execution Plan yields 0% for each step.
 
Yeah, this guy's expectations seems to be too high
 
When you run it your server actually goes noticeably faster. And the overall duration, in milliseconds, is negative.
Basically he wants a query that performs time travel.
 
He's gone plaid
 
5:51 PM
Here's one for you, @AaronBertrand
0
Q: How to make a cursor faster

The crocodile hunterI have wrote this cursor for commission report. What happens is commission comes in one table, the records are another table. I match two based on certain critera (there is not exact match available). The problem is there are duplicates where records exist. When I match commission with the record...

 
6:09 PM
@swasheck - You should go answer this question:
0
Q: simplifying a WITH query in order to improve execution time

Артём Царионовi would like to know whether the following query is optimized? with cte_biggie (paid_amt,copay_amt,co_ins_amt,payor_group,load_month,load_year) as( select SUM(payments.paid_amt), SUM(payments.copay_amt), SUM(payments.CO_INSURANCE_AMT), payor_group.PAYOR_GROUP, DATEPART(MM,accessi...

You are abandoning your follower
Do you guys agree with this comment?
Please don't give nolock advise like this. nolock is rarely needed and dangerous. Also, it is not the problem here. — usr 8 mins ago
 
In general, yes. I didn't read the context but NOLOCK is only advisable in a few very isolated scenarios.
 
hm...I try to avoid it really, but I've never tought like a dangerous thing if you are aware of what it does
but then, maybe most people aren't aware of that
 
I think most people think it's a turbo button.
They don't think about dirty reads - missing rows, double-counted rows, etc.
While fast is important, it can't be at the cost of accuracy in most cases
 
@AaronBertrand Yes, I agree
 
Gotta jet folks. Maybe back later.
 
6:24 PM
godspeed
 
6:35 PM
@AaronBertrand When you get a chance, can you verify my answer (and comment) here? stackoverflow.com/questions/11055811/…
Or anybody else that wishes to look it over as well
 
yes, the rights are the union of all permissions
 
Right but the user is actually mapped to two database users
And I THINK it's going to be the summation of both of those users permissions. My tests show that
But it's going to be the first db user that comes back when you do SELECT USER_NAME()
 
Its kind of a complicated way of doing things, but I believe it will work as you said
sadly, can't do any tests
 
Yeah I'm pretty sure I'm correct. Doing a SELECT IS_MEMBER('Domain\Group1') and SELECT IS_MEMBER('Domain\Group2') both return 1 if the member is indeed a member of both
But yeah, I don't think that's the right way to do it. But still works
 
7:17 PM
truncating transaction log == waiting for code to compile
 
@BenBrocka I had never thought about it that way
 
@AaronBertrand Like when you don't care about the accuracy of your data
 
So, asking to download a MySQL database, and test if my answer is working is a little too much to ask, right?
right now i'm trying to figure it out if it works ... LINK => aplicatii-iphone.ro/img/licenta.rar here is the whole MySQL database dump, it seems it doesn't work, i tried, or am i wrong? — Row Minds 5 mins ago
 
@Lamak neither did I until I had to wait for a 61GB log to truncate
which doesn't seem to have solved our problem anyway
 
@BenBrocka You backed it up ... right?
(or is it dev?)
 
7:34 PM
@Shark sorry man, little input there. I've avoided any applications where Windows auth was a requirement (particularly through group membership) precisely because of this issue.
How much longer is the harassment going to continue on this search engine question? Will the idiots not stop until I delete my answer, which clearly they think is 100% incorrect?
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 don't feed the trolls
 
Good point. Changed my comment.
 
@swasheck It's backed up. I wish it was dev...it's not "live" to any other users, but it's a table on our prod system. My boss updated 28 million rows and now it's acting...weird. Some queries work fine and some take over 30s, and if I'm not mistaken it's grown from 12.5 GB this morning to 15GB today (it took 6 months to get to the first 12 GB)...
Somethings...not...right
 
@BenBrocka How're your backup jobs doing?
clearly this is a problem with SQL Server, right?
0
Q: MS SQL escaping reserved words

user796837A query I wrote in PHP for a MS SQL database is having an issue where a word is not being recognized as the table name. I'm using MS SQL for PHP 2.0 (VC6). The following query works and returns all orders from the table Order when executed in MS SQL Server Management Studio. SELECT * FROM "db_na...

 
No, I don't think so. I can do SELECT whatever FROM dbo.[Order] in SQL Server just fine. That error message is coming from somewhere in between.
 
7:41 PM
@AaronBertrand php most likely
 
@AaronBertrand agreed ... but everyone's attacking it from a SQL Server perspective
 
yeah the "helper" functions may be stripping stuff
 
@swasheck everything's fine except this table. I think either my boss fudged the query or one of the apps hitting the table went crazy
 
@BenBrocka Sorry ... SQL Server comment was with the question :) Did your boss leave out the filter on the update?
 
Why was a boss running an update
...and were they running it like a boss
 
7:44 PM
hahahaha
 
The proper syntax is UPDATE ... WITH (LIKE_A_BOSS)
Then nothing can go wrongz
I find it funny that questions often get more up-votes than the solutions to those questions.
Is it good to encourage problems more? Do we want more problems than solutions?
 
@CadeRoux with the sniper solution
 
@AaronBertrand I'm sure you can guess my opinion on that. He put together the app that populates the table
 
@AaronBertrand @AaronBertrand No problem, it's definitely a corner-case and not anywhere near a best practice. My test lab proves my answer, though, so I'm confident with it.
........so many DBA questions on SO today. Flagged a ton, and about 10% only have been migrate......
 
I still think it's better to convince the OP to ask here.
(Or flag it themselves, or whatever.)
 
7:47 PM
I agree with that, and I try to put "This belongs on Database Administrators SE. Flagged for migration." as a comment hoping for the same result
 
Yes there are a few cases where it is obviously DBA and not programming, but I think we blur the line more than we should.
 
@AaronBertrand I'd rather err on the side of DBA.SE though.
 
"Hard database programming question" should not equal "not a programming question"
 
Seems like we're slower these days than we were 3 months ago
 
Nobody's even made the Epic badge yet. Which should tell you how hard it is to hit rep cap in a day.
I've done it 80 times on SO (81 including today).
But I still have the same opinion I've had every other time we've talked about this: pushing people's questions here is going to increase volume, but not by as much as we'd like to think, and it can also alienate people
Everybody will point at stats but alienation isn't something you can measure with a query
2
 
7:50 PM
Absolutely, and I definitely agree with that.
 
You'll notice I'm saying all this while JNK isn't here and jcolebrand is obviously idle/distracted. :-)
I'm not stupid.
 
besides, we are still lacking people on some areas as was discussed previously
where has been JNK lately?
 
Yeah, migrating an SO question with tumbleweeds to become a dba.se question with tumbleweeds gains zero.
 
@Lamak we have to recruit those people.
@Lamak he's around.
Probably wants more people to write blog posts...
 
What areas are we lacking? Maybe BI, but that's all that comes to mind for me
 
7:52 PM
Doh. Busted. @jcolebrand you were doing so well at pretending you weren't paying attention. :-)
 
I kinda stalled out on my CTE one, any takers on adding some examples?
@Shark NoSQL
@AaronBertrand I wasn't even here. Life + lunch + therapy ;-)
 
@Shark db2, oracle still has too little people answering
 
Oh, ok. Well I turn a blind eye to non-SQL Server questions, so I don't have a heartbeat on anything else
 
@jcolebrand he's like....omnipresent and all?
 
@Lamak as am I, it would appear.
I know he was on the site mere moments ago
 
7:54 PM
@jcolebrand that's kinda creepy
 
@Lamak we try.
What is probably creepy is knowing that I check dba.se from my phone sometimes to monitor things when I'm away :p
 
I've done that too, mostly because I'm bored on a meeting and I prefer to spend my time learning
 
learning?
 
We're all learning
For example, I'm always learning what a pain in the ass some people out there can be.
 
@jcolebrand I hardly answer at all on dba.se, I mostly read other people's answers and learn from them
 
7:59 PM
And re-learning. And being amazed. Again.
 
I know, you two, I was being an ass :p
 
@AaronBertrand lol, never lose the ability to be amazed
of other people's stupidity :-)
 
No matter how dumb a question or comment is, someone will always come up with a dumber one tomorrow.
I've been getting better at trying not to act surprised.
 
so, we have to vote for the moderators on SO now?....sad not to see you on that list @jcolebrand
 
On a completely unrelated note, Romil has been really quiet today
Not a single identity suggestion
 
8:03 PM
hahaha
But the guy that was stalking @swasheck posted some other questions
 
Yeah, agreed, you seem to be getting the shaft @jcolebrand
 
8:16 PM
@Lamak Just vote for Stocker and Larsen
@AaronBertrand I seem to make enemies as neatly as friends.
Shame that, people think I'm being highly argumentative when they can't read past the first five words of a post without considering their retaliatory text.
 
@jcolebrand so, you don't?
;-)
 
@Lamak :p
 
I also voted for stocker first
 
8:30 PM
26
A: How are moderator election votes counted, in plain English?

yhw42Meek's method of STV is an iterative process that approaches the will of the people asymptotically. TL;DR Your vote, valued at 1.00 vote, is applied to your candidates in the order you rank them. Each candidate only uses as much of your vote as needed to become elected (shared equitably betwe...

 
Why would someone should those column names?
0
Q: How can I make a this selection of groups and members simpler and more efficient?

scott-pascoeBackground I've got a group table, users table, and a group_members table. groups { group_ varchar(50) not null, etc... } users { user_id varchar(50) not null, etc... } group_members { group_ varchar(50 not null, member varchar(50) not null } My requirements state that a group can have other...

GROUP_ ?
 
is group a reserved keyword in any SQL dialect?
 
@jcolebrand hm, not as simple as I thought
@jcolebrand yeah, but still, the "_" at the end kind of get on my nerves
 
Oh, mine too
 
8:49 PM
Yes, group is reserved in T-SQL
for GROUP BY
But the solution is either call it something else, or enclose it in [Group]. Not name it Group_, yuck.
 
He should at least use Python style and add 2 underscores on each side: __Group__
 
Or just call everything MyGroup, MyTable, MyDatetime, etc.
I once named a date/time column "MyWhen"
This was very early in my career when I thought "When" might become a reserved word.
And early enough that I hadn't yet discovered CASE ... WHEN
 
Are you responsible for the MySQL name?
 
Absolutely not
 
@ypercube hahahahaha
 
9:08 PM
@AaronBertrand So you started the "My Documents" naming scheme in windows?
Because I still hate you for that if so
 
yep that one was me
MySpace? Yep, me too
But originally it was only meant to be my web site.
 
oooooh, that explains so much
 
Just tell me you didn't invent the autoplay music and horrific user-made styles
 
I was in the animated gif department
 
I'm sure you did not do My Documents, My Images, etc. There is a space there.
 
9:19 PM
You're welcome
Yeah even back then I knew better
 
Unless you did and a manager above you in hierarchy thought that would be friendlier to users - and added the space.
 
Even managers don't like to get punched in the throat
How to make a cursor faster? Make it not a cursor!
0
Q: How to make a cursor faster

The crocodile hunterI have wrote this cursor for commission report. What happens is commission comes in one table, the records are another table. I match two based on certain critera (there is not exact match available). The problem is there are duplicates where records exist. When I match commission with the record...

(Well, usually. There are exceptions of course.)
I was reminded of that because of all the columns with spaces in their names
 
@AaronBertrand of course
 
I just learned a new lulzspeak: "It they only" means "I think they only"
Why are people so averse to typing out whole words?
 
idk
 
9:29 PM
Didn't see that coming
 
sorry, its friday
 
rofl omg ftw
Surely we have some "how do I copy a giant table efficiently" question around here somewhere, right? sql server flavor preferably
 
@BenBrocka idts
Anybody here good with C# wanna review my code for glaring mistakes?
4
A: How to display the count of sent emails on the client while sending them on the server?

jcolebrandSo the problem that you're facing is that you need to do some work serverside but you want to display that clientside. The first part of the problem is that HTTP is a stateless connectionless protocol, so you have to keep asking the server for more information (updates). So what you need are sev...

 
@jcolebrand syntax error
 
@BenBrocka I don't think so
 
9:32 PM
Way too many scrollbars
 
@AaronBertrand you're welcome
 
(I can spell C# and might be able to code my way out of a command prompt, but in this case I can only comment on aesthetics.)
 
I effectively gave him 80% of the code he needs to solve his problem because I'm too lazy to work on my own stuff right now
command prompt?
I shudder
We don't use command prompts here
 
Well I meant a command-line app
as opposed to some windows forms nonsense
 
we can't stop here, this is .bat country
 
9:34 PM
is anybody interesting in re-wording the title of that question?
 
codes
I tried to parse that title and had an aneurysm, thanks for drawing my attention to it
 
@jcolebrand I could not not edit it, sorry
 
@AaronBertrand oh crap, I forgot to fix the title! Damnit brain
Ta-DA!
 
OMG
0
Q: Can I evade a where clause with a parameter instead of adding OR 1=1 to the query?

ugurcodeNow I have a long query and I'd like to alternate with such a statement where userid=@userid But I have other parameters which change flow, so, I want to have two options, selecting one user or any user Can I send a username so that It can select and user? like we do in LIKE statements, we se...

 
@AaronBertrand I think you missed a horizontal scrollbar ;-) I'll let you catch the last one
 
9:40 PM
I love the query builder! It's so awesome!
@jcolebrand in your answer? It's the only post I touched, so I could f with you a little bit.
Maybe you still get one depending on your device or screen size?
 
@AaronBertrand oh, so I should revert the change? :p
 
I've never even seen the query builder
 
@AaronBertrand yes, there's one more
 
So is the CSS relevant, at all, to the question?
 
@AaronBertrand nope. I don't know why he included that, and I really didn't look at any of his code. I also didn't tell him how to initiate these methods. I'm literally giving him just the code he needs to solve this particular portion of the problem
 
9:49 PM
@jcolebrand - is this how friends call you?: dear bearded jcolebrand
hey dear bearded jcolebrand, your answer is excellent. webmethods are my favorite part. — MoonLight 9 mins ago
 
I think so :D
Check out jcolebrand's answer — Mikey G 13 mins ago
 
You should change your username to @dearBeardedJcolebrand
 
bearded jcolebrand, sounds so....cozy
@AaronBertrand I bet that he would be a moderator on SO already if that were his username
 
@jcolebrand: I thought you were a candidate for mod. Why can't I find you in the voting page?
 
@ypercube because I am less popular than other mod candidates
2 hours ago, by jcolebrand
@AaronBertrand I seem to make enemies as neatly as friends.
So long as you guys vote I'm happy.
 
9:55 PM
0
Q: SQL involving columns with comma delimited strings and comparison

David AmankwaPlease use MS-SQL syntax if you can Suppose I have a record with a comma delimited strings in a column name "Version" Say we have a record (A) containing having these values in its "Version" column Version=10.1.2, 10.4.3,11.6.0, (the column has comma delimited strings) I am passing an sql ...

 
oh, there's a kind of nomination phase?
 
With that, I an logging off
What an absolute disaster
 
@ypercube Yeah, it was the primary phase
 
@ypercube there's kind of three phases
 
I missed that. Not paying much attention.
 
10:06 PM
@Lamak i'm not even worth stalking
@Lamak neckbeardedjcolebrand would get my vote
@jcolebrand i voted for you and some other guy who makes robotics software
 
10:29 PM
Uh, hello, I just got a little excited.
2
Q: How to efficiently check EXISTS on multiple columns?

Martin SmithThis is an issue I come up against periodically and have not yet found a good solution for. Supposing the following table structure CREATE TABLE T ( A INT PRIMARY KEY, B CHAR(1000) NULL, C CHAR(1000) NULL ) and the requirement is to determine whether either of the nullable columns actually c...

Check out who answered Martin's question!
If you think that's not a strong addition to dba.se, I'm curious how much rent you're paying to live under a rock. :-)
 
10:49 PM
@AaronBertrand Spotted that 5 minutes ago and had to double check it was who I thought it was :)
 
We might need to implement "verified" like twitter has for major celebrities
 
11:22 PM
I'm trying to copy some XML Plans from SQL-Fiddle and all I get is black .png
 

« first day (528 days earlier)      last day (4341 days later) »