Tuesday, August 17, 2021

T-SQL Tuesday #141: Work/Life Balance? - Wrap up

As the challenge was accepted by many folks, I tried to keep track of their thoughts and make my own notes. I really enjoyed watching everyone attempt to tackle this topic and inspire others while sharing their own experiences, hopes, dreams, attempts, and so on. 

Each blog that I experienced felt like the authors really sat down and tried to outpour their souls. I can only assume, in an effort to help others along their own path with these folks' experiences. 


Here is what I pulled from each of your posts. 

I feel like I should revisit these posts and reread them from time to time, to see if I have implemented any of these ideas myself, but more importantly to revisit how I am doing now, or then, as things will change and my efforts toward achieving balance will most likely need to change as well over time. 


--Blogs


 Rob Farley his attempts in finding relevant quests to achieve work life blance thru activities he enjoyes or wants to enjoy. Mainly finding a distraction from current engagements to satisfy.

 http://blogs.lobsterpot.com.au/2021/08/10/work-life-balance/

 

 James McGillivray also notes that its about balance. Realizing life needs you to not give 110%, taking control, self introspection to course correct.

 https://jimbabwe.co.za/2021/08/10/t-sql-tuesday-141-its-all-about-balance/

 

 Tom shows us time spent in various activities, work and personal life. And stresses that we need to manage expectations, get enough sleep and take time off.

 http://www.straightforwardsql.com/work-life-balance-t-sql-tuesday-141/

 

 Brent Ozar makes a joke about using JIRA to track your homelife. But in all reality realizes that what is tracked can be understood and altered and made good. (my words). And gives practical advice to implement these ideas.

 https://www.brentozar.com/archive/2021/08/want-a-better-work-life-balance-use-jira-at-home-tsql2sday/

 

 Gethyn teaches us that people dont know when to stop. Simply working from home is not the balance we seek. And then offers concrete rules that have helped.

 https://www.gethynellis.com/2021/08/work-life-balance.html

 

 Kevin used to work from home and was able to help coworkers do so when Covid hit. As well as organize a virtual event. It is important to realize that others can help us out. REach out.

 https://www.kevinrchant.com/2021/08/10/t-sql-tuesday-141-work-life-balance/

 

 Cathrine entertains us with her list of nopes and yeps. With real life examples that have helped, and may help us. 

 https://www.cathrinewilhelmsen.net/yeps-nopes-balancing-work-life/

 

 Jeff has had experience already working from home and luckily has a strong enough marriage to allow them both to be at home. And then answers my questions with real world answers that helped. 

 https://sqladm.in/posts/tsql-tuesday-141/

 

 Aaron shares absolute rules to follow that have helped. I love the idea of making up time to the family spent on after hours work. What a nice example to flip the script.

 https://sqlblog.org/2021/08/10/t-sql-tuesday-141-work-life-balance

 

 John also believes that the outdoors is key in affecting this balance and provides rules that have helped achieve this balance. 

 https://johnmccormack.it/2021/08/balancing-work-and-life-the-covid-years-tsql2sday/

 

 Dale engages the frace 'forcing function' to let things enfore the rules to provide balance. I have to do X to do Y so I must step away from work now. 

 https://dalehirt.com/2021/08/10/t-sql-tuesday-141-work-life-balance/

 

 Camila has learned to listen to the body and mind and seek a comfort between work and personal. Acknowledging the idisyncracies of ones own mind and the impact this has on tasks and plans. 

 https://camilahenrique.com/2021/08/10/work-life-balance-tsql2sday/

 

 Chad seeks to find success while working from home. Replacing moments with new tasks like naps and walking the dog. At home or the office. 

 https://callihandata.com/2021/08/10/t-sql-tuesday-work-life-balance/

 

 Deepthi acknowledges that guilt and pressure that leads to stress. Instead, make little changes in life to your schedule. And uses one of my favorites phrases, findging happiness. I say, Find Your Happy. 

 https://dbanuggets.com/2021/08/10/t-sql-tuesday-141-work-life-balance/

 

 Travis details rules that have helped. Setting up rules that provide boundries, then mental breaks and stress relief, remembering to ask for help, and leave bad situations. 

 https://www.travis-page.com/t-sql2sday/T-SQL-Tuesday-141-Work-Life-Balance/

 

 

 --Twitter

 

 Chris reflects on how fast life moves and kids and family change quickly. Controlling what you can manage and letting go has helped. 

 https://t.co/ZiOQnmGo2r?amp=1

 

 Jess reflects on how the pandemic has shifted work and commutes and things. Having a hard stop or other activity helps stop the work day. Exercise and support from others has really helped.

 https://t.co/eZxnyxy2pU?amp=1

 

 Ken learned that timings are not immutable and giving in to ebb and flow, can lead to the balance one seeks. 

 https://t.co/fdkTPGZ1o9?amp=1

 

 


