Category: Blog

  • You Don’t Need Log Backups

    You don’t need log backups. You don’t. They aren’t required for SQL Server to function.

    The place when you don’t need log backups is when you have a database operating in the Simple recovery model. In this model, your transaction log will clear out on a regular basis, every few minutes, and the space will be reused.

    I saw a post recently where someone said they had a database that only changed once a day. Data was loaded once a day and otherwise the database was read only. In that case, you:

    • Need log backups if you are in Full or Bulk-Logged recovery models
    • Do not need log backups if you are in simple mode.

    It doesn’t matter how many changes you have, if you don’t have log backups in full recovery, you’ll eventually have an out of control log growth situation.

  • Security Panics

    I went to host the Red Gate SQL Source Control webinar recently and had a snag. I downloaded the GoToWebinar software (why must I download this every time?) and when I ran it, I got an error.

    First it was a FireFox, “This security certificate is invalid” and I had to click the “I understand the risks” button to move forward. But then I got a dialog that said

    “This security certificate has been revoked”

    Now, a smart guy would click “cancel” because perhaps there’s some phishing or malicious behavior going on. Being in a hurry, I clicked “OK, move forward anyway, I don’t need no stinking certificates.” Maybe not smart, but it failed, so no big deal.

    Fortunately I had been trying to connect 30 minutes early, so I had time. I called Citrix, and they attempted a remote desktop session, which failed for the same reasons. We chatted for a few minutes and the tech support guy said that the certificate didn’t expire for years, and could I try another machine.

    I went out and was about to do so when I noticed that my clock said “8/19/2039”. It hadn’t registered before, but that time it did. 2039 is likely past the end of the Citrix security certificate’s lifetime.

    I reset my clock, and things went well.

    I’m not sure what happened. I used my machine early in the morning, took kids to school, and then came back to a machine that wouldn’t come out of suspend. I rebooted, and when it responded (some Java error on the screen, figures), things seemed to work. Except that the webinar didn’t.

    I don’t know what causes a clock to slide, but this actually happened last year one time as well. This is a Win 7, x64 machine, and it surprised me that I got this much drift, if 29 years is “drift”, but it did.

    On the bright side, the Win 7 year-changing dialog is kind of cool. You might play with it.

  • SQL Source Control Webinar

    We had our first public SQL Source Control webinar, on the new product from Red Gate Software, my employer. I MC’d a private one a month or so ago, and sat in on one at SQL Saturday #28, but this was the first public one.

    I think it went well, a minor demo crash, but overall it worked well. However with 150+ attendees the questions came fast and furious. Some dups, but mostly good questions and we ran long trying to answer.

    I couldn’t comment on a lot of them, but we have the transcript, I have sent it to Red Gate, and have them working on answers. Can’t guarantee it will be done tomorrow, but by next week I’ll have answer out.

    If you believe in Source Control, this is a good product. It eases the burden of tracking changes, but doesn’t eliminate them, and there are holes.

    This is a process, however, and I’m not sure it’s fundamentally different, even with the product, from what I wrote about years ago: Version Control Part 1 – Dealing with Code.

  • SQL Saturday Advice – Feedback and Raffles

    At SQL Saturday #28, I was surprised to be given the speaker evaluations after my first session. One of the volunteers approached me and gave them to me, saying that I could have them and use them.

    That surprises me since I think one of the things that people rarely do is give good feedback to speakers. Too often we design these nice forms and someone just gives all 4s or 5s. They just don’t think about it much.

    I favor a simple feedback form, but I’d also include a raffle prize or two that can incent people to turn them in. I know it’s a pain to sort them out by speaker, but I think a simple session name/title, a ranking (1-3 or 1-5) and a comment would be nice.

    Then draw some at the end of the day and give prizes. I suspect we’ll get more, though not necessarily better, feedback.