Uncategorized Archives - Thomas LaRock https://thomaslarock.com/category/uncategorized/ Thomas LaRock is an author, speaker, data expert, and SQLRockstar. He helps people connect, learn, and share. Along the way he solves data problems, too. Sun, 02 Feb 2014 01:04:47 +0000 en-US hourly 1 https://wordpress.org/?v=6.7.1 https://thomaslarock.com/wp-content/uploads/2015/07/gravatar.jpg Uncategorized Archives - Thomas LaRock https://thomaslarock.com/category/uncategorized/ 32 32 18470099 Ignore and Add Strife https://thomaslarock.com/2014/02/ignore-add-strife/ https://thomaslarock.com/2014/02/ignore-add-strife/#respond Sun, 02 Feb 2014 01:04:47 +0000 http://thomaslarock.com/?p=11174 Found this image today and thought “Yeah”. We’ve all been there. We all know that sending one more email is NOT going to solve the issue, and that a phone call is needed. And yet, we never seem to choose the option on the right until the bridge is already on fire.

The post Ignore and Add Strife appeared first on Thomas LaRock.

]]>
Found this image today and thought “Yeah”.

We’ve all been there. We all know that sending one more email is NOT going to solve the issue, and that a phone call is needed.

strife

And yet, we never seem to choose the option on the right until the bridge is already on fire.

The post Ignore and Add Strife appeared first on Thomas LaRock.

]]>
https://thomaslarock.com/2014/02/ignore-add-strife/feed/ 0 11174
Meme Monday for April https://thomaslarock.com/2012/04/meme-monday-for-april/ https://thomaslarock.com/2012/04/meme-monday-for-april/#comments Wed, 04 Apr 2012 13:10:37 +0000 http://thomaslarock.com/?p=8421 I know it is a week late. Let’s just agree that I have been busy with other things. For those that are unaware, Meme Monday is where I assign a writing assignment for those that need to be given a topic to write about in order to help you blog more often. With Meme Monday posts you don’t ... Read more

The post Meme Monday for April appeared first on Thomas LaRock.

]]>
Meme Monday for AprilI know it is a week late. Let’s just agree that I have been busy with other things. For those that are unaware, Meme Monday is where I assign a writing assignment for those that need to be given a topic to write about in order to help you blog more often. With Meme Monday posts you don’t need to tag others, you don’t need to link back to this post, and you don’t have to wait to be tagged. Just start writing!

Here is your assignment for next week:

SQLCLR: Good? Or Evil?

Give an example of how you have used CLR, or seen CLR used well, or not so well. Tell us why you may have decided to not use CLR at all.

The issue I had with CLR is that when a developer would build a CLR object (say, a stored procedure) and then complain about lousy performance on the database side, we couldn’t see the code that was in the assembly. And we didn’t have access to the source code (because we weren’t developers), so we would have to walk over to the developers cube to look at the .NET code in order to try to decipher what was being done. This made performance tuning and troubleshooting rather difficult, if not impossible.

I still remember being at the MTC in Waltham and the Microsoft folks many years ago telling me about how wonderful CLR was going to be and my asking the simple question “yeah, so how do I help tune code and queries I can’t see?” The look on their faces was priceless. “You could get a refactoring tool…I guess….we don’t know…why would you need to see it? It will execute just fine.”

Yeah. Just fine. Until it doesn’t run just fine. And then you need to fix it like a mechanic performing a tune-up in the dark with both hands behind their back.

Despite all of that I find CLR to be “mostly good”. I try to tell developers to use CLR any time they would be thinking of creating a .DLL for something. If whatever you are doing doesn’t need a .DLL, or an extended stored procedure, then you don’t need to be thinking about creating a CLR.

 

The post Meme Monday for April appeared first on Thomas LaRock.

]]>
https://thomaslarock.com/2012/04/meme-monday-for-april/feed/ 4 8421
What Happened Here? https://thomaslarock.com/2012/03/what-happened-here/ https://thomaslarock.com/2012/03/what-happened-here/#comments Thu, 22 Mar 2012 18:28:29 +0000 http://thomaslarock.com/?p=8191 Last week I posted a puzzle of sorts. I showed you a handful of graphs from PAL and asked if anyone could determine what had happened. Out of all the comments that were left only a handful of people seemed to be on the right track, or showed a methodology in their thinking that should ... Read more

The post What Happened Here? appeared first on Thomas LaRock.

]]>
Last week I posted a puzzle of sorts. I showed you a handful of graphs from PAL and asked if anyone could determine what had happened. Out of all the comments that were left only a handful of people seemed to be on the right track, or showed a methodology in their thinking that should have gotten them to the same conclusion.

The answer to the scenario last week is this: Someone ran a SELECT statement, and that statement needed to read pages from disk into memory, which flushed all the existing pages out.

There was no issue with hardware, there was no magic knob to turn to make performance better, or to have prevented any end user from running such a statement. The answer wasn’t complex, either. Just one user, running a valid query that needed to pull in a lot of data.