http://tsqltuesday.com/tag/2021/

https://tjaybelt.blogspot.com/2021/08/t-sql-tuesday-141-worklife-balance.html

Tuesday, August 10, 2021

What does Work/Life Balance mean to me?


This month's T-SQL Tuesday challenge is this topic. I am hosting the blogging event, and this was my topic of choice. Because it has been on my mind a lot these last few years, and more so recently. 

It seems like an easy answer problem to answer, no? 

I've had coworkers simply say that they will never answer a message after work hours. Others turn off their phones. Some leave on the dot of a specific time, and work is done for the day. Others talk about how to maximize their usage of vacation time. Others mention that they work a lot of overtime, because they can, and want to get that big promotion. Others come in early because they believe that is the magic ticket. 

What I get from these is the age ol' answer to everything. 'It Depends'.

Review the below list yourself. And answer each of these honestly. If you can, compare with someone else, and see the disparity of answers.

  • Should we work late on that thing cause we are almost done?
  • Should we get to work at a specific time each morning?
  • Should we leave at a specific time each day? 
  • Should we eat at our desks for lunch?
  • Should we leave for a lunch break? 
  • Should we get exercise in the morning before work? During work? After work?
  • Should we check mail and work apps first thing in the morning?
  • Should we check mail and work apps after you have left for the day?
  • Should we never check mail and work apps when we are not truly 'working'?
  • Should we get showered and dressed each day, and still work from home?
  • Should we shower once a week and dress poorly since we work from home? 
  • Should we use a scheduling technique to keep us on track during the workday?
  • Should we stretch the workday out, adding breaks within for personal stuff?
  • Should we never take personal breaks during work hours, because work is a priority during 9-5 hours?
  • Should we work late today because we started late this morning?
  • Should we leave early today because we started earlier this morning?
  • Should we leave home before starting work, to get a morning beverage, and delineate our days with normal tasks?
  • Should we check mail and work apps on the weekend?
  • Should we check mail and work apps on PTO?
  • Should we stay at the gym for one more game on Friday, since it's Friday, and we work from home anyway?

I find that some of these ring more true to me than others. And I will tend to dig into these individually more than others. Some really force the answer 'It Depends'. Because it does. It depends on a lot of things. Where I am in my career, what my goals are, and so on. 

Since the answer can often be 'It Depends' to these and many of life's questions, it behooves us to individually dig into these, and other similar questions, and form our own answers. Individual answers. And realize that these may work for a time, and cease to work after a time. 

For example, when I had younger children at home, it was much more important to me and my family that I was home at a certain time. Dinner was a planned event, and we enjoyed it together. But as my kids have grown, and moved on, this is not so important anymore. So I can stay later now than I used to. However, maybe at this time in my life, I don't want to. But maybe I do. So its changes with time. One answer works for a while, then stops being the right answer, because reasons. So I urge you to constantly evaluate your answers and make sure that they still fit for you now. As now will forever change. 

So, what works for you may not work for me. But we can definitely learn from each other and see examples. We can review our activities and moods and responses, and adjust as needed.


What's worked for me?

Several years ago I got an app called Daylio. It has a daily reminder I set for 10:45pm to input daily data. It wants to know the overall mood for the day. It also lets me tag specific activities performed within the day, presumably that support this overall mood for the day. These are Rad, Good, Meh, and 2 lower moods I've never actually selected. 

This becomes an interesting exercise. I get to evaluate the entire day and pick a single mood. So it must be an average for the day, not a high or low mood, in my interpretation. I could have had a terrible morning, but a better afternoon, so would that be average ok for the day? Can you have a Rad day while you are at work? It feels like a Rad day would be a weekend. But why cant a workday be Rad? and why can't a weekend be Meh? 

In any event, it makes me think. And forces me to evaluate the day. Over the years I've used this app, I've been able to refine the activities to things that really seem to matter to me at the time. For example, I used to have activities for TV and Movies separated. But I realized that these were not core activities, and stopped using them to measure against my overall mood. I might watch TV or see a Movie, but it rarely weighs in to make a day Rad as compared to Good. So I have stopped including them in the overall activity exercise. I have since added different items in an effort to measure and weigh what makes me happy. I have separate entries for Outside and Desert and Mountains. Desert and Mountains are outside, but Outside also means in my yard, or playing pickleball at lunchtime, or simply being outside. This is also different from Garage Time, which usually entails some activity of creating or building. 

