« first day (1366 days earlier)      last day (3499 days later) » 
01:00 - 18:0018:00 - 22:00

6:00 PM
Also, an update was in progress but now I'm thinking I'll sit on it for a while longer
 
Hi all, quick question. I'm getting permission denied errors (errno: 13) after updating my Linux box and attempting to start the mysql service. The files it complains about are owned by the mysql user. It occurred to me that perhaps it's running with a different user name. How can I check what the mysql user's username is?
 
@billinkc What a knob.
I thought about commenting but I've made enough work for @bluefeet today.
Sorry homie I'm not a MySQL guy.
 
@billinkc so GQ
 
@billinkc they don't have enough rep to DV
 
6:06 PM
@bluefeet Justice is served.
 
@Zane No worries, it was a configuration issue. Sorted now, thanks.
 
@bluefeet That's precious
 
@billinkc I guess they meant their question was downvoted.
 
It wan't DVed until they posted the comment
I thought they were threatening me with a DV if I didn't hop to it and address their edited question
Anyways, forestall any more wrath, I am writing up about InteractWithDesktop which is a new thing so I'm happy to learn it
 
6:20 PM
@billinkc that's a great question, I have no idea
 
> In his spare time he is either playing volleyball, blogging at sqlperformance.com and sqlblog.com, or contributing to SQL conversations on twitter, StackOverflow and dba.stackexchange.com
emphasis mine
 
Such a liar. Someone yank his status
 
