Author: way0utwest

  • Keeping Unique Aliases

    I am a big standards guy. Not any particular standards, but ensuring you have some in your organization and that people stick to them. Pascal case, Camel case, it doesn’t matter to me. I’ll build a habit with any of them; I just want some consistency from others working in a team. Or even across teams since people move to different projects over time.

    I ran across another post on naming conventions, this one looking at SQL standards, and it’s a practical look at a few things. I like some of the ideas, like the singular or plural choice (” Who cares. Just pick one and use it consistently. “), but I especially like the idea of the third item: standard aliasing.

    In the past, I’ve often found that I used the same aliases over and over. When I was the only DBA, this ensured consistency. “P” was always for dbo.Product, and pc was always used for ProductCategory. However, when we added other team members, I quickly realized we didn’t use the same conventions. I’d check out code and see prod.productid instead of p.productid. The new people didn’t like my single character aliases and I didn’t like typing most of the word for theirs.

    Ultimately we had to decide what made sense for both of us and compromise. We choose specific items, not all at once, but as needed. We’d have a 30s meeting or exchange a quick chat message and then update a document with the standards. When other new developers were hired, they already had a reference list that they quickly learned.

    I think the idea of standard aliases makes sense. It’s built into SQL Prompt and some other tools, precisely because many teams want to ensure their developers adhere to a standard, and more importantly, can quickly understand any code they pick up. That’s the real reason for standards: they convey information, silently and quickly.

    Steve Jones

    Listen to the podcast at Libsyn, Stitcher or iTunes.

  • Daily Coping 28 Apr 2020

    I’ve started to add a daily coping tip to the SQLServerCentral newsletter, which is helping me deal with the issues in the world. I’m adding my responses for each day here.

    Today’s tip is to remember that all feelings and situations pass in time.

    This was hard for me at first. I kept thinking this pandemic was like a blizzard. A week or two and things will be back to normal. It took me weeks to find some acceptance. Slowly, I’ve started to accept the changes in the world, bend like a reed with difficulties, and move around them.

    With that, I also know that while the world may change permanently, I think that lots of the stress, upset and uncertain feelings, and the struggles with the current situation will pass. I’ll get on with life, either in a similar way to the past, or in a new way, and strive forward.

  • Register for Data Platform Discovery on Apr 29

    The agenda is out for the US Data Platform Discovery Day. It’s online, and takes place this Wednesday, April 29, 2020. You can register and check out all the sessions, covering a wide variety of topics.

    I’m not speaking, but there are some great speakers in the US edition. Register today if you want a little learning this week.

  • T-SQL Tuesday Live–28 Apr 2020

    Once again, I’ll be live tomorrow, ready to just chat, shoot the breeze, answer tech questions, anything. No agenda, but I’m on for an hour.

    If you’re bored, struggling, or need a break, feel free to join us tomorrow. I’m going earlier, at 12Mountain time, for an hour.

    Details
    • Date: 21 Apr 2020
    • Time: 12:00MDT/14:00EDT/18:00UTC/190:00BST (1 hour)
    • Meeting: (add a 9 to the end) https://redgate.zoom.us/j/9337866921
    • Password: Cast this as a varchar(10) –  0x303030323835 (you should get a number starting with 0 and ending with 5.
    • Issues: DM me on Twitter @way0utwest