The point being is that for me, I have fine-tuned this data gathering to fit me. It will probably not fit you. But I highly recommend you do something similar. I have been tracking my data for over 900 days now, and have learned a lot. Annually, I review the data and use it to change activities or priorities as I see patterns. 

For me, spending time doing an activity of exercise daily has elevated my mood and work/life balance. Sprinkling in a couple other days of other activities has definitely helped, and this is usually after work. Spending time outside has become a positive point in my life, as well as spending time in my garage. So I try to do these things as often as I can in the week and notice when I have not, it affects me. So I've been known to say 'It's been too many days since I've been in the mountains, I need to return'. Or fill in the activity I've not done, and then I need to make sure I do that more. 

Some things are seasonal, but still bring me joy. I ride dirtbikes, but not in the winter or the summer. More spring and fall. I also don't hike in the winter but do switch to snowshoeing. So seasonal things also happen when necessary. And on repeat, enough that I feel satisfied. If I do not feel satisfied, often it's because something like this is missing.

Now, switching gears, if I concentrated on the outside and fun activities only, I could find myself ignoring work. Why not do the same thing at work? What items should I track while at work that brings me joy or subtracts joy? If you can narrow those down and track them, you'll be better poised to make changes to them, possibly, and make yourself feel better about your work/life balance.

I have added 2 entries in my activities that let me track when I work on my tasks, vs when I work on other people's tasks. As I have noticed that being pulled into other people's issues to solve them or assist in solving them subtracts from my joy, I am not poised to respond better to these requests. When I can pour myself into my tasks, I am happier. It may not be that easy, but at least now I have identified the problem and can act towards a fix. It may require a new job or an acceptance of the job I already have. It may require out-of-the-box thinking or even conversations with bosses or other team members. But you are on the path to solving it, rather than allowing the activity to control you and your mood and your balance. 


-----------------------------------------------------------------------------------------------------------------------------


So that was a lot of words. And if you made it this far, I'll reward you with a shorter version.

  • Find what makes you happy. 
    • How do you find this? I measure daily activities and moods. But you do you. But find it!
  • Once you find 'your happy', repeat 'your happy' as often as possible. 
    • How do I find 'my happy'? Using various tools and data collection and retrospectives.
  • Work towards repeating 'your happy' more often than not.
    • How do I do this? Make a plan to repeat when time allows, and schedule it and make it happen. 

 


Tuesday, August 03, 2021

T-SQL Tuesday #141: Work/Life Balance?


Work/Life Balance?


Having gone thru this last year of strange upheaval around the world, I've been thinking about this topic quite a bit lately. My company has a mentor program where one can sign up and discuss this topic. I signed up. I've had several 'sessions' with my mentor. We've had some productive conversations about what this all means to me, my career, my skillset, and so on.

As I transitioned to work at home, some 500 days ago, it was a shift in perspective, timing, and many things. Trying to keep those scales balanced has been a focus and a struggle from time to time. Especially recently, but throughout my career, it's a topic I often lapse back into. Trying to find that balance.


My invitation to you for this month’s #tsql2sday is…

I want to invite you to share your experiences dealing with your own personal journey with Work/Life Balance, either thru experience, or hopeful future goals…

  • What are the cool things have you learned?
  • What things did you try, that simply didn't work out? 
  • What rules have you implemented that made it easier to balance?
  • What rules made it harder to find that balance?
  • What are tips or tricks can you share to help others?

*** The Rules ***

Your post must be published on Tuesday, August 10th 2021 (in any timezone). (Not the 17th, like I initially said here. Oops)

Include the T-SQL Tuesday Logo and make it link to this invitation post.
Please add a comment to this post with a link to your own so I know where to find it.
Tweet about your post using the #tsql2sday hashtag.

Monday, November 23, 2015

Update stuff I've done, mainly for me. You don't have to read this at all.


Speaking Engagements



SQL Saturday

SQL Saturday 54, Salt Lake City       October 2010      Database Switch

SQL Saturday 54, Salt Lake City       October 2010      SQL Server Profiler and Tracing


SQL Saturday 66, Colorado
               February 2011     Documentation – you know you love it

SQL Saturday 94, Salt Lake City       October 2011       Data File Sizes

SQL Saturday 94, Salt Lake City       October 2011       Documentation – you know you love it

SQL Saturday 97, Austin                    October 2011      Data File Sizes


SQL Saturday 104, Colorado Springs
 January 2012       Utility Belt Pre-Con

SQL Saturday 154, Salt Lake City      October 2012       Release Management


SQL Saturday 183, Albuquerque
         February 2013     Release Management

SQL Saturday 190, Denver                  September 2013  Documentation