@bluefeet . . . If the issue is the types (which aren't specified in the question), then a simple conversion fixes the problem: sqlfiddle.com/#!3/45faae/31. That seems like a very poor reason for downvoting the answer, which is (in my opinion) basically correct. — Gordon Linoff 2 mins ago
but it's not correct
 
@Lamak hey I post plenty of comments
 
@AaronBertrand ah, that's true....forgot about that
 
6:28 PM
@Lamak where did you pull that from?
 
@AaronBertrand but, anyway, I'm really impressed about the 18 times MVP award, congrats
 
Anything I missed from the update? stackoverflow.com/questions/26110221/…
 
25 mins ago, by billinkc
Aaraon, what's a gewa http://mvp.microsoft.com/en-us/mvp/Aaron%20Bertrand-8140
 
Aaron's MVP id is 4 digits
 
@terdon There is probably a 'user' setting in your my.cnf file, which is typically in /etc/my.cnf.
 
6:30 PM
@James So there is, thanks.
 
As is Bill Graziano (PASS's immediate past president). Today's inductees have a 7 digit number. That's a lot of MVPs over the years
 
I now have another issue, I posted here about it. Would that be on topic here? It's more of a configuration/sysadmin than an actual database issue.
 
@terdon Might be on topic here, but it's a good fit for the UNIX/Linux site.
I think you might get an answer there sooner than here.
 
@James I know it's on topic there, thanks. I'd better know, I'm a mod there :)
I was wondering about here, I seem to recall you guys don't deal with that side of things so much. Just wondering in case of future migrations.
 
@terdon I see. I'm not a mod but perhaps one will comment.
 
6:46 PM
@James you're looking for @AaronBertrand @JNK @JackDouglas
 
No he's not, don't ping the poor, hard working mod people! That was me. And it's not urgent at all, it was just an idle query since I seem to recall that you all don't deal with the configuration/sysadmin side of DBs so much. But not urgent.
 
DID YOU LISTEN @JNK??, it's urgent!!
;-)
 
don't say it's not possible when it is
1
A: How to group similar data in SQL Server

Abe MiesslerYou appear to want to return a result set that has a varying number of columns in each row. This is not possible in SQL Server. Typically you would return the entire result set and then format as needed on your business or display layers.

 
@bluefeet does the edit make the question more clear to you?
0
Q: Filter Count in Column With Group By

bumble_bee_tunaIf I have the following query: SELECT [Client]=MAX(m.Client) ,[CaseCount]=COUNT(m.Client) ,[ACount] = COUNT(m.Client --Where ccode = 'A') ,[LCount] = COUNT(m.Client --Where ccode = 'L') ,[AmtInDispute]=CONVERT(char, SUM(Convert(money, m.mat1_07_03)), 101) FROM lntmu11.matter m GROUP ...

I'm still confused
 
@Lamak no it doesn't
Your edit hasn't helped improve the confusion with the question. I really suggest posting some sample data and then the desired result. Otherwise we are just guessing. — bluefeet ♦ 7 secs ago
 
6:56 PM
Stack Overblows
 
lol
 
JNK
7:08 PM
@Lamak I missed something
 
@JNK I was just messing around
18 mins ago, by terdon
No he's not, don't ping the poor, hard working mod people! That was me. And it's not urgent at all, it was just an idle query since I seem to recall that you all don't deal with the configuration/sysadmin side of DBs so much. But not urgent.
 
We have monthly knowledge sharing presentations called brown bags that have mandatory attendance.
Usually I do them to teach some SQL/SSIS best practices things. Or the web team shows off a fancy tool they made.
 
@Zane we do too but they are not mandatory
and not monthly
so I guess we don't have those
 
This dude is showing a report he made...
@bluefeet lol
It's just a drilldown report. Why the hell am I watching this?
 
Because it's going to blow the mind of someone in the audience
 
7:19 PM
No customers are on the line. Only other developers.
You may not know this but my attention span is quite short.
 
well we get free flu shots today at our lunch @Zane
that beats your lunch
 
We get those but I think I missed it.
I forgot to go down.
 
I'm getting mine shortly
 
you should all know that the government uses flu shots to control everyone
 
I'm ok with that, as long as I don't get sick
 
7:28 PM
Well then it's not working very well as I am vehemently anti government.
Oh no it's click bait reporting. Top 10 Counties with mortgage Deficiencies!
1
Q: CPU vs. Duration in SQL Server Profiler

Donon http://technet.microsoft.com/en-us/library/aa173882(v=sql.80).aspx I am reading that CPU is "Amount of CPU time (in milliseconds) used by the event." and Duration is "Amount of time (in milliseconds) taken by the event." so as I am troubleshooting a query that's using 2650ms CPU but only runni...

He he.
 
yeah we need 3 identical answers -- stackoverflow.com/questions/26149147/…
 
7:47 PM
@AaronBertrand i am disappointed in the lack of curling references in your mvp profile
 
It's been a while. Need to update it and find out what the gewa thing is - no freaking clue
 
-1
Q: SQL server installation blunder

Waqar Adil Mughali am facing login instances issues. i tried installing SQL server 2008 on windows 8, setup was successfully completed but when opening sql management studio it asks for the server name. what server name i used ? that question will be answered after this story of "How i installed sqlserver 2008?...

Probably a little mean I suppose. This poor little noob.
 
Easy to fix though
 
@Zane mod closed not by me
 
8:11 PM
@swasheck where was that stack exchange data dump extractor you sent me.
It's on my home PC and I need to point a co-worker and am having trouble finding it.
 
gist: Inspired by Brent Ozar's post, here's a Gist to parse SO data. Relationships, keys, and indexes not included. Oh yeah, pay attention to the xml source location as you may need to change it. http://www.brentozar.com/archive/2014/01/how-to-query-the-stackexchange-databases/, 2014-01-18 20:20:22Z
-- DOWNLOAD YOUR DATA
/*
http://meta.stackoverflow.com/questions/198915/is-there-a-direct-download-link-with-a-raw-data-dump-of-stack-overflow-not-a-t/199303#199303
*/
USE [dbname] -- replace this name, obviously. also, you may need to actually have created the db
go
-- Stage it
SELECT 
	'Badges' as component,	
	CAST(bulkcolumn as xml) xdata
INTO dbo.badges_stage
FROM OPENROWSET(
   BULK 'd:\xml_files\Badges.xml',
   SINGLE_BLOB) AS x;

SELECT 
	'Posts' as component,
	CAST(bulkcolumn as xml) xdata
into dbo.posts_stage
FROM OPENROWSET(
   BULK 'd:\xml_files\Posts.xml',
   SINGLE_BLOB) AS x;

SELECT 
	'PostHistory' as component,
	CAST(bulkcolumn as xml) xdata
into dbo.posthistory_stage
FROM OPENROWSET(
   BULK 'd:\xml_files\PostHistory.xml',
   SINGLE_BLOB) AS x;

SELECT 
	'Users' as component,
	CAST(bulkcolumn as xml) xdata
into dbo.users_stage
FROM OPENROWSET(
   BULK 'd:\xml_files\Users.xml',
   SINGLE_BLOB) AS x;


drop table users_stage

 SELECT 
	'Votes' as component,
	CAST(bulkcolumn as xml) xdata
into dbo.votes_stage
FROM OPENROWSET(
   BULK 'd:\xml_files\Votes.xml',
   SINGLE_BLOB) AS x;
   
  SELECT 
	'Comments' as component,
	CAST(bulkcolumn as xml) xdata
into dbo.comments_stage
FROM OPENROWSET(
   BULK 'd:\xml_files\Comments.xml',
   SINGLE_BLOB) AS x;


-- shred it
select 
	x.n.value('(@Id)','bigint') user_id, 
	x.n.value('(@Reputation)','bigint') user_reputation, 
	x.n.value('(@CreationDate)','datetime2') user_creation_date, 
	x.n.value('(@DisplayName)','nvarchar(255)') user_display_name, 
	x.n.value('(@LastAccessDate)','datetime2') user_last_access_date, 
	x.n.value('(@Location)','nvarchar(255)') user_location, 
	x.n.value('(@AboutMe)','nvarchar(max)') user_about_me, 	
	x.n.value('(@Views)','bigint') user_views, 
	x.n.value('(@UpVotes)','bigint') user_upvotes, 
	x.n.value('(@DownVotes)','bigint') user_downvotes,
	x.n.value('(@EmailHash)','nvarchar(64)') user_email_hash,
	x.n.value('(@WebsiteUrl)','nvarchar(255)') user_website

INTO [User]
from users_stage u
cross apply u.xdata.nodes('/users/*') x(n);

select 
	x.n.value('(@UserId)','bigint') user_id,
	x.n.value('(@Name)','nvarchar(255)') badge_name,
	x.n.value('(@Date)','datetime2') badge_date
INTO Badge
from badges_stage u
cross apply u.xdata.nodes('/badges/*') x(n);

select 
	x.n.value('(@Id)','bigint') comment_id,
	x.n.value('(@PostId)','bigint') comment_post_id,
	x.n.value('(@Text)','nvarchar(max)') comment_text,	
	x.n.value('(@CreationDate)','datetime2') comment_creation_date,
	x.n.value('(@UserId)','bigint') comment_user_id
INTO Comment
from comments_stage u
cross apply u.xdata.nodes('/comments/*') x(n);


select 
	x.n.value('(@Id)','bigint') vote_id,
	x.n.value('(@PostId)','bigint') vote_post_id,
	x.n.value('(@VoteTypeId)','bigint') vote_type_id,
	x.n.value('(@CreationDate)','datetime2') vote_creation_date
INTO Vote
	--x.n.query('.') b
from votes_stage u
cross apply u.xdata.nodes('/votes/*') x(n);

select 
	x.n.value('(@Id)','bigint') post_id,
	--x.n.value('(@PostId)','bigint') votes_post_id,
	x.n.value('(@PostTypeId)','bigint') post_type_id,
	x.n.value('(@CreationDate)','datetime2') post_creation_date,
	x.n.value('(@Score)','bigint') post_score,
	x.n.value('(@ViewCount)','bigint') post_view_count,
	x.n.value('(@Body)','nvarchar(max)') post_body,	
	x.n.value('(@OwnerUserId)','bigint') post_owner_user_id,
	x.n.value('(@LastActivityDate)','datetime2') post_last_activity_date,
	x.n.value('(@Title)','nvarchar(4000)') post_title,	
	x.n.value('(@AnswerCount)','int') post_answer_count,
	x.n.value('(@CommentCount)','int') post_comment_count,
	x.n.value('(@FavoriteCount)','int') post_favorite_count
INTO Post
	--x.n.query('.') b
from posts_stage u
cross apply u.xdata.nodes('/posts/*') x(n);


select 
	x.n.value('(@Id)','bigint') posthistory_id,
	x.n.value('(@PostHistoryTypeId)','bigint') posthistory_type_id,
	x.n.value('(@PostId)','bigint') posthistory_post_id,
	x.n.value('(@RevisionGUID)','uniqueidentifier') posthistory_revision_guid,
	x.n.value('(@CreationDate)','datetime2') posthistory_creation_date,
	x.n.value('(@UserId)','bigint') posthistory_user_id,
	x.n.value('(@Text)','nvarchar(max)') posthistory_text
INTO PostHistory
	--x.n.query('.') b
from posthistory_stage u
cross apply u.xdata.nodes('/posthistory/*') x(n);


--exit stage left
DROP TABLE [badges_stage];
DROP TABLE [comments_stage];
DROP TABLE [posthistory_stage];
DROP TABLE [posts_stage];
DROP TABLE [users_stage];
DROP TABLE [votes_stage];
oh geez
 
Lots of "not getting it". Let's see if this doesn't fix it
Click the edit button. Comments are ephemeral — billinkc 50 secs ago
 
Thanks Homie.
 
Anyone happen to know if an MVP has originated from Alabama? I saw a bunch have been added to list with the latest round.
 
You can try a location based search but that's only going to work if they publish their state
 
8:15 PM
Yeah, I went through most of them when it showed up around 41 within US, now it is around 78.
A lot of folks apparently got awarded
 
I don't see any Alabamians for SQL Server mvp.microsoft.com/en-us/…
 
Yeah, there ain't much SQL Server work in most areas of Alabama...very sparse. Sucks for me :)
 
@PaulWhite @AaronBertrand @billinkc @JNK ... @anyone ... is there any way to convert the [Transaction ID] from fn_dblog() to a usable integer? i've tried the various lsn conversions and it's not worked for me
 
Did you just call me an fn dbag?
 
every day
 
8:25 PM
How would one identify what a usable integer value would be from fn_dblog?
Remus mentions nothing about converting it rusanu.com/2014/03/10/…
I get values of 0000:00000000 and 0000:00002a15 on my system. Is the right section of numbers just hexadecimal?
yes, looks like they're hexadecimal although I would probably need to read more about the first quartet of numbers
SELECT distinct
    CONVERT(int,CONVERT (binary(1), '0x' + RIGHT(fndbag.[Transaction ID], 8), 1)) AS MakeMeAnInt
FROM
    fn_dblog(NULL, NULL) AS fndbag
 
@billinkc ok. i'll give that a try. thanks. my data type conversion knowledge is inadequate so when something is different than the example, my head asplodes
 
Oh wait, hang on, derp derp
The results don't look right, let me see what shenanigans are going on
0
Q: T-SQL Convert Hex to decimal

usertfwrI try to use TSQL and I get some problem to convert hex to decimal when the value is inside a variable. My code is: SET @hex = SUBSTRING(@x,1,2) --give 1e SET @hex = '0x' + @hex SELECT CAST (@hex AS int) I get the error that the conversion failed when converting the varchar value to int I do...

That's only converting the first value of the thing getting passed in. Need to make it do all 8 digits
Make that
SELECT DISTINCT
    CONVERT(int,CONVERT (binary(5), '0x' + RIGHT(fndbag.[Transaction ID], 8), 1)) AS MakeMeAnInt
,   RIGHT(fndbag.[Transaction ID], 8) AS TransactionId
FROM
    fn_dblog(NULL, NULL) AS fndbag;
 
hm. ok. thanks
 
8:42 PM
If you can tell me what the leading 4 digits are... actually, no I bet I know. One second for a complete answer
 
once you know can you tell me?
 
I'm guessing that 4 digit is also a hex number that needs to be converted and then multiplied against the right half number
What all of this means within the context of a something id is beyond me but I like conversions
 
thanks for all your work, @billinkc ... however ... i just happened to stumble across something which makes it clear that i should be using [XACT ID] from fn_dblog and not the [Transaction ID] column. hhhhhhhhhhhuuuuuuuuuuuuuuuuuuurrrrrrrrrrrrrrrrrrrrrrrrrrrrr
 
Carry on being a dbag then
 
i've learned from the best
 
8:53 PM
@billinkc I see 6
 
fn_dblog sounds like cursing to me
 
The search functionality on this thing is f'ing terrible.
If I select United States as region and then search for Joe Sack it doesn't find him.
 
That's because he's hidden his country (default)
 
That still seems quite stupid.
 
It's also amusing that the thing really only cares about your MVP number
 
9:03 PM
fffffffffffffffuuuuuuuuuuuuuuuuuuuuuuuuuhhhhhhhhhhhhhhhhhhhhhhhhhhhh
screw this crap
i'm just going with extended events. screw fn_dblog
 
@Phil That's the Phil we remember.
This question appears to be off-topic because it is about the user attempting to use a graphical interface in a terminal — Phil 5 hours ago
 
@ypercube he he.
 
:D
 
columns named
> child1.DOB | child1.Gender | child2.DOB | child2.Gender
why?
 
9:08 PM
Rows are expensive, columns are cheap
or if you prefer: records are expensive, fields are cheap
2
 
@bluefeet Lol where is that?
 
@billinkc his SO user is listed in the "Social" part
 
0
Q: Reformat existing table from paired columns into rows

SuperSimmer 44For example I have a table with 5 rows and 7 columns, I wish to move the last two columns into the previous two columns. New format of table would now be 10 rows and 5 columns Present Table format +-----+------------+----------+------------+---------------+------------+-...

 
I couldn't think of a better insult than Dr MySQL
 
@Zane of course I answered it
 
9:10 PM
@bluefeet how will child 78 ever tell his parents he wants to switch his gender from 0 to 1...
Difficult conversation to have.
 
I think after 30 children your uterus falls out
 
@billinkc doubt it, ask the duggars
 
child1.IsNowInAdultTable, child1.AdultTableID are missing!
Crappy database design
 
@bluefeet Had to bingle that. Wish I didn't know of them
 
@Phil Understatement.
 
9:12 PM
@billinkc I think they have a tv show
 
 
@Phil excellent return to form
 
I had to google that as well. The results were strange to say the least.
 
@Zane varbinary
 
had to google them too
"19 kids & counting"
 
9:16 PM
@Zane so much wtf
 
You know you're bound to be a dumb hillbilly when your parents name you Jim Bob.
There's nobody in the world name Jim Bob with a degree in the sciences. It's just not in the cards.
 
@Zane that's not fair. there are probably plenty of intelligent folk named Jim Bob. their intelligence isnt attached to their name - it's attached to their capacity to think critically
 
"Michelle Duggar: Future plans: Finish memorizing Matthew 5,6&7"
 
"Believing the miscarriage was due to the contraceptive, the Duggars decided to eschew birth control and allow God to determine the number of children they would have."
...
 
@Lamak srsly?
 
ehrmagerd
> Michelle: "Finish memorizing Matthew 5-7 and start violin lessons again"
@Lamak comic sans. can't take it seriously.
 
@swasheck Favorite Quote: "saying there are too many children is like saying there are too many flowers!"
 
There's a 15 person van that drives around the area with personalized plates that say "Quiverfull"
Quiverfull is a movement among some conservative evangelical Protestant couples, chiefly in the United States, but with some adherents in Canada, Australia, New Zealand, Britain and elsewhere. It promotes procreation, and sees children as a blessing from God, eschewing all forms of birth control, including natural family planning and sterilization. Adherents are known as "quiver full", "full quiver", "quiverfull-minded", or simply "QF" Christians. Some refer to the Quiverfull position as Providentialism, while other sources have referred to it as a manifestation of natalism. Currently, several...
 
@Lamak these people give me a bad name
 
FUN FACT: Josh and Anna both saved their first kiss for their wedding day
how fun
2
 
9:22 PM
I only had to go one step down the wikipedia rabbit hole from these people to become quite pissed off.
Accelerated Christian Education is an American educational products company founded in 1970 which produces the Accelerated Christian Education (ACE) school curriculum. As of September 2013 ACE serves over 6,000 schools in 145 countries. The company is based in Hendersonville, Tennessee (suburban Nashville), with their distribution center located in Lewisville, Texas (in the Dallas-Fort Worth Metroplex). It lists its principles in a "statement of faith" which declares the belief that the Bible is literally true. == History == Accelerated Christian Education was founded in 1970 by Dr. Donald Howard...
 
@swasheck jeez, what the hell: "Future plans: make a difference for Eternity"
 
@Lamak That sounds like the opposite of fun.
 
Naming all of your children with the same initial letter "J" is a bit silly. If I were to have that many, my first born would be named Oracle, with subsequent children named after impressive RDBMSes. Then hopefully it'd be a physical impossibility to ever have a kid named MySQL because you can't possibly spawn 15000 children from a single mother.
 
@Zane these are some of the most unreasonable folks in the world. no sense in trying to reason with them.
@Zane kissing isnt fun for me. it's stressful. "i'm drooling." "am i doing this right?" etc. etc.
@Phil 10g go tell 9i it's dinnertime
 
I've read too far into the ACE program. I'm angry and want to go home.
 
9:25 PM
@Zane it's funny for us I think?
 
@Zane Oracle ACE? I know one. Used to work together
 
@Phil See aforementioned "Education" program.
 
Oh, hahahahaa
 
@Zane it's not education. it's. brainwashing
 
01:00 - 18:0018:00 - 22:00

« first day (1366 days earlier)      last day (3499 days later) »