Kool Web Site
25 March 2008 Personal
Bubble Image
I really dig this Web site.

marcus perezi-tomos
MCP Welcome Pack
16 March 2008 Personal
MCP logo
My Microsoft Certified Professional certification arrived today, all the way from Singapore.The pack includes certification of excellence signed by the man himself Bill Gates, MCP ID card and a 20% MCPeStore discount voucher. According to the literature included with the pack, benefits include

    * Download MCP logos
    * Access and share my MCP official transcript
    * Access the Microsoft Partner-level Knowledge Base
    * Create my MCP community profile on Microsoft.com
    * Find additional community and technical benefits.
Employment
16 March 2008 Personal
Bubble image
I start empoyment with Channel 7 Media tomorrow.

channel7media.com
A girl seated
09 March 2008 Paintings
Isabella
The artist's daughter wearing green seated. Oil on canvas 48" x 36".
Isabella in Blue
09 March 2008 Paintings
Painting of Isabella
A painting of the artist's daughter. Oil on canvas 36" x 24".
The DateName function
02 March 2008 Tips
Bubble image
I wanted to include an archive list, so that a user could click a listed month and all entries for that particular month would be displayed via a Data List control. I discovered that using the DateName function I could return the specific names of the months from the DateTime value in my database table.

SELECT DISTINCT DateName(Month,Date) AS theMonth,
DatePart(Year,Date) AS theYear
FROM myTable ORDER BY theYear

This gave rise to another problem whereby the listed months were in alphabetical order and not logical order.
  • February
  • March
  • January
  • December
  • November
  • October

Rewriting the query as

SELECT DISTINCT DateName(Month,Date) AS theMonth,
DatePart(Year,Date) AS theYear,
Month(Date) AS theMonth
FROM myTable
ORDER BY DatePart(yyyy,Date) DESC,
month(Date) DESC

Gave the required result
  • March
  • February
  • January
  • December
  • November
  • October