SQL Saturday 246, Salt Lake City      September 2013   Database Monitoring

SQL Saturday 249, San Diego            September 2013   Database Monitoring

SQL Saturday 249, San Diego            September 2013   Documentation


SQL Saturday 279, Phoenix
                February 2014      Documentation

SQL Saturday 279, Phoenix                February 2014      Release Management
SQL Saturday 295, Las Vegas            April 2014             Database Monitoring

SQL Saturday 297, Colorado Springs April 2014            Documentation

SQL Saturday 340, San Diego            September 2014    Documentation

SQL Saturday 340, San Diego            September 2014    Database Monitoring

SQL Saturday 340, San Diego            September 2014    Release Management

SQL Saturday 349, Salt Lake City      October 2014        Release Management

 

SQL Saturday 362, Austin                 January 2015          Release Management

SQL Saturday 358, Albuquerque           February 2015        Documentation

SQL Saturday 441, Denver                September 2015     Hadoop, Hive, Json, and Data, Oh My!!

SQL Saturday 474, Salt Lake City     November 2015     Hadoop, Hive, Json, and Data, Oh My!!

 

SQL Saturday 478, Albuquerque        February 2016      Hadoop, Hive, Json, and Data, Oh My!!

SQL Saturday 483, Colorado Springs April 2016            Hadoop, Hive, Json, and Data, Oh My!!
SQL Saturday 492, Phoenix                April 2016            Hadoop, Hive, Json, and Data, Oh My!!
SQL Saturday 576, SLC                      November 2016   PowerBI for the DBA

SQL Saturday 597, Phoenix                April 2017           PowerBI for the DBA

SQL Saturday 673, Denver                 September 2017  PowerBI for the DBA

 

SQL Saturday 700, Colorado Springs March 2018          PowerBI, From a DBA

SQL Saturday 726, Phoenix               March 2018          PowerBI, From a DBA

SQL Saturday 720, Albuquerque       May 2018             PowerBI, From a DBA

 

SQL Saturday 830, Colorado Springs April 2019            Power BI, from a DBA’s Perspective

SQL Saturday 887, Salt Lake City     August 2019         [Organizer only]

SQL Saturday 908, Denver                 October 2019       Power BI, from a DBA’s Perspective

SQL Saturday 997, Salt Lake City     August 2020         Let’s take PowerBI on an adventure

 

Events

RedGate's SQL In The City                                October 2015          Monitoring + SQLMonitor

Microsoft SQL Server 2016 Discovery Day       June 2016 

Seattle Freecon                                                    November 2016      PowerBI for the DBA

 

User Groups

Utah User Groups                                                June 2005                Reporting Services

Utah User Groups                                                August 2005            Profiler / Trace

Utah User Groups                                                February 2006         Sarbanes-Oxley

Utah User Groups                                                January 2008           Query Processing

Salt Lake City User Group                                   2004-2008               various topics

Utah County User Group                                     2006-2008                various topics
Utah County User Group                                     August 2016             PowerBI

 

 

Code Camps

Salt Lake City Code Camp                                 October 2006             Profiler / Trace

Salt Lake City Code Camp                                 April 2008                 Query Processing

Salt Lake City Code Camp                                 November 2008         Query Processing

Salt Lake City Code Camp                                 November 2013         Release Management

Big Mountain Data                                             November 2017          PowerBI for the DBA

 


Miscellaneous

Microsoft 2006 Analysis Services

ACS 2006 Sarbanes-Oxley

PASS SIG 2007 Some topic

Imagine Learning 2015 Hadoop ETL Processes

 

 

SQL Server World Wide User Group Virtual Conference

SSWUG vConference                April 2009                 Auditing your users

SSWUG vConference                April 2009                 Best Practices

SSWUG vConference                April 2009                 Job Execution System

SSWUG vConference                April 2009                 Monitor Index Fragmentation

SSWUG vConference                April 2010                 Configuring and Managing GoldenGate

SSWUG vConference                April 2010                 Database Switch

SSWUG vConference                April 2010                 SQL Server Profiler and Tracing

SSWUG vConference                October 2010             Database Change Process

SSWUG vConference                October 2010             On Call Duties

SSWUG vConference                October 2010             Professional Development

SSWUG vConference                October 2010             SQL Server Logical Query Processing

SSWUG vConference                April 2011                  Data File Sizes

SSWUG vConference                April 2011                  Documentation – you know you love it

SSWUG vConference                April 2011                  Server Profiler and Tracing, a “How To”

SSWUG vConference                April 2011                  Stand-alone DBA dailyweeklymonthly

SSWUG vConference                November 2016         PowerBI for the DBA

                

 

