RetiredDBA.com

All things for Microsoft SQL Server

DBAs will git it after reading this!

May 16, 2019



This is a webinar review: “An Introduction to GitHub for DBAs” by Brent Ozar on Feb 8, 2019. Ozar states the “.. video is about the bare minimum to get started with GitHub”. In the webinar, Ozar walks through a code change to sp_blitzlock which is a free DBA tool by Ozar.

Some points made by Ozar in the webinar:

  • Github is designed for code, not databases
  • Terms
    • Repository: source code owned by an account
    • Branch: a version of the repository
    • Commit: backing up local code to your branch
    • Pull request: ask the dev maintainer to pull your code
    • Issue: bug or feature request
  • Working in your own code
    • GitHub desktop should be installed
    • Create a branch to do your edits
    • Make edits as needed and save locally
    • Commit changes to GitHub
    • Publish to branch
    • In order to merge for everyone, open a pull request
    • The maintainer of the project must verify and do a Merge change from pull request
    • GitHub might be alot of work but it pays off for team projects and finding who changed what
  • Working in someone else’s code like dbatools.io
    • Read home page for all info before you contribute
    • Make a fork (copy) of their repository to your GitHub account
    • Work locally and commit to your branch
    • Send a pull request to the maintainer of the project
  • Lessons learned the hard way
    • Source code for binary files sucks
    • Conflict resolution is terrible
    • Source control for databases like schema, data, machine config not simple
    • Integration between GitHub and SQL Server tools not easy
  • Text editors with GitHub integration may be better to use than SSMS
  • Learn Markdown if your gonna use GitHub (markdownGuide.org and markdowntutorial.org)
  • GitHub will help your career
    • GitHub code is an easily verified resume and portfolio of your work
  • Many other resource links from the webinar
  • Webinar slide deck on SlideShare

GitHub will not go away my DBA friends. Microsoft bought GitHub for $7.5 billion dollars in 2018. Start using and learning this software development platform tool. GitHub solves the problem of lack of documentation in stored procs, whodunit changes to any database code and large project collaboration. Right?

“An Introduction to GitHub for DBAs” by Brent Ozar is a great starter webinar. I give it a thumbs up!


Advertisement

Ally - Get a bonus when you open an eligible Ally Bank account.

Amazon Prime Visa - Get a Amazon Gift Card instantly upon approval of Amazon Prime Visa

Chase Checking - Open your Chase checking account and get a bonus!

Chase Freedom Flex - Earn unlimited cash back with the Chase Freedom Flex credit card.

Chase Freedom Unlimited - Earn cash back with the Chase Freedom Unlimited credit card.

Chase Saphire - Open your Chase Saphire Preferred or Reserve and get bonus points and more!

Discover - Get a bonus when you open an eligible Discover account.

Marriott Bonvoy Credit card - Open your Marriott Bonvoy Credit card and get a new Cardmember bonus!

Rakuten - Sign up for Rakuten and earn cash back on your purchases at 3500+ stores. 20M+ members in the U.S. have earned over $3.2B in Cash Back at their favorite stores.

Schwab - Open a Schwab account and get up to $1,000 depending on your net deposit.

Xfinity - Open an Xfnity mobile or internet account and get a bonus