SqlServer: May 2009 Archives

Sql Server - PIVOT function

|
I've seen code in pre-Sql Server 2005 (i.e. 2000) where PIVOT-esque functions were carried out and my god were they complicated, messy, HORRID beasts. Put quite bluntly, if I never have to see that code again it'll be far too soon.

I was only reminded of this by coming across a post by Dan Wahlin titled "Pivots to the Rescue - Providing Flexible SQL Server Queries" that gives a good explanation and use-case for them. Something that I'm sure I'll find a use for in the near future!

MySql - sp_spaceused equivalent

|
One of the useful system stored procedures in Sql Server is the sp_spaceused sproc for, funnily enough, seeing how much space a table or database is using. I recently found a MySql equivalent in the MySql Forums, 'Stored procedure for reporting database/object storage usage'.

About this Archive

This page is a archive of entries in the SqlServer category from May 2009.

SqlServer: February 2009 is the previous archive.

Find recent content on the main index or look in the archives to find all content.

SqlServer: May 2009: Monthly Archives

Powered by Movable Type 5.04