February 2009 Archives

Art on the Underground

| No Comments | No TrackBacks
London is celebrating 100 years of the underground transport system, and they have set up various areas in the underground to host a series of 100 artworks by different artists to celebrate the 'underground' brand. To view the artwork, visit TFL's project page.

SQLException: SELECT TOP number

| No Comments | No TrackBacks

Today, I found a little issue in Microsoft SQL Server handling the 'TOP' SQL statement when you pass it a number to 'SELECT TOP' by. The code worked in the previous version of MS SQL, before the upgrade.

 

The error received is "java.sql.SQLException: Incorrect syntax near '@P0'." 'P0' is parameter zero.

 

For example:

        String sqlGetMyData =

            "SELECT TOP ? * FROM TEMP_UPLOAD "

                + "WHERE TRANSACTION_TYPE = ? AND TRANSACTION_SUB_TYPE = ? AND TRANSFORMID > ? ORDER BY TRANSFORMID";

 

The number that 'TOP' uses must be in parenthesis, as detailed below.


        String sqlGetMyData =

            "SELECT TOP (?) * FROM TEMP_UPLOAD "

                + "WHERE TRANSACTION_TYPE = ? AND TRANSACTION_SUB_TYPE = ? AND TRANSFORMID > ? ORDER BY TRANSFORMID";

 

Review: "I'm with the Brand" by Rob Walker

| No Comments | No TrackBacks

This book describes how and why brands are adopted and describes that consumers ultimately seek individuality as well as a sense of identity when they accept brands. (Even unknowingly, all people buy in to brands.) The author, Rob Walker, draws inspiration through several brands (including Red Bull, Converse, Hello Kitty, American Apparel, Timberland, Apple) and meeting with the individuals who created these brands.

Technology is helping to create 'ownership' and bringing people together to create and market brands through artistic similarities and word-of-mouth advertising. The word 'murketing' is coined to explain, essentially, the concept of anti-marketing. (An example of the term relates to the beginnings of Red Bull with a kiteboarding event held on Miami Beach; the marketing strategy was not clear, but the event drew a community which promoted the energy drink in extreme sporting events.) According to the author, this type of 'marketing' started in the 1980s with skateboarders and fashion. The book gives examples of other brands and their appeal while stating that we all adopt brands to show our individuality.   

Monthly Archives

Pages

OpenID accepted here Learn more about OpenID
Powered by Movable Type 5.2.3

About this Archive

This page is an archive of entries from February 2009 listed from newest to oldest.

January 2009 is the previous archive.

April 2009 is the next archive.

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