Tag: Redgate

  • 20 Years of Compare

    When we started SQLServerCentral, there were originally 7 of us. We all decided to “invest” $50 to get the site going. With this seed money, we paid for a VM that hosted both SQL Server and IIS. This was enough money to run the site for 6+ months, and we set about building an online educational community and trying to raise some revenue by selling advertising.

    Our first customer was Redgate Software, and the primary reason that we approached them was SQL Compare. At the time, one of my partners was a very happy customer of SQL Compare and thought that others should know about it. The rest is history, with SQLServerCentral, Redgate, and SQL Compare growing and changing across the years.

    That was 18 years ago, and Redgate turns 20 this year, having grown and changed quite a bit in that time. In conjunction with the celebration, we’re releasing SQL Compare v14, with a Linux command line version. That’s something I could never have conceived up in 2001 when we started SQLServerCentral. There are plenty of other features in the new version, and I’m amazed at how useful the SQL Compare technology has become two decades after its first release.

    SQL Compare is the industry standard technology for comparing databases. It powers our Database DevOps automation tools as well as many manual processes that tens of thousands of customers run every day. From synchronizing work between developers to detecting drift to building rollback scripts, SQL Compare ensures that many of us can find out the state of the various instances in our environments. It’s a simple technology, but one that hundreds of thousands of people depend on every day.

    When I first heard of this product, I never imagined that this would be as popular a tool as it has become. The idea of comparing two databases to find the differences was something novel at one point. Today, it’s become an indispensable part of many developers’ workday. Join me today and wish Redgate and SQL Compare a Happy Birthday, and tune into SQL in the City Streamed later on today, where we’ll talk a little about SQL Compare and its history.

    Steve Jones

    Listen to the podcast at Libsyn, Stitcher or iTunes.

  • SQL in the City Streamed is Today

    Today is SQL in the City Streamed!!!

    2019-08-23 14_49_07-Redgate Friend, Events, And Community Activities

    Only three of us, Sad smile, as Kendra has other commitments. Still, it’s exciting for Kathi, Grant, and myself to be presenting the Birthday Edition as Redgate turns 20 this year.

    Join us later today for the broadcast, which will have some fun tech, new tips, and some nostalgia about the company and the last 20 years.

    Register today

  • SQL in the City Streamed Next Week

    I’m off to the UK this weekend, for a few commitments next week. One of those is SQL in the City Streamed, which is taking place on Wednesday September 4, 2019.

    This is a special broadcast, with some technical content, but some fun as well. This is the 20th birthday party for Redgate Software, and we’re looking forward to celebrating online.

    We’ll be talking some DevOps, some products, some tips and tricks, and more, so register today and join me on Wednesday.

  • Local Database CI Builds with Jenkins in a Container

    In two previous posts (Jenkins in a container, Adding SCA to Jenkins), I’ve showed how to configure Jenkins in a container as well as how to add the SQL Change Automation plugin. This post looks at an initial database build in Jenkins. I will build from my local repo, which gives me a bit of a pre-push check on my code.

    Note: I already have a SQL Source Control (SOC) project committed to Github that contains the database I want to build. If you haven’t done that, see this post on a basic SOC->GitHub link.

    Creating a Jenkins Job

    Jenkins calls these build processes jobs, and you see that if you set up Jenkins in a container. By default, there are no jobs, and Jenkins lets you know this.

    2019-07-27 17_23_07-Dashboard [Jenkins]

    When I click this, I get a choice of different projects. You can read about these in the Jenkins documentation, but I am just going to use a Freestyle Project. Give it a name and click the type and then OK.

    2019-07-27 17_24_04-New Item [Jenkins]

    At this point, we need to configure the job. I do like to provide a description, and normally I would set this as a Github project, but in this case, this is really just a local build..

    2019-07-27 17_30_56-SimpleTalkDB Demo Build Config [Jenkins]

    I do want to restrict which agent will run this, since I have a master agent in the Jenkins container. That one can’t see my SQL Server (and doesn’t have tools), so I’ll restrict this to the local agent on my machine.

    2019-07-27 17_31_04-SimpleTalkDB Demo Build Config [Jenkins]

    There are tabs at the top for quick navigation, but this config is really just one long page. You can scroll down as needed. Below the agents, I find the VCS section. I’ll choose git, and then enter the path the agent will need.

    2019-07-27 17_35_56-SimpleTalkDB Demo Build Config [Jenkins]

    When I scroll down to the Build area, I need to add a step. CI is just a step engine to assemble your software, and in this case, I see my Redgate SQL Change Automation plugin.

    2019-07-27 17_36_15-SimpleTalkDB Demo Build Config [Jenkins]

    When I click this, it is added as the first step. There is an implicit “git clone” checkout of code. I need to configure this step with just a few items. First, build in the local folder, rather than some specific area. We’ve already specified an agent location when we configured the Jenkins agent.

    Also, you need a package ID, which will be the place where the current state of all objects is stored. Unlike application code, the artifact is really the current version of the objects in source control, not any .exe or .dll.

    2019-07-27 17_36_38-SimpleTalkDB Demo Build Config [Jenkins]

    The only way to build a database project in SQL Server is with an actual SQL Server. In this case, I don’t have any code that would error on LocalDB, so I’ll just use that. I coudl specify my local SQL Server development database if I had the need.

    This is a test build, so I also don’t need any SQL Compare options or other switches.

    2019-07-27 17_36_47-SimpleTalkDB Demo Build Config [Jenkins]That’s it. I click Save, and I get to the main project page. Now, the test. I’ll click Build Now.

    2019-07-27 19_05_12-SimpleTalkDB Demo Build [Jenkins]

    This kicks off a build on my agent. If your agent isn’t connected to the container, you’ll need to do that now. At the bottom left of the page, I see my build working.

    2019-07-27 19_05_28-SimpleTalkDB Demo Build [Jenkins]

    The build number is a link, so click that to go to the details of the build. When you get there, you can see the build working by clicking the Console output. As you see, the output is on the right side of the screen.  As you can see, my local path worked fine, without any error.

    I also got to this part of the process on a plane, with no Internet. While there were some warnings as the plugin and other parts of the process tried to contact the PowerShell Gallery, things worked.

    2019-07-27 19_06_03-SimpleTalkDB Demo Build #1 Console [Jenkins]

    At the end, I see success, which means that the code I wrote in my database, and that was committed to my VCS, is valid. It’s a low bar, but you might be surprised how often someone breaks code by making a strange change to their project.

    2019-07-27 19_06_17-SimpleTalkDB Demo Build #1 Console [Jenkins]

    This is a basic build process, to which I can add other steps. Testing and releasing are further steps, and Jenkins can support you in these.

    Now I can move forward with additional development, knowing I have my own build system in my own environment, using Jenkins in a container.

    This Series