SQL RALLY 

Dallas Texas, May 2012 All Day Pre-Con with co-presentor Chris Shaw,

        How to be a DBA - A Utility Belt of Tools

 

Tuesday, February 03, 2015

SQL Saturday ALBER..ALBUq...ALBURQUERQUE... New Mexico

I was thrilled to get the email confirming that I was selected to speak at SQLSaturday #358 on February 07, 2015. 

Its been two years since I went to New Mexico, as I then had the honor of speaking at the inaugural event. I am happy to return. Last year, family got in the way of my attending. I cant remember what i had to do instead, but I am sure it was the right decision to hang with my family then.

This time around, I am bringing my 15yr old daughter with me. She is learning how to drive, and a road trip is one of the ways we solve this dilemma in my family. So why not make a 9 hour trek south to New Mexico and back? 

We will be leaving midday on Thursday, driving 5 hours, and spending the night in Utah, near the border. The next day will be Friday, and we will get up and go see four corners area, which we have never seen before. Then travelling to New Mexico. Once there, im sure we'll hit the hotel, and then make our way to the speaker dinner. I love attending these little get togethers, so that we can see and say hi to our #sqlfamily. Hugs and introductions to my daughter will be in order. And food. 

The next day will find us both attending the SQL Saturday event. I will force my daughter to attend my session, just so there are at least 3 of us in there. Me, her, and the room proctor. 
She will hang out and maybe go with me to sessions, or maybe run the PASS booth. I will spend some time behind the table myself, helping out the region that I used to mentor as an RM for PASS. This recently changed, and I lost this area as one of my responsibilities. I am sad to miss out on continued interactions with these folks. But will do so from the #sqlfamily perspective instead.

At my session we will be talking about documentation. And I would love to assign you homework, if you are going to be in this session. Bring to me some piece of a potential document, and lets work on it either in the session or after, and apply the techniques we'll discuss. Documenting what we do is so vital, and has become an important part of my job. I dont necessarily love to document, but I do love when it has been done properly. 

After the event, I am not sure yet if we will be attending the after party. I will probably let my dear daughter decide this. It will have been a long day of potential boredom for her. 

The next day, we will make the 9 hour journey back home. Trading off in the duties of driving, and helping her learn how to drive. It will be exciting ans scary. If you are of the persuasion that prays, please keep us in mind, since we almost die everytime she gets behind the wheel. Just kidding, she is not that terrible, but still, its a bit scary, I'll admit.

I took my son with me to San Diego SQL Saturday, and we made a trip out of it. At the tail end of PASS, my wife came to visit me, and we made a trip out of it as well. I took my oldest daughter to Austin this last weekend. And this next weekend will find me in Albuquerque, with my other child. We are making the most out of these events, combining work and family, #sqlfamily and SQL. 

I look for to these events, to sharing my knowledge and experiences, to learning from you, and seeing my #sqlfamily. 

Tuesday, January 27, 2015

SQL Saturday Austin 2015

This weekend is the Austin SQL Saturday event. I blogged about it here previously. You can find out more about the event here.

Some of my favorite #SQLFamily will be in attendance. As well as some new members, I hope. As you attend these events, make sure to reach out to the speakers for more information. But not just them, reach out to fellow attendees. Even Volunteers. Even organizers. Basically, reach out to any and all folks that can help you with your career and current problems.

Don't just seek out the like minded folks or those that can help with immediate needs. If you are an Administrator, spend some time talking to a BI person. And vice a versa. Just reach out and talk to them. Hand them a business card (you did remember to bring those didn't you?) and start building your network.

While I am in the area, please come and talk to me. I like talking to people. I have tons of stories to share. I may even be able to help you, or even better, recruit you to help me.

See in Texas.


Friday, November 21, 2014

SQL Saturday Austin

I was thrilled to get the email confirming that I was selected to speak at SQLSaturday #362 on January 31, 2015. 

The last time I was in Austin was 2011 for SQL Saturday 97. My wife and I flew out there and hung out with my Sister and her family while I attended the event. My wife had a great time hanging out in Texas, a first for her. And we both enjoyed the weekend with my sister. 

This time around, I am bringing my 18yr old daughter with me to hang out with my sister. Hopefully she won't corrupt her. She being my sister, and her being my daughter. 

Ever since my oldest came into the world, she has had a special affinity for her aunt, my sister. The two of them share a lot of traits and even resemble each other. Sadly, we have not lived close enough to entertain the togetherness that these two have craved for so many years. But I hope to help with that, this trip.

