Debugging in SQL Management Studio

One common frustration is trying to debug SQL queries using the built-in editor within Microsoft SQL Server 2005 Management Studio. The database will kindly inform you of any errors when you attempt to execute a query, and also provide a line number. But that’s about it.
Compared to the error highlighting features available in Visual Studio,  [...]

T-SQL Return True / False based on Is Null

So I’m working on a project where images are uploaded to a database table. The table has an image column, and if there is no image, then the column is just null,  but otherwise the bytes for the image are stored.
An ASPX page takes in the row id for this table via querystring and serves up the [...]