Category: Blog

  • Expert SQL Server 2008 Encryption

    51s2ofIFTrL._SL500_AA240_ Encryption is a tough subject, but it’s one that’s fascinated me for years. I downloaded PGP when it came out nearly two decades ago, and learned about the intricacies of symmetric and asymmetric keys. I thought it was fun, even when I couldn’t convince many people to consider using it.

    Last year at PASS I ran into Michael Coles, who I’ve known for a few years and had just finished tech reviewing a book for. He was planning on a new book and asked me if I’d be interested in doing another one, this one on encryption. I jumped at the chance, and sometime this past spring started getting chapters.

    I knew a lot, but had to learn a lot as well. I spent a lot of time Googling various terms and double checking historical references as well as algorithms and terms. I think I did a good job, and Michael and his co-author, Rodney Landrum, did a fantastic job.

    I found a package on my desk this morning, and opened it to find my copy of the book. It’s now out, and available in bookstores, including Amazon.

    So check it out, and learn a bit about this very important topic for DBAs. Not a lot of companies use encryption, but the ease of administration has grown with SQL Server 2008 and more companies are using it every day. I expect to see it start coming up in interviews soon.

  • The last good date for your database

    cc165445.cover(en-us)[1] I was reading the most recent issue of TechNet from Microsoft one morning and flipped through the column on SQL Server. This is one of the few paper magazines I get, and for some reason I see things in there that interest me.

    It’s not the topics, but often the delivery and format. I flip through it at my desk, or while cooking, and I’ll see things that I’ve missed on the Internet, or get reminded of things I’ve forgotten. The October issue contained one of those.

    Paul Randal writes the SQL Q&A column and he usually has something in there that’s worth knowing. This month he answered a question about some strange messages in the SQL Server error log. Here’s the message from my test instance:

    Dbcc_startup

    In case it’s hard to read, the message is:

    CHECKDB for database ‘db1’ finished without errors on 2009-09-21 08:33:03.713 (local time). This is an informational message only; no user action is required.

    This was on startup of the instance, right after the “starting up database” messages that you see. I have this same message for a couple other databases (db2 and master). It didn’t appear for model, msdb, tempdb, and a couple other databases I have on this instance.

    Why not? Or rather, why did it appear for these databases? Is DBCC CHECKDB running on startup?

    The answer is no, and Paul has a good explanation in his column. It’s not online yet, but I’ve read this before and Paul gave me a great reminder. The message is the “last known good” time for the database. It shows the last time that DBCC completed successfully, and gives you a reference point that you can use an a DR or corruption scenario to try and narrow down when things went bad.

    It’s also a good reminder that you haven’t run dbcc in some time on a DB. When I first read the column, I checked my error log and didn’t see the message. That was a stark reminder that I didn’t have maintenance set up on this instance. It’s a test instance, only been installed for about 20 days, but still. I ran dbcc on those databases that showed messages (db1, db2, master) only as a test. I’ve now set up maintenance on the instance to grab a backup every night and run weekly maintenance.

    If I had production instances, I’d love to be able to easily capture this data from a server, or even compare the messages to the databases on the server and then report back to me if CHECKDB hadn’t been run, or if it had been longer than xxx days.

    Sankar Reddy, a fellow MVP, wrote a script that helps here, and it’s worth checking out his blog on the last clean DBCC value.

  • Building a Better Blog – Next week during the 24 hours of PASS

    I’ve got a new presentation on blogging slated for next week during the 24 hours of PASS. The event is a series of presentations, 24 in all, on Sept 2-3, running continuously from people all around the world.

    I’m scheduled for the 10am MST, which is 5pm GMT, which works well for me. Kids will be at school and it should be a quiet time around here.

    The presentation takes some ideas and thoughts I’ve had from working on the Modern Resume for people as well as looking over those blogs from technical people that seem to be highly ranked, as well as those that make a good impression on me.

    So sign up today! There’s all kinds of SQL content to choose from.

  • Analysis Services Memory Limits

    I attended a presentation recently from Steven Wright of SQL Sentry on Analysis Services (SSAS) memory management and it was really interesting. I haven’t done much work at all with SSAS, mostly goofing around with basic cube setups, so I haven’t really had to administer a production instance. And I haven’t run into memory issues, which look like they could be a regular part of your day.

    SSAS manages memory much differently from SQL Server, and there’s a lot to learn, but there was one amazing fact to me about the settings. There are two limit settings, the Low Memory Liimit and the Total Memory Limit, both of which determine how aggressively SSAS starts to try and clear out objects from memory to free it up. These are settings you make on the server, either in the properties or an .ini file (what is this SSAS 3.1?) and the defaults are 75 for the low limit and 80 for the total.

    These are documented in Books Online, and it says this is the percentage of total physical memory.What is doesn’t say, however, is this: If you enter a number greater than 100, the value is interpreted as the “bytes” of memory to be used. That’s bytes with a little “b”, not kb, not MB, but b. It’s documented here by Greg Gonzalez.

    You’d think that would be something they want to call out in the documentation. A few people have been bitten by this thinking it was kb or MB, since most counters are expressed in one of those scales.