We will fly out Thursday before the event, and this will give my daughter all Thursday night, all day Friday and Saturday, along with most of the day Sunday to hang out with her doppelganger. I hope they have a blast, get into a ton of trouble and bond over everything they can in the short amount of time we can provide them. 

In the meantime, I will go to the speaker dinner and spend most of Saturday hanging out with my #SQLFamily at the event. The first time I was here, it was my fourth SQL Saturday event. This time it'll be like my 16th or something. I try to hit a few each year, but never more than 5, as it is difficult to justify a quantity more than that with my current situation. I would love the opportunity to go to more. But will work with what I have been given. 

The last event I attend outside my state, i took my son with me, and we made a trip out of it. At the tail end of PASS, my wife came to visit me, and we made a trip out of it as well. Austin will allow me the opportunity to bring my oldest daughter. And the very next weekend will find me in Albuquerque, having driven there with my other child. So, we are making the most out of these events, combining work and family, #sqlfamily and SQL. 

I look for to these events, to sharing my knowledge and experiences, to learning from you, and seeing my #sqlfamily. 

Wednesday, October 29, 2014

PASS Summit 2014 goals - crowd source solving a problem

I've not really done this before. They've usually been rattling around in my head though.
I tend to attend the conference and seek out folks that i know can add to my knowledge store or help resolve issues i am having currently.

I'm going to describe some of them here in this post, and hope that you, dear reader, can assist me with tracking them down.

I am not a BI guy, but I would like to become more of one.

One of the current projects we are working on is getting a cloud based version of our application to work well. It is the basic application we have now, only instead of getting data from an on premise sql server, its gonna reach into an azure blob storage and retrieve a json document. This rich document contains all the data we normally have, without the constraint of structure in an rdbms. But it will mimic this structure. So there will be a document describing a student, and within that, there will be names and the like. Another document within this json doc will have scores and history and other descriptive data detailing what this student has done. Think 20 tables with 10-15 fields per table, and many rows of data (or documents in this case). These json docs will grow and grow with use, as more data is added.

How do I get this data out of these json documents, and into a system where others (internal, external, application, services) can get to the data? Think for reporting. Each json doc is a single student. Maybe i need to summarize all the students from an entire region and gain insight on something they have done. I would assume that these individual rich json docs will need to be extracted to some other structure, and transformed and loaded to a storage system, be it an rdbms, or hadoop cluster, or some other magical solution. Maybe a data warehouse. Maybe a SQL Server. Maybe a MondoDB store.

What do you think it should be? How best to create this process of extracting this data and presenting it to others in a reportable fashion?

So if you are still reading this, and have an opinion on this above issue, come grab me and let's talk about it. I'd love to hear your take on this, and experience, and possible direction.

With this in mind, there are a slew of sessions that are BI related that I am going to try hard to attend this year. I have flagged some of them and hope to get some insight there, as well as with other groups like SQLCAT and the other forums and opportunities that the PASS Summit offers. I'll even sit down with vendors and spell this out in the hopes that they have a magic bullet or at least a suggestion of direction.


I suggest that you too bring issues, real issues, to the summit and attempt to get them solved. At the very least, by you talking through the issue with others, you will discover things along the way. Maybe you will solve it by yourself, or maybe you'll get put in touch with that solitary individual in the world that has already solved it and is willing to train you on the process. Or something in between. Either way, its better than sitting at your desk making it up yourself.

Get out and get your lurn on at the summit this next week and enjoy yourself.

Wednesday, September 24, 2014

PASS Elections 2014: my thoughts

I voted.

I think you should vote also. Go vote.

See ya at summit!


Monday, June 30, 2014

On Speaking

Back in 2004, I attended my first PASS Summit conference. I was not as integrated into the community back then, and only knew a few folks. I met some great folks on that adventure, some i still know today and some that have become quite celebrities in the community. I attended because a local user group leader encouraged me to attend, as he encouraged me to do a great many things. One of which was to speak at the local User Group. I was frightened, and exhilarated.

Having grown up in a religion that encourages its members to speak, I have had various opportunities throughout my life to stand in front of an audience and speak. I did so as a youth many times, also as a missionary, and as an adult. One in particular will always remain fresh in my mind. Usually as a youth, after speaking to the congregation, you get the 'good job' and 'atta boys' doled out by members of your congregation. They do it to make you feel better, since you probably looked terrified while in front of them. I received some of these while at church. But after church, members called me at home to congratulate me. This was when phones were not as easily accessible as today, so it seemed like an extra effort to call a child and buoy them up for a job well done. I was elated. And terrified. It meant that I had a knack for speaking, that I didnt appear to be as terrified as I felt, and that meant that I oughta continue practicing the talent, or it would become latent. So I did. I never really shied away from opportunities to speak.

