« first day (631 days earlier)      last day (4533 days later) » 

00:26
Does anyone have any ideas about this error message?
4
Q: Non-yielding IOCP Listener in SQL Server 2005

Max VernonDoes anyone know what `Non-yeilding IOCP Listener' indicates? On of our SQL Servers just had a bugcheck dump: ===================================================================== BugCheck Dump ...

00:51
There is no justice in this world. My "midnight" for SO is 8:00 PM. This guy accepted my answer about 14 seconds too late to give me another notch toward legendary:
@MaxVernon sorry, I've been lucky enough to avoid that one to date.
@AaronBertrand man you gotta hate that!
This is what happens when you're not specific.
1
Q: Overwrite values every time vs query to see if value has changed

MrBoJanglesI have a column that I would like to update only if the value I pass in to a stored procedure is different than the value in the column. It happens to be an NVARCHAR(255) column, if that matters. What are the pros and cons of writing this value every time? What are the pros and cons of checking ...

Since the stated case (a single column) is obviously easy to avoid (use a where clause), I immediately came to the conclusion that we must be talking about updating multiple columns but only writing to the columns where values have actually changed.
I'm not confident I've guessed correctly, but if I haven't, the question seems far too simplistic to me.
01:17
it would be nice if MySQL had windowing functions
0
Q: Mysql ranking with upper and lower rankers

Jinbom HeoI want to get range ranking from a table using mysql query. the table is like this, +------------+------+ | first_name | age | +------------+------+ | Kathy | 2 | | Jane | 1 | | Nick | 3 | | Bob | 5 | | Anne | 4 | | Jack | 6 | | Bill ...

01:35
I love it when sites host content all over the place. One CDN is slow and this is what happens:
pretty
I expect to see the horsey dance when the baby Bert come
uh, horsey dance?
Oh I get it. oppa gangnam style.
Yup, totally
You got it
Favorite iOS app for Stack? Anyone?
02:07
@swasheck I use Chrome.
The mobile version of the site has some limitations but it works well enough that I don't feel the need to go get some different app for it.
 
5 hours later…
06:41
"Kindly help me and write the code for me ..." stackoverflow.com/questions/12595841/…
 
2 hours later…
08:32
You post links here
I do
08:57
@deszo: downvoting mode?
absolutely
09:48
Evening lads
Homework tag? Burn it!
57
A: The homework tag is now officially deprecated

KevTim Post and his moderator issue M2A1-7 flamethrower...Burnnnnnn!

10:50
-1 since you have shown no evidence of searching the documentation, or Google etc, for the answer. A more precise question would be helpful. If you've seen these operators in a query it would be helpful to post the query. — Max Vernon 6 hours ago
@MaxVernon thanks for making the effort with helpful comments like this
.
1
Q: Product Attribute List Design Pattern

jmbertucciI am working on updating our website's product database. It’s built in MySQL but this is more of a general database design pattern question. I’m planning on switching to a Supertype/Subtype pattern. Our current/previous database is mainly a single table that has data on a single type of produc...

Is he proposing an EAV?
The OP has asked for migration to SO due to no response here, but I'm not sure they'll want it.
I don't think so, but the Q is soooo long that I will not read it thoroughly
I stick to Hertha Müller for now
 
1 hour later…
12:20
@JackDouglas I think that is what he was proposing, it was difficult to decipher from his long ramble. So I figured I would give it a shot.
@bluefeet thanks - it's and excellent and comprehensive answer. Plus you spotted he mentioned MySQL in the question :)
1
A: Product Attribute List Design Pattern

bluefeetI personally would use a model similar to the following: The product table would be pretty basic, your main product details: create table product ( part_number int, (PK) name varchar(10), price int ); insert into product values (1, 'product1', 50), (2, 'product2', 95.99); A product_attr...

he wasn't exactly clear what he was asking. But it seemed like he was worried about how to query the data so I figured I would give some examples.
@bluefeet great answer but you should create product_attribute 3rd, not 2nd. :-)
haha you are right, I switched the order.
I was looking at my fiddle when I wrote the answer and I had them in that order.
Ok I give up how do you get the nice in-line answer graphic
0
A: IN Clause causes Execution plan to change from Nested Loops to Hash Match

Pete CarterWell, you can force nested loops by using OPTION(LOOP JOIN) however, I would advise using OPTION(LOOP JOIN, MERGE JOIN) this is working with the optimiser rather than against it and is saying do what you want as long as its not a hash match. But I would also dig a little deeper. With the IN clau...

Ah there we go
12:45
@SQLkiwi is he making stuff up or is it honest confusion do you think? His other answers don't look too bad to my uneducated eye.
JNK
JNK
he corrected it
just now
@JackDouglas Hard to know. Maybe he meant a WITH (INDEX(0)) table hint.
@JNK Oh, right.
13:04
EAV seems popular today
He was loosing [sic] his mind over it
@ypercube EAV is tha bomb
The latest MySQL question (MyISAM vs InnoDB) has EAV design, too.
This guy is driving me crazy
How is that different than the actual problem query in the question?
Never mind, he already deleted it
should this be flagged as not an answer?
@bluefeet yes, I flagged it
13:11
you would think that person would know he has a higher rep
@bluefeet I was gonna do it, but since I fave a competing answer I didn't
podiluska usually has good answers
@ypercube that one is dripping with about as much attitude as I've seen from him
A question about improving performance of a query has two answers that suggest formatting the query differently. When asked, one of them said:
I don't say that it improves the performances, I simply don't like count(*), the same way I don't like the "select *". — Diego 1 min ago
Yes, I'm reading those.
13:27
@AaronBertrand - So, the DATETIME style that you are using on your answer (22) is not listed here (msdn.microsoft.com/en-us/library/ms187928.aspx), I may have to use your guide from now on.
It's not bad to your personal favorites (but only if you have answered the question first)
and COUNT(*) vs COUNT(1) is pointless from every way one looks at it.
Wow.
@AaronBertrand Obviously he needs to split it. I'm deeming that "research effort" — podiluska 2 mins ago
"Obviously."
why?
0
Q: Joining two tables on based on second number value from first table

Zhenya I am new to SQL, so please bear with me. I am working with two tables that do not have common fields. I am trying to create simple hierarchy based on the two tables that look like this: Table 1. Cul 1 Cul 2 ============== S10000 Name S20000 Name 1 S30000 Name 2 S40000 Name 3 ...

@AaronBertrand Then it should be a comment, not an answer
@Lamak Good point, I've relayed that info. :-)
13:33
Guten Morgen, ja?
No, I am logging off. I can't deal with that stupidity for more than an hour.
@bluefeet: You know your answer will break once he has more than 9 rows in table1 :)
@ypercube yeah I'd convert(int(right , 4
And ask what he intends to do when he gets 10000 values :-)
yes I am aware, I have been meaning to go back and edit it
it is a terrible design
13:41
@bluefeet yes, it is
... need to... step away... before I slap someone
In SQL Server NOT EXISTS shows up in the plan as an ANTI SEMIJOIN and is just another (efficient) join type. The plan for the outer join is null can be much worse as sometimes it outer joins everything then has a separate filter to remove nulls. Example of that hereMartin Smith 2 mins ago
(Playing with getting links to expand)
Heh, @MaxVernon went on an editting streak
@DTest he does that periodically
@DTest I thought he was a full-time editor. :-)
@JackDouglas Is 95.99 a valid integer input?
13:46
@AaronBertrand i've figured out the problem with SO over the last few days ... it's all a big lead-in for this:
just for @AaronBertrand
-1
Q: Sql Server string constraints

user1700420I have a sql server database with a time column which can only be filled with the text am or pm and im having trouble finding a constraint that would allow me to do this. Many thanks in advance.

@bluefeet You are giving him a headache
@bluefeet it's deteriorating rapidly. the collective intelligence is asymptotically approaching 0 even though the number of questions, answers, and words in general are skyrocketing
@bluefeet ... is Jake paying you? :) stackoverflow.com/a/12602824/251174
I hate it when an answer I am commenting on just disappears from underneath me.
I think you all scared Left Join + Filter away!
"It depends™: both NOT EXISTS and OUTER JOIN are logical, and performance depends on the physical plan operators and other details. Trying alternative SQL syntax is a valid approach."
2
@swasheck ha! I always wondered why her SQLFiddle links are in 84pt font
13:55
@AaronBertrand I've wondered the same
@dezso it's MySQL so I wouldn't like to hazard a guess
2
This guy has edited his crappy PHP code 15 times. Sadly the revision only shows 2 updates because of the grace period. It's so hard to explain a moving target to these PHP kiddies:
0
Q: sqlserver+php: get just inserted row id

PhateI tried this way: $result = odbc_exec($connection, 'SELECT id FROM MyTable WHERE id = @@Identity'); but it gives me syntax error: unexpected T_VARIABLE edit: here's complete logic thanks to your help: $result = odbc_exec($connection, 'INSERT data into the table;SELECT SCOPE_IDENTITY() A...

that's why it's a question :)
@dezso: in mysql, 95abc.99 may be valid integer input ...
2
is it 95?
13:58
@dezso try it :)
Unknown column '99abc.54' in 'field list':
in SQLFiddle at least
I suppose you didn't get any errors with 95.99
@AaronBertrand "You are probably missing a curly brace or bracket somewhere" ... nice one
@ypercube right
@AaronBertrand I like my 84pt font!
@swasheck I wish
14:18
@dezso: You only need to adjust SQL_MODE and then you can insert '95abc.9a9b' to an INT. The casting will cut everything after 95.
@ypercube Even better, sql_mode cannot be restricted by the dba. Any app can set it >:-D
@JackDouglas my pleasure!
14:40
@ChrisTravers you mean they can set it for everyone or only for their own sessions?
@JackDouglas every session can set it on a session level. Only superuser can set globally.
that basically means "no app can know what any other app is doing sql_mode wise"
@Chris: Has this been asked to be implemented? (dba to be able to restrict the sql_mode)?
@ypercube I dunno. When I put in my blog that this made MySQL unsafe for multiple applications to write to the same relations, the only responses I got from MySQL users were "multiple apps writing to the same relations? Are you crazy?"
I suspect someone has probably asked
I doubt that Oracle would really want MySQL to grow out of its 1 app 1 db role though :-P
(it would be interesting to see if this ever happens in Percona or Drizzle though)
@ChrisTravers I suppose that's why it's called MySQL and not OurSQL? ;c)
7
@SQLkiwi hahahaha
14:49
an etymological study of popular rdbms names would be interesting
well ... other than Microsoft SQL Server (not knocking it, but it's functionally descriptive)
Wondering how weak that trademark is.
1) Create a sound-alike name
2) Get sued by Microsoft
3) Countersue attacking the trademark as invalid, and alleging anti-competitive behavior
4) Make them pay you to drop the countersuit! Profit! Hey, worked for Lindows.....
SQLKiwi: nice one
15:17
So if NewSQL is the new buzzword, does that mean that the next one is SQL3 will be the next one?
What on earth
1
A: Is it possible to escape a single quote in SQL Server without another single quote?

Mahmoud GamalYes you can determine any escape character you wish, using the keyword ESCAPE followed by the character you wish. For example you can do this: like '%unscaped string\%' ESCAPE '\'

i love chameleon questions...
chameleon questions trying to implement security by obscurity no less.
@AaronBertrand how hard is it to rewrite?
@swasheck should be pretty trivial. Unless it's 10,000 spaghetti-code ASP pages (which I've seen first-hand).
@swasheck every single page had its own header set of functions with all of the connection information, access methods etc. hard-coded. "What's an include file?"
15:28
@AaronBertrand includes are annoying. how can i break the standard set for the site if i have to use include files???
@swasheck I have the same problem with CSS.
@AaronBertrand mwahahahaha
@AaronBertrand do you timemachine for your backups on your mac?
16:34
1
Q: IN Clause causes Execution plan to change from Nested Loops to Hash Match

nosillegI'm tuning a query and have discovered some behavior I'm not clear about. If I remove the WHERE IN clause the query runs in 3 seconds instead of 3 minutes. There only 7 rows returned in the result since there are only 7 items in the IN clause. Thinking this was a bit odd, I started trying ...

maybe a dumb question but I have been told that things run faster if you create a parameter with the date in it, instead of calculating the date in the query. I am referencing this question:
0
Q: MS SQL 2005 Delete Query SLOW

kevin cI have a Delete Query that each day needs to run deleteing any data that is greater than 7 days old which is about 6 Million Records. My table should only store data for the last 7 days. Here is the query I am running: DELETE FROM [tblTSS_DataCollection] Where [DatapointDate] < DATEADD(D, ...

Have I been told wrong?
@bluefeet In this case, the calculation doesn't change by row, so shouldn't be an issue.
ok, thanks
Wow, I think they need to up the rep threshold for answering a question, or making it so that you must have earned x rep on a specific tag before you can answer there.
0
A: MS SQL 2005 Delete Query SLOW

GrishaYou can consider the following way : -- store values in a temp table SELECT * INTO #TEMP FROM [tblTSS_DataCollection] Where [DatapointDate] >= DATEADD(D, -7, GETDATE()) --truncate the old table truncate table [tblTSS_DataCollection] --insert values from temp table insert into [tblTSS_DataC...

2
Q: Does SQL Server optimize DATEADD calculation in select query?

Ahmet AltunI have a query like this on Sql Server 2008: DECLARE @START_DATE DATETIME SET @START_DATE = GETDATE() SELECT * FROM MY_TABLE WHERE TRANSACTION_DATE_TIME > DATEADD(MINUTE, -1440, @START_DATE) In the select query that you see above, does SqlServer optimize the query in order to not calculate...

16:43
@AaronBertrand i've thought that the review process should be different
instead of review and downvote
review and commit
@CadeRoux thanks for the link
@swasheck that is like this wonderful answer I found earlier.
0
A: how to avoid cartesian product in multiple queries?

shravan Reddy Avoid inline query what ever using in inline use it is stored procedure avoid cross joins in the stored procedure you can do union all queries written it will very simple if you stored procedures

i have read the answer multiple times and I am still shaking my head
yeah ... no good. i would say it doesnt even have to be rep-based, but until the answer sees the light of day (read: SOE google), it should be approved/committed by the community.
@bluefeet wtf-penis-wenis as my 4-year old says
want to post this as a comment
@bluefeet flagged as WTF is this
I've also wondered - if I've exceeded my rep cap for the day, I should get some free down-votes. Once I've hit my rep cap, if I down-vote a question and then get an up-vote, the down-vote is free. If it happens in the opposite order, the down-vote costs me 1 rep. I don't care about the 1 rep, but the calculation for today should not care about the order of things that happened just before midnight.
...or whether a down-vote happened before or after the last up-vote.
16:53
@AaronBertrand we've asked for similar things before. The team has always been stalwartly against it.
Something about level playing field and not letting rep be an actual currency
@jcolebrand well it is, regardless of their intents.
@AaronBertrand I know
And on that note, lunch
In all honestly, I don't give a crap about the 1 or 2 rep I end up losing in those cases. I just like my rep to be an even number because I'm anal retentive.
@jcolebrand I used my rep to buy smoothies this morning. And I traded for some WoW characters.
3
@jcolebrand that's somewhat understandable in a site's infancy ...
16:55
@AaronBertrand Like only multiples of 1000
@CadeRoux you too?
<facepalm>
@Aaron Bertrand - I wrote 'can consider', not 'this is a best solution'. I don't know why are you sure that 'data for last week less' is a 'narrow scenario', it isn't clear from the question. — Grisha 1 min ago
I wonder if that guy could use a sliding window.
@SQLkiwi I thought about that. On 2005 though. What are the odds he's on Enterprise Edition?
Of course there are other ways to accomplish the same but they're not pretty.
@AaronBertrand Local partitioned view?
17:03
Not something I'm going to whip up for a StackOverflow answer for a guy who doesn't know why the second column in his index doesn't help speed up a delete. :-)
@AaronBertrand And now you see why I mused about it here rather than on-thread :)
@SQLkiwi right, or dynamically constructed unions
I bet there's lots more to that question. Too scared to ask for DDL / execution plan.
@SQLkiwi I promised myself I'd log off three hours ago. Need to do that now. If you're a glutton for punishment, feel free. :-)
@AaronBertrand I remember you announcing 'an hour was enough' :)
17:06
<groan>
Update EmpPN Set EmpN.platform_id = PLookup.platform_id from #TempTable tmpd (READUNCOMMITTED) inner join EmpPlatform EmpPN (READUNCOMMITTED) on EmpPN .emp_id = emp_id collate database_default inner join PlatformLookUpTbl PLookup(READUNCOMMITTED)on PLookup.[platform_name] = tmpd.PlatformName collate database_default — user1681514 1 min ago
Yep, this is the end of the road for me today. :-)
At least he's not using NOLOCK:)
@AaronBertrand holy frickin' crap
@SQLkiwi love the read uncommitted on a temp table
@SQLkiwi at least he's not using a global temp table
@swasheck That query is packed tight full of goodness, for sure.
@swasheck I would give 5000 rep to have Chrome working again on my Mac. Either the 10.8.2 update broke it or the Xcode update broke it thoroughly. OSX just feels like Windows 95 all over again these days. This is a Mac Mini - there's nothing special on it which should be "incompatible".
@CadeRoux install linux?
17:16
@swasheck I would have to move Linux 3 feet over on the desk.
 
1 hour later…
18:35
@swasheck I have a Linux machine elsewhere on the desk. I expect this Mac is shortly gonna lose its keyboard and mouse privileges.
ah - fair enough
@swasheck I mainly just use it for Chrome and basic stuff that I want to just be reliable - web, viewing documents, email, printing PDFs etc. Thinking of getting a Chromebox for that job instead. More and more disappointed with Apple.
how old is the mini?
@swasheck Summer 2009, I think - I upgraded it to 8GB and it was doing great. Held off until Mountain Lion and it was doing fine until 10.8.2 update last night. Everything seems to be fine on it except Chrome.
@swasheck I've temporarily switched to Firefox. FF used to be such a memory hog I stopped using it. But I do rely on Chrome plug-ins like Google Voice etc to give me a lot of little shortcuts.
18:55
yeah - i wonder why chrome stopped working
19:09
Browsers are for the weak. Telnet into the web server = success
@Phil nice. lynx was epic
(though i know that's different)
hello. ( sql server - bak file). if I set complex permissions to my datqabase to users and I backup this database into 1.bak.
now lets say this bak file gets to john's hands. if john , opens it by restore to his own computer - will he have full access to everything ?
(ofcourse - john is an administrator in his own computer)
if john included himself in the sysadmin role and/or if john installed on his local machine and knows the sa password then i believe so.
Have you stolen a DB and want to know how to restore it? ;)
@Phil elephant in the room
19:15
@phil , lol no man just for knowledge
@swasheck does john has to know anything ?
he can resotre the db and add himslef to the admin group
no?
@RoyiNamir 1) he has to have sql server installed in a location that he has such permissions (e.g. a local SQL instance with version match)
2) he has to know the sa password or be in a role that has uninhibited access on that instance to be able to restore and then access the objects
that's my understanding ... but i may be wrong
I was told - that when i got a bak file - i can have access for all.
no password - no nothing
maybe they were wrong , or maybe i got it wrong
19:38
if you're in a role that allows such things on a sql server, then yeah
cant I just add myself as a new account which has full permissions ?
hello @AaronBertrand Can you please give your opinion ?
@AaronBertrand in this case, would it be any faster to find the index ID value for the max value you want to delete/keep (the split point in other words) and then just delete where ID less than found ID?
@RoyiNamir if you've got access to an account that will allow you to give those permissions to your account ... but then that seems a bit redundant
@RoyiNamir if you're able to acquire a non-password-protected full backup of the database (sort of thing is kept to automated systems with encrypted systems and automated passwords specifically to keep people from having copies) then you're a) inside the firewall, b) inside the network, and c) have full trusted permissions. (even if you've socially engineered or hacked)
At that point, why shouldn't you have full access to the data?
Now, if your question is how do you prevent that ... we can help with that, but it's hard.
(as all good security is)
What you can do instead is to set encrypted backups
@RoyiNamir hello are you here still?
@jcolebrand thanks for answering
ofcourse
it si just a knowledge question
not how to prevent...
19:46
Just helping to make sure we cover all your bases for you so you understand
so basically - if i have a bak file in my disk on key - I can see all the data
Do you understand that a "bak file" doesn't have to be "protected" it can just be "raw"?
@RoyiNamir yes
just like a ZIP doesn't have to have a password, it can be an archive, or it can have a password
@balpha we really need to add this to the easter-egg for the room
ok so now lets go into the real question.
CREATE SYMMETRIC KEY SecureSymmetricKey
WITH ALGORITHM = DESX
ENCRYPTION BY PASSWORD = N'StrongPassword';
lets say i want to encrypt every value which comes to mySp
this is actually the code which is in my SP.
19:48
@RoyiNamir You know we've got this dba.se site where people can ask questions about database stuff? :)
5
@MarkStorey-Smith LOL!
@MarkStorey-Smith details!
I figured he got a one-off freebie
@Mark yeah I know but when I asked it once - I didnt got the 100% understanding dba.stackexchange.com/questions/7209/…
What did the accepted answer not cover or what part of the answer are you unsure about?
If I got the bak file , and as youve said , I have access to all , So the certificates wont help....I still can see the whole data...right?
(still , not talking about encryption)
19:53
That is actually a complicated question. And because it will help someone in the future, let's go ahead and move to a for-real Q on Database Administrators
Before you post a Q, however, let's review what you need:
thanks for guiding.
Start with "So I was asking in chat [link to conversation] about how secure backup files are. I'm told that if an attacker has access to the .bak file unencrypted that they can have access to the data. So what if we used [code from above], would they still be able to access the data if the [continue from what you were just asking]"
title ? :-)
@RoyiNamir If you have access to a bak file that is NOT encrypted, you can access everything in it. If it contains encrypted data, you'll need the certificate that was used to encrypt, which won't be in the backup file.
@MarkStorey-Smith this
19:57
@RoyiNamir "Understanding MS SQL Server encryption and backups" ???
Just toss something on it, one of the cleverer of our lot will ensure that it gets a good title.
0
Q: Understanding MS SQL Server encryption and backups

Royi NamirSo I was asking in chat http://chat.stackexchange.com/rooms/179/the-heap about how secure backup files are. I'm told that if an attacker has access to the .bak file unencrypted that they can have access to the data. So what if we used OPEN SYMMETRIC KEY MySymetricKey DECRYPTION BY CERTIFICATE...

JNK
JNK
Anyone know if we have a definitive question on SS data migration methods?

Understanding MS SQL Server encryption and backups

58 mins ago, 50 minutes total – 58 messages, 6 users, 2 stars

Bookmarked 3 secs ago by jcolebrand

I used the "room" link on the right to create a bookmarked conversation.
20:14
Thanks :-) for helping

« first day (631 days earlier)      last day (4533 days later) »