Sometimes, as a DBA, all you can do is educate. You are not always able to press a button to make problems go away completely.

Here is another one for you today. Can anyone explain what is happening here, and what actions a DBA would take when presented with these details…or if any action should be taken?

SQL Server: Buffer Manager/Checkpoint Pages/sec
Checkpoint pages/sec
SQL Server: Buffer Manager/Lazy Writes/sec
Lazy Writes/sec
SQL Server: Buffer Manager/Page Writes/sec
Page Writes/sec

Leave your thoughts and answers in the comments, I would love to hear what you believe is happening to my server.

The post What Happened Here? appeared first on Thomas LaRock.

]]>
https://thomaslarock.com/2012/03/what-happened-here/feed/ 4 8191
DBAs and Data Architects: Equally Despised? https://thomaslarock.com/2011/11/dbas-architects-despised/ https://thomaslarock.com/2011/11/dbas-architects-despised/#comments Fri, 18 Nov 2011 01:31:49 +0000 http://thomaslarock.com/?p=7010 All these years I thought DBAs were the least liked group inside of IT. So imagine my surprise to find out today that data architects are seen as roadblocks to productivity as well. I simply had no idea. I am shocked to hear this. On the other hand, the article reinforces a theory I have had for ... Read more

The post DBAs and Data Architects: Equally Despised? appeared first on Thomas LaRock.

]]>
All these years I thought DBAs were the least liked group inside of IT. So imagine my surprise to find out today that data architects are seen as roadblocks to productivity as well.

I simply had no idea. I am shocked to hear this.

On the other hand, the article reinforces a theory I have had for years: developers hate everyone, apparently.

Digging deeper into this I believe I have found the following facts to be true:

Developers Don’t Want Perfection

As a DBA or a data architect it is our role to lay out the ideals to be followed. As a result of seeing these ideals laid out before them, many people (developers, project managers, pointy hair bosses) see those ideals as too time consuming to be followed.

You want two or three testing phases? Impossible, we have deadlines to meet.

You want to use specific datatypes? Impossible, it would take us months to classify everything properly, and we have deadlines to meet.

You want to know how much data we are expecting? We have no idea, we have deadlines to meet and we need to get started coding now, why are you wasting our time with all these questions?

[Besides, we all know that the business requirements are going to change anyway, so we might as well start building something and worry about the requirements later, right?]

To me the first issue is the nature of how IT projects are almost always under the gun due to a time constraint. It’s always “by the end of the year”, or quarter, or month that a project needs to be completed. There is little to no time to worry about making it perfect, it simply needs to be considered “delivered” in order for people to be considered to have met their objectives for the year when it comes time for their annual review.

Developers Don’t Want To Waste Time

So now that the developers have started building something the last thing they would want to hear three months later is that they need to start over. Who wants to be told that they have wasted their time? Nobody, that’s who.

This is where I break out the term “structural integrity”. [Yeah, it *is* something I heard many times in many Star Trek episodes, so what?] Anyway, whatever it is that gets built is only going to be able to go so far, or so fast (i.e., scale). Three or six months down the road, as all the requirements are changing and performance isn’t being met, the last thing the developer wants to hear is that they should have listened to the DBA or data architect in the first place.

It’s like having to hear someone say “I told you so”, except you can’t punch them in the face after they say it without having HR get involved.

So how do we avoid this? With better project management, a better setting of expectations, and an understanding of what is needed versus what is wanted.

We all want perfection, but perfection is not always needed. Sometimes you just gotta get started on building/fixing something.

You’ve got to look past all those trees and just see the forest, you know?

The post DBAs and Data Architects: Equally Despised? appeared first on Thomas LaRock.

]]>
https://thomaslarock.com/2011/11/dbas-architects-despised/feed/ 13 7010
Office 2007 files and WinZip https://thomaslarock.com/2010/04/office-2007-files-and-winzip/ https://thomaslarock.com/2010/04/office-2007-files-and-winzip/#comments Fri, 23 Apr 2010 13:57:09 +0000 http://thomaslarock.com/?p=4090 I attended an R2 Launch event yesterday. It was at the Microsoft office in Farmington, CT, and hosted by Adam Jorgensen (blog) of Pragmatic Works. Adam did a great job in walking us through all of the new features of R2. In particular we spent a good amount of time on PowerPivot. When I asked ... Read more

The post Office 2007 files and WinZip appeared first on Thomas LaRock.

]]>
I attended an R2 Launch event yesterday. It was at the Microsoft office in Farmington, CT, and hosted by Adam Jorgensen (blog) of Pragmatic Works. Adam did a great job in walking us through all of the new features of R2. In particular we spent a good amount of time on PowerPivot. When I asked Adam about issues with disk space for users who save their PowerPivot files locally he indicated that he has not come across any disk space issues. I don’t think he has seen anyone trying to grab 30GB of data (yet), but he did say that the compression has worked well so far.