Fast forward to the User Group leader who asks me to speak. I say yes. I give it a shot. I am thrilled at being selected to speak, and humbled at the task, as well as terrified. But I pull it off and get compliments. Not overflowing, but not under. A sweet spot. So I repeat at the next chance.

As my career marches on, more opportunities have presented themselves. I once spoke at a Microsoft event to a large room full of attendees, following the lesson notes they had outlined, teaching about Analysis Services. I had never used it before for real, but here I was teaching it to a crowd. I did OK. Not great, but not bad enough to recognize in myself the lack of this talent, or the subsiding of talent such that I should quit. I did OK.

I remember being asked to fly to Arizona to record some sessions for a training company. I was thrilled again. Humbled. Worried. Scared. Thrilled. Me, they picked me. I did it, and it was OK. I did good enough to be asked back on multiple occasions.

When it came time for our own community events here in my home state, I volunteered to not only speak, but to help out organize and do tasks and whatnot to help the event be accomplished. I have done this every chance I get, and have even volunteered at regional events. At this same time, I volunteer in various capacities in PASS. Each time I get to do a task, a part of me is thrilled that I was picked. I was allowed to give some of me to something bigger than me.

After a while, I notice that I may be expecting to be picked, and when this happens, I need to remind myself of the beginnings, and those feelings of humble come back. The scared and thrilled are ever present. But remembering to be humble at being picked is key. Then the level of thrill can remain high when you are picked.

I have never spoken at the PASS summit, though I have heard some members respond in surprise to this knowledge, as they coulda swore that I had. Nope. I have submitted a couple times, but have not been selected. I have been selected to SQL Saturdays and Code Camps. Once I have been asked to not speak at an event I had submitted to. Besides PASS Summit, I have been accepted to every even I have submitted. Does this make me proud? Yes. But does it mean I deserve it next time? No. I try to temper the pride with the humility of being asked to speak, because remember, that allows the thrilled feelings to be elated.


So, in a word, get over yourself. If you are not selected, you will get over it. There will be another opportunity. If you are selected to speak, awesome. Accept it with humility. Be proud you were selected. Prepare to do as good a job as you can do. Do a better job than you did last time you were given this singular honor. Be scared and thrilled. Realize that no matter how much 'celebrity' you think you are, you are just a person. Treat each opportunity like your first and react accordingly. Don't ever loose that excitement that the first infused into your being. And be scared. And be thrilled.


Monday, June 23, 2014

Can that report run faster?

We have a scenario where a report is causing us some grief. Let's call this report 'Revenue'. Let's assume that this report is shown in a 'Leadership' meeting where revenue is an important topic. Let's assume that the presenter in this meeting shows the 'Leadership' team this report by launching it in Report Manager, along with several other reports. All these reports will be used to discuss points of interest in said meeting.
So put yourself in the seat of one of the observers of said report. It is kicked off, and you watch the little spinny do its thing, while you wait for this report to materialize the data and render it visually for you to consume. You wait. And wait.

How long do you wait before you open up your device and kick off the same report to 'see if you can run it faster' than the presenter? I'm betting a few minutes, maybe 4-5. And if you do that, who else in the room is doing the same thing? Let's assume more than one individual does this, which can cause the other executions to slow, or at least causes your execution to slow.

This scenario played out a few weeks ago. Presenter kicked off report, which timed out after 8 minutes or so, but at the same time, 4 other individuals also kicked off the report. It was in the middle of these executions that I was contacted to look at said report, and see if I could make it faster. Later that day, as everyone else stopped executing it, the speed of execution dropped to a couple minutes, under 2 minutes. But during the peak of multiple executions, it was taking 8 minutes. (also, that morning, 4 times the normal quantity of reports were being generated. 4 times. as in 4000 reports, instead of 1000 reports)

Over the past few weeks, I have been digging at this report and looking for solutions to its speed issue. It seems that when normal circumstances prevail, this report can retrieve and render its data in under a minute. That seems acceptable. But under load, it takes time, and causes frustration in the team that needs to consume it.

This report is written in SSRS and hits our production reporting system that is a SQL Server 2008 R2 system that utilizes several FusionIO drives to speed things along. It is a nice machine and is much faster than our old reporting system. The data seems to be properly indexed. The queries seem to function as expected. So I jumped into caching and snapshotting to investigate alternatives to 'speeding up the report'.

