Posts

Showing posts from 2012

How to annotate or add notes to email in Outlook with an editable user-defined field

Wouldn't it be nice to have a little "notes" field in your Outlook Inbox? For example I frequently need to recall what the current status is or what the next step is on a task that is being referenced from some email. Often these are short-term notes, not the kind of thing that deserve creating a full separate "task" for. After scratching around here and there with custom forms, follow up flags and the like, I finally found this post about the "Allow In-Cell Editing" setting. This makes your whole inbox editable, which I don't really want, but it also makes any new fields you've added through the Field Chooser editable, which is perfect. http://answers.microsoft.com/en-us/office/forum/office_2007-outlook/adding-editable-user-defined-field-to-inbox/c8857b47-7b04-4f72-8ac6-dc80dd853a3e What I did: 1) Goto View > Current View > Customize Current View > Other Settings and enable the "Allow In-Cell Editing" check box. 2) Goto View

How to create a WordPress Sitemap

Organize your posts into a hierarchy of categories, with "All" being the root. Go install this plugin: Post Category Index Generator Create a new Page called "Site Map" or something similar. Add the following code on the HTML tab of your page: [ pcig category=ALL show=post_title,category_name links=post_title hide_empty=true orderby=title ]

Daily Inspiration for August 23rd, 2012

I think I shall now write some daily inspiration for tomorrow morning. Why not? Just back from vacation, feeling refreshed but in need of focus as I transition back into work. Tomorrow I will: Plan my day before reading my email Focus on Quality Spend some time in Quadrant 2 Review the vision of each of the many projects I'm on, and the high level app-dev requirements / tasks Spend some diligently focused time in "bang-bang" responsiveness mode, catching up on email Pause somewhere in there to ask the Lord for help And that should make for a satisfying day. :^)

Presentation: T-Log First: How SQL Server storage (should) affect your Disk Architecture & T-SQL Design

Attached are the PowerPoint and scripts from my "T-Log First: How SQL Server storage (should) affect your Disk Architecture & T-SQL Design" presentation. This was first shown at the February 21st, 2012 Tulsa SQL meeting. This walks through the very basics of Write-Ahead Logging in SQL Server, how the Transaction Log file is written to differently from the Data file, and how all that naturally leads to the hardware best practices that you always hear and wonder about as a SQL newbie. There's also a demo script that further proves how you can manipulate transaction log writes for improved performance. After I gave my presentation I discovered that Tim Chapman described this process much more succinctly a few years ago in the "explicit transactions" section of his optimization article: http://www.techrepublic.com/blog/datacenter/optimize-sql-server-queries-with-these-advanced-tuning-techniques/179 Consider this further validation :^) Thanks to all the folks

SQL 2005 SP4 and MSreplication_subscriptions

If you're trying to apply SQL 2005 SP4 (or any SQL service pack), and it's failing, and you're seeing error "MSP Error:  29537  SQL Server Setup has encountered the following problem: [Microsoft][SQL Native Client][SQL Server]Invalid object name 'MSreplication_subscriptions'", then you've hit this bug which Microsoft is currently saying they "Won't Fix": https://connect.microsoft.com/SQLServer/feedback/details/521231/failure-during-server-script-upgrade-process-on-database-in-sp-vupgrade-replication-procedure#tabs Probably you've done one of 2 things: You're using synonyms that match the system replication table names You've got some vestige replication tables laying around in one of your old databases My case was the latter. The fix was to find the vestige tables and get rid of them. I found them using the following script: [sourcecode language="sql"] /* This will detect db's containing vestiges of Replication

SQL Scales: 2 - T-SQL Programming

Little disciplines to remember when programming T-SQL. Structured programming practices: Find what varies and encapsulate it Keep your procedures small; let each do one thing and do it well Favor Clarity over Cleverness Clever solutions are being scrapped in IT shops all over the world every day and replaced with less "clever" solutions that are understandable and maintainable. Usually Consistent is better than Better. (Sad but true.) Simply formatted header comments are maintained; complex formats are not. Example of a simple header: /* Note on what the proc does. usage: exec usp_MyProc created YYYYMMDD by username updated YYYYMMDD by username - chg# xxxx: description */ In Reporting queries, prefer #Temp Tables over @Table Variables. Table variables are easier to pass around, but the optimizer always assumes there is only one row. For larger temp storage (>100 rows), use #temp tables which produce real statistics. Set vs. Select - prefer Set Assume @x = &q

SQL Scales: 1 - What are SQL Scales

Some time ago I read a blog that I've lost track of, but it suggested that in the same way that practicing piano scales builds muscle memory and proficiency that then allows you to more easily attain higher level skills, so in other disciplines we should practice our scales in order that our daily work could achieve a higher level with less effort. It's similar to how having memorized your times tables makes algebra more accessible. So for myself I want to put together some SQL Scales, little mantras that help me stay on track as I'm writing SQL or administrating SQL Server.

SOPA and the NDAA

During the Internet blackout today against SOPA, I was complaining on VoiceOfTheDBA that I wish we could get a blackout on the recent "indefinite detention of US citizens" fiasco. I said: Unfortunately (as you know) we have bigger issues. I’d love to see a blackout for basic liberty:   http://www.washingtonpost.com/opinions/is-the-united-states-still-the-land-of-the-free/2012/01/04/gIQAvcD1wP_story.html   http://www.huffingtonpost.com/2011/11/29/senate-votes-to-let-military-detain-americans-indefinitely_n_1119473.html   http://abcnews.go.com/blogs/politics/2011/12/with-reservations-obama-signs-act-to-allow-detention-of-citizens/ But now I've read the actual final section of the law under question, and couldn't figure out what the big deal is: http://thomas.loc.gov/cgi-bin/cpquery/?&dbname=cp112&sid=cp112MdQpb&refer=&r_n=hr329p1.112&item=&&&sel=TOC_1073854& Upon further research, I see that mostly the NDAA refused to clarify our sta