Of all the things I learned today, one of the neatest things was the fact that you could simply rename an Office 2007 document as a ZIP file and open the file with WinZip to examine the contents. Adam mentioned how he was having trouble understanding why a particular PowerPivot report was fairly large. When he renamed it is a .zip file he was able to quickly isolate the issue. Go ahead and try it with a .docx or .xlsx file, just rename to a .zip file, open, and explore.

I had not heard about this previously. A quick Google Bing for the topic came back with a few hits that had to do with IE and Office downloads but that was about it. Not sure if this will ever be useful for anyone or not, but I certainly found it interesting enough and felt it was worth mentioning here.

The post Office 2007 files and WinZip appeared first on Thomas LaRock.

]]>
https://thomaslarock.com/2010/04/office-2007-files-and-winzip/feed/ 2 4090
Whose Crazy Is It Anyway? https://thomaslarock.com/2010/01/whose-crazy-is-it-anyway/ https://thomaslarock.com/2010/01/whose-crazy-is-it-anyway/#respond Mon, 11 Jan 2010 00:19:36 +0000 http://thomaslarock.com/?p=3455 This post is a response to the challenge explained by Tim Ford in his Whose Blog Is It Anyway post. I suggest you go and read his post first otherwise this one will probably not make much sense to you. “I’ve started, so I’ll finish!” That’s how Sonny would react when anyone tried to interrupt him while ... Read more

The post Whose Crazy Is It Anyway? appeared first on Thomas LaRock.

]]>
This post is a response to the challenge explained by Tim Ford in his Whose Blog Is It Anyway post. I suggest you go and read his post first otherwise this one will probably not make much sense to you.

“I’ve started, so I’ll finish!”

That’s how Sonny would react when anyone tried to interrupt him while he was telling a story. And he said it with the same tone and inflection as the time he corrected his better half by saying “I’m the man, and what I say stands!” And it was our clue that he had no idea what he was talking about. This was certainly true at this time, as Sonny had started to tell a story about the time he was working as an extra on the set of Revenge of the Sith, which we knew meant little more than working for the caterer.

Sonny continued on with his story, “…but as soon as he looks down he’s going to be very sad about the pony”.

“Why would George Lucas be sad about the pony?” I asked, waiting for an insult to be sent my way.

“I don’t know, and it’s not like I can just ask George “Let’s Have Padme Die Of A Broken Heart Instead Of Anakin Crushing Her To Death” Lucas why the hell he cares so much about a damn pony,” Sonny responded. “The guy was busy trying to bury the whole Star Wars franchise by simply using some magical tool, library, or bong. It’s not like I can tell you what the hell he was thinking.”

“OK then,” I replied, “so what was the point of your story again?”

Sonny was clearly annoyed at the interruptions, so he got right to the point. “I was trying to tell you about the time I got drunk with some of the guys at ILM and we inserted some signage into one of the city scenes. If you look close enough you can see a marquee that says “Live Nude Cats”, we knew George wouldn’t be able to spot that because there was too much going on in the scene already.”

“Wow,” was all I could say. And now I need to go watch the movie again. Sonny may be crazy, but so is George Lucas.

The post Whose Crazy Is It Anyway? appeared first on Thomas LaRock.

]]>
https://thomaslarock.com/2010/01/whose-crazy-is-it-anyway/feed/ 0 3455
SQL 2008 R2 Utility Control Point (UCP) Videos https://thomaslarock.com/2009/11/sql-2008-r2-utility-control-point-ucp-videos/ https://thomaslarock.com/2009/11/sql-2008-r2-utility-control-point-ucp-videos/#respond Mon, 30 Nov 2009 17:17:06 +0000 http://thomaslarock.com/?p=3281 While Playing around with the UCP inside of SQL 2008 R2 I found some videos to help you get started. The November CTP has six videos listed but only five of the links are currently working. Here is the splash screen you will see to help you get started: The link to “Enroll instances…” does ... Read more

The post SQL 2008 R2 Utility Control Point (UCP) Videos appeared first on Thomas LaRock.

]]>
While Playing around with the UCP inside of SQL 2008 R2 I found some videos to help you get started. The November CTP has six videos listed but only five of the links are currently working.

Here is the splash screen you will see to help you get started:

UCP_splash

The link to “Enroll instances…” does not seem to be working. The other five are working just fine. Since I am not able to play the videos directly from my server, so I had to save the files to a network share and then play them from my desktop.

Here are the actual links:

Create a Utility Control Point (UCP)

Connect to an existing UCP

Create a data-tier application

Set Resource Health Policies

Modify UCP Users

Now, maybe it is just me, but I think there is some inconsistencies with the use of capitalization. But this is only a CTP, so I will refrain from filing a Connect item for now. But I may file one for the broken link.

The videos are hosted by Buck Woody (blog | @buckwoody), who is all business. I kept hoping to start making a list of people or things but he was professional throughout. In other words, the videos have little entertainment value, but are a wonderful resource to help you get started using UCP.

The post SQL 2008 R2 Utility Control Point (UCP) Videos appeared first on Thomas LaRock.

]]>
https://thomaslarock.com/2009/11/sql-2008-r2-utility-control-point-ucp-videos/feed/ 0 3281