Joe Webb Blog

Musing and observations about SQL Server, other technogies, and sometimes just life in general

PASSing the torch

As many of you may know, for the past six years I've volunteered my time and energy to an organization called PASS - the Professional Association for SQL Server. It's a wonderful organization of highly dedicated, talented, and personable SQL Server professionals from around the world. Read more →

Using sp_MSforeachtable and DBCC CLEANTABLE to reclaim space

In a prior posting, I demonstrated how the undocumented sp_MSforeachtable stored procedure can be used to iterate through each of the tables within a database. In a separate posting earlier this year, I also demonstrated how the DBCC CLEANTABLE command can be employed to reclaim space that was once consumed by variable length character columns that have been subsequently dropped. Read more →

SQLTeach in Toronto, May 12-16, 2008

If you've ever attended a DevTeach/SQLTeach event, you already know that it's a wonderful and intimate community-driven event designed to provide top-notch .NET and SQL Server developer education in an up close and personal environment. Read more →

Creating a Notification Services Instance

Even though SQL Server 2008 does not include the Notification Services (SSNS) component, it seems that companies still consider SSNS a very viable option for upcoming notification projects. I'm planning to write a blog or SQLTeam article in the near future to address some questions I'm frequently asked. Read more →

SQL Server error messages

If you've worked with Microsoft SQL Server in a production environment for any length of time, you've undoubtedly been exposed to a number of different error messages. For example, many of us are probably familiar, too familiar perhaps, with error 1205 - the dreaded "you've been chosen as the victim of a deadlock" message. Read more →

Think holistically about securing your systems

A recent ZDNet article highlighted an event where two United Kingdom officials demonstrated just how vulnerable a new, but not updated, Microsoft Windows system can be. It took one official from the Serious Organized Crime Agency a mere 11 minutes to discover the target computer on a wireless network, crack into it using open source tools that are commonly available on the Internet, and steal password files. Read more →

The undocumented sp_MSforeachtable procedure

As database administrators or developers, sometimes we need to perform an action on all of the tables within a database. For example, we may want to disable check constraints for all tables prior to loading a bunch of data; or perhaps we need to run DBCC CHECKTABLE for every table in our database to ensure the integrity of all pages and structures that make up the tables. Read more →

SSNS Status Codes

Have you ever been troubleshooting a SQLNS instance and noticed the status code column in some of the views and underlying tables? For example, the NSSMTPNotifications view has a column named DeliveryStatusCode with a values that range from 0 to 6. Read more →