Let's look at the past execution of this report to see what we are dealing with. Looking into the ExecutionLog view allows us a view into what has transpired with this particular report. I format the time to perform the tasks, and convert it to minutes, so i don't have to think too hard. I have to join to the Catalog to limit the results to the actual report that I want to see. And for sorting, let's order it by the time the report started in descending order to see the latest executions to the older ones.

  1. SELECT
  2.     c.[Name],
  3.     (TimeDataRetrieval + TimeProcessing + TimeRendering)/60000.00 AS [Time],
  4.     [RequestType],
  5.     [TimeStart]
  6.   from ReportServer.dbo.ExecutionLog el
  7.     JOIN ReportServer.dbo.Catalog c ON c.ItemID = el.ReportID  
  8.   WHERE c.[Name] = 'revenue'
  9.   ORDER BY [TimeStart] desc;
This query shows me a lot of good information. I can see how many times the report was executed, how long it took, and so on. When I did this for the time frame of issues, I see exactly what I expected. A ton of executions taking a long time, and many many within the same time frames. I can expand this query to add other fields, like UserName to see who executed the report, status to see success or otherwise, among other. Use the fields you want to tell the story of the data. My story showed me that a few individuals had executed the report repeatedly and upon failure, attempted again, and again. As I mentioned, later in the day, it sped up, once everyone stopped hitting it incessantly.

I went to SSRS Report Manager to drill down to the properties of this report. On the 'Snapshot Options' tab, I enabled 'Allow report history to be created manually' and 'Store all report snapshots in history' checkbox items. In the 'Report History' tab, I saw nothing, as expected. I planned on revisiting this tab to see the progress of adding caching and snapshotting. On the 'Processing Options' tab I chose 'Cache a temporary copy of the report. Expire copy of report after a number of minutes:' and chose 240 as the minutes. I also took this opportunity to select the 'Do not timeout report' option, hoping to allow the slow report to simply continue, instead of eventually dying, which prompts others to try the same thing. And fail.
The last option that I did was to setup a cache plan on the 'Cache Refresh Options' tab. I chose 2 plans, after careful review of the executions seen from the query above. This query helped me see the times that were executed, and when a cache would be most profitable to this report.

With these 2 cache plans created, and the rest of the options selected, I was happy that the report would run better next week. As Monday rolled around, I was interested to see the results. So I grabbed the above query and executed it mid day Monday, only to encounter report executions. Meaning I could only see individuals that had fired off this report, and the time it took them to render. (which was fast). I was unable to see cache executions. I would have thought that there would be an execution at the times indicated in my cache plan, and I could see how long those took. But this query failed me. To the twitterverse!!!

After receiving some help from my #SQLFamily via @markvsql, @jasonhorner, @RateControl, and @tameraclark, I was able to create this query.

  1. SELECT 
  2.     ItemPath,
  3.     (TimeDataRetrieval + TimeProcessing + TimeRendering)/60000 AS [Time],
  4.     [RequestType], 
  5.     [TimeStart]
  6.   from ReportServer.dbo.ExecutionLog3 el
  7.   WHERE [ItemPath] like '%revenue%'
  8.   ORDER BY [TimeStart] desc

                  This uses ExecutionLog3, which has different fields in its view. Happily, some of these fields are exactly what I need. I can add into the where clause options to show 'Interactive' (ran by a human) or 'Refresh Cache' (ran by the caching mechanism) and see how long each took.

                  Looking at these results showed that the cache took longer than the interactives, as expected. But when you compare the 'Interactive' times to pre cache times, the results are astounding. The caching takes a chunk of time, and then subsequent executions are tremendously smaller in execution time. Meaning, let the system create the cache on its cache plan schedule, and then the humans can simply run the report, and get the cached results quickly. No more multiple executions. We went down from 28 executions that never seemed to complete, to 4-5 that are a lot faster.

                  After a few Mondays, and reviews of the resultant data, I believe I have narrowed it down to the appropriate options. I kick off the cache about a half hour before the meeting on Monday morning, and then again at noon. This allows for caching of the report data twice on a Monday, allowing the 'Leadership' meeting to have quick report executions, and cached data in the morning, and the noon cache allows for other teams to utilizes a fresher cache in their afternoon meetings. But as soon as the cache reaches 240 minutes, it expires, which reverts users back to non cached data retrieval. The rest of the week the report should run quickly in the random times it needs to run.

                  Point of this story is that it is important to use data to make data faster. And not a single solution is better than the other, and the appropriate solution may be something you are unfamiliar with. I did not know or utilize caching in reports much prior to this. I would have normally added indexes and tweeked the queries used to perform the data retrieval, trying to squeeze all the juice out of them that I could. But a simpler solution was to understand the use of this report, compare to other non peak time of use, and adjust appropriately.

                  I believe that this solution is valuable, and suits my needs, and satisfies the users of this report. Thus I share it with you in the hopes you too can learn as I did.