Category: Blog

  • Game Night is Back at the Summit

    Last year Andy Warren and I worked out a deal with the PASS organization to sponsor a game night on Thursday evening since there were no official events. The event went well, with way more attendance than we expected. I was actually amazed at the number of people that brought games I’d never heard of.

    This year Andy and I are a bit busy with other events, and Halloween is causing some issues. Over the year we’ve had discussions with PASS and they agreed to host Game Night as an official event, providing the room and support. Kevin Hill (b | t) is going to lead the event, and everyone should thank him for stepping up.

    Game Night tickets are available now, for $12, which will cover admission and an alcoholic (or 2 non-alcoholic) drinks. I expect space will be limited, so sign up today if you want a quieter, fun time Thursday night competing with other attendees.

    I think I’ll have other commitments, but I’ll try to stop by and say hi. Don’t worry, I won’t take a ticket, and prevent one of you from enjoying the games.

    If this is your thing, and you’d like to help out in 2018, let me know. I’d like PASS to run this every night and get multiple volunteers to help keep things organized. I think plenty of you would love a space to compete for fun instead of searching for something else.

  • A Trip Across the Pond for the Community Hub

    The Redgate Community Hub is out, and people are starting to use it. It’s a an idea that we think will provide our customers, and potential customers, a better way to learn about our products, get information, and learn from Redgate.

    Annabel Bradford and I are going to be introducing you to the Hub in a formal launch this Wednesday, September 6, 2017, live from the Redgate offices. We have a livestream scheduled a couple times that day for you to tune in and watch. (6am and 8pm, so a long day).  We have a three hour schedule covering a few different pieces of knowledge that you might find handy.

    So, today, I’m off. I’ll be flying today to the UK, rehearsing tomorrow, and then ready to go early on Wednesday.

    If you have a chance, join us. Register today and tune in on Wednesday.

  • Livestreaming the Redgate Hub for the US

    The Livestream launch for the Redgate Community Hub is next Wednesday, Sept 6, 2017. To ensure that our customers and friends in the US and the rest of the this hemisphere can enjoy the festivities, we are broadcasting at 8pm GMT.

    Register today and watch us live.

    I’m flying to the UK Monday, and hopefully I’ll be semi-adjusted for the event. I have a 6am broadcast for AsiaPac and will likely go to the gym in the afternoon and take a short nap before coming back to the office for the 8pm broadcast.

    We’re showcasing some new features and functions in our software, while showing you how we are helping provide you more knowledge and learning in the Hub. This is a more organized set of information that should help you evaluate, understand, and use our software to build better software faster.

    I hope you’ll join us and Watch Tuesday.

  • Bulk Inserting Build Data–#SQLNewBlogger

    Another post for me that is simple and hopefully serves as an example for people trying to get blogging as #SQLNewBloggers.

    One of the common tasks that many DBAs need to do is insert data into a database. Often this comes from various sources, but a CSV (comma separate value) format is common. One could use the data import wizard, but that seems to be very flaky with CSVs, so I’ll show a quick way to use the BULK INSERT command.

    This command is a way to read files and load them into a table, similar to how bcp works. However, this is a T-SQL command, and can be included inside your database.

    The basic format is

    BULK INSERT <table>

    FROM <source>

    WITH <options>

    For most CSV imports, this means we need to pick a table, in my case, the BuildStaging table, and a source file. My statement looks like this:

    BULK INSERT dbo.BuildStaging
    FROM ‘e:\Documents\ssc\BuildList_SQLServer2014.csv’

    I also need some options. The basics for a CSV are:

    WITH
    (   FIELDTERMINATOR = ‘,’,
         ROWTERMINATOR = ‘\n’
    );

    There could be other items you want to enable, and there is quite a list. In my case, my file looks like this:

    2017-08-24 14_26_20-E__Documents_ssc_BuildList_SQLServer2014.csv - Sublime Text

    I have a header row, so let’s get rid of that by adding a FIRSTROW = 2 option.

    Now when I run my command, the data is inserted.

    2017-08-24 14_28_12-SQLQuery1.sql - (local)_SQL2016.SSBuilds_1_Dev (PLATO_Steve (62))_ - Microsoft S

    From here, I need to work with the data and clean it futher for insert into other tables.

    SQLNewBlogger

    This was a quick task I needed to accomplish. I knew most of the syntax, but had to double check the option names, and ended up taking about 2 minutes to import the data and 10-15 to write this post.

    And, I’ll likely remember how to do this import after spending time writing about it.