Author: way0utwest

  • Catch up on SQL in the City 2018–GDPR Edition

    The videos for our SQL in the City 2018 broadcast from last month are up on the Redgate channel in a playlist. If you missed anything or would like to rewatch something, you can do it.

    If you’ve got questions or comments, we’d love to hear from you.

  • Abolish Disjointed Time

    One of the more complex types of data to deal with is date data. We have dates, times, strange rules for when mathematical operations occur, and when they don’t. We have a period, which can be some combination of these, and that can include math rules that must be programmed consistently. Add to the issue of time zones where 3:00 isn’t 3:00 everywhere in the world, especially those strange half and quarter time offset zones, and it’s much more complex than seems necessary. There are no shortage of questions and articles at SQLServerCentral because this is a complex topic.

    I read recently that the European Parliment is considering getting rid of DST. Quite a few of the members think the practice isn’t useful and in a 384 to 153 vote, they decided to review whether or not they think this is a practice that should continue. There have been studies that show the change doesn’t help with power, and it’s certainly disruptive to everyone. I know it seems a percentage of people are always confused and either arrive early or late every year (or twice a year) when the clocks change. I know I’ve been late to work in the past on a Sunday when the clocks changed.

    I’m of the opinion that we should do away with DST. I get a double whammy every year the I work for a company in the UK and the US changes clocks at a different time. That means I get meetings that move for a few weeks, and just as I adjust to the new time, they move back. It’s a pain, and I’d just as soon do without it. There are also the adjustments to body clocks that likely slow our work and study habits, or at least mine, for a period of time. I’d just prefer that we stick to a single time schedule the entire year.

    From a data perspective, the adjustments can cause issues with reporting and tracking data. Having an hour essentially repeat itself can distort any aggregation over that time period. Likewise losing an hour, especially if we use left joins to ensure each time period has a value, can look funny. I know the data issues aren’t likely a big deal, after all, how much data does your company gather in the middle of Saturday night a couple times a year? Most reports probably don’t bother to account for the discrepancies, and there don’t seem to have been any issues I’ve seen from organizations. It’s annoying to me as a data person, but it’s probably not a significant issue.

    Ultimately I think DST is just a little silly in this modern world, where specific times, especially daylight time, seems to be less of an issue. I work when I need to, take time off when I can, and it seems more and more companies do the same thing. Whether I go to work in the light or dark, the days are shorter in the winter.

    Steve Jones

  • Learning Goals 2018–February Review

    Better than month 1. Only XE this month.

    My first week I got a reminder to spend some time on XE, so I watched a couple modules of Jonathan Kehayias’s Pluralsight course.  A lot of review, but I thought I’d start with the basics and Jon knows more about this than anyone I know.

    I spent a few days going through this. Some at my desk, but more while riding a stationary bike. This gave me the chance to actually sit and watch without being distracted by other items on the computer.

    I got through about a third of the course, but I still have more to watch. I also took about an hour in two sessions to practice a few of the items, explore how XE is setup and build some questions for SQLServerCentral. This allowed me to feel good about the process.

    Disruptions

    The first couple weeks of February were good here. Unfortunately things didn’t continue. I had travel the last week of Feb and a number of meetings that required prep and I got off track in working through XE.

    Even today, as Mar starts, I have missed an hour or learning time.

    On the plus side, I did take 3 days of vacation in Feb, which took away work and learning time, but allowed me to recharge a bit. I’ll continue that a bit in March, so it’s possible that I might not quite get what I want here, especially as I have a number of weekend commitments this month.

    This is a good lesson, allowing me to realize that I can’t count on adding to my busy schedule without having to make hard choices. Learning has been one of those lower priority items, though I am trying to continue growing in this area.

  • Packt $10 Sale

    One sale today, my Getting Started with SQL Server 2016 Administration video. You can get this for $10 today, and it’s an introduction to an overview of what’s in SQL Server 2016, most of which applies to 2017 as well.

    Covers basics of administration from install and configuration to security and XE. If you have a junior that’s not worked much with SQL Server, this might help.

    Outline:

    1. Installation – GUI and CLI
    2. Login, Users, and Roles
    3. Databases, configuration and creating objects including CLR code.
    4. OLTP Tables
    5. Indexing Basics
    6. Backup and Recovery
    7. Agent, Jobs, and Operators
    8. HA technologies in SQL Server
    9. TDE, Always Encrypted, Column encryption, Row-Level Security, Dynamic Data Masking
    10. Extended Events
    11. Execution Plans and Query Store