Tag: syndicated

  • Versions of Stored Procedures

    I never knew this, but stored procedures have versions.

    I was browsing the CREATE PROCEDURE doc page, and stumbled upon this item. In the beginning part of a stored procedure definition, after the name, there is a section that starts with

    ; number

    Hmmm, I read the entry and it says the number is an integer that is used to group procedures of the same name. There is a note this is a deprecated feature that may be dropped, should not be used for new work, and old work ought to be modified, but it was interesting, so I tried it.

    First, create a proc:

    CREATE PROCEDURE dbo.GetOne
    AS
    SELECT 1
    GO

    Once this is done, we can execute it and it works. Now, let’s modify this. I’ll use this code:

    CREATE PROCEDURE GetOne;2
    AS
    SELECT 'One'
    GO

    You can see these will have different results. If I execute them, I do so with the name, including the optional integer.

     2019-01-24 17_58_15-SQLQuery8.sql - Plato_SQL2017.Tsql (PLATO_Steve (60))_ - Microsoft SQL Server Ma

    In SSMS, there is only one object listed.

    2019-01-24 17_59_44-SQLQuery8.sql - Plato_SQL2017.Tsql (PLATO_Steve (60))_ - Microsoft SQL Server Ma

    If I drop the procedure, both are gone.

    2019-01-24 18_00_18-SQLQuery8.sql - Plato_SQL2017.Tsql (PLATO_Steve (60))_ - Microsoft SQL Server Ma

    I’m not completely sure where I’d use this feature, and I can see not investing in it, but I found this fascinating. All these years of writing stored procedures and I learned something new this week.

  • Learning for Feb

    By the time you read this, I’ll have decided, but I just finished the first book and need to pick another. This post is more for me than anyone else, helping me to sit down and think for a minute.

    I don’t have any pressing need to work on any of the other books for work or career. It’s more that I’m interested in various topics, so I need to pick a direction. I’m also cognizant of the future and which books I want to go through.

    Recap

    Here are the books I purchased and plan to read this year:

    The question is, what’s next?

    I’m really not sure, but I do know that I’ll be relatively less busy in February, really busy in March, and April will likely be like January. As a result, I want an easier book in March.

    The challenge for me is understanding what’s easy and hard. I think the Azure/Xamarin one will be hard as I’ll need to practice skills that aren’t useful or tangential to work. The Power BI stuff is likely the opposite. The Python stuff is probably in the middle.

    The Plan

    My thoughts right now are that I need to research for a couple days. It’s Jan 31 as I write this, and I’m on vacation for a couple days. That’s both good and bad. Bad because I want to get away, good because I can find some spare time to just read and no do.

    With that in mind, I’m going to read a chapter of 3-4 books and then decide in which direction to go. By the time this publishes Monday, I should have made a choice, but I’ll be busy working on other stuff, so I won’t get to update this post.

    The four to get through a chapter on are:

    Wish me luck.

  • Financial Advice for Techies

    I’m not writing a post here on how to manage your money, but I will point you to Troy Hunt’s post. He wrote a great one called 10 Personal Finance Lessons for Technology Professionals.

    Read it.

    I was lucky enough to be born with lots of advantages, not the least of which was some intelligence. However, as many people can attest, intelligence doesn’t mean you can manage money. There are lots of doctors out there that have gone bankrupt and lost their earnings.

    My parents taught me a bit about money and I’ve tried to do that with my kids. I’ve tried to be open and honest and help my kids grow up and at least understand the implications of their decisions.

    Troy has good advice, and I think he’s written a great post. I’ve followed a similar path, investing in real estate, though perhaps not with the focus of Troy. It’s put my wife and I in a good place, and as our kids leave the house, we are prepared to live a comfortable and enjoyable life.

    Read the post. Ask me, or Troy, questions if you are looking for help.

  • Webinar next week on Database DevOps

    Next week is my webinar on why the database is the heart of DevOps. You can still register today to discuss and debate why we need to ensure that database development is integrated into any DevOps work we do for other software.

    Webinar social_Heart of DevOps

    Register: https://attendee.gotowebinar.com/register/3005019550714731265?source=KB