in

Drowning In Technical Debt

C# | ASP.NET | SharePoint | SQL | Architecture | SOA |

Browse by Tags

Sorry, but there are no more tags available to filter with.
  • nopatchforstupid #4 - of trims and empty values

    stupid select f1 from t where ltrim ( rtrim (f2)) != '' not stupid select f1 from t where ltrim (f2) != '' why? you could use ltrim or rtrim by itself. why are you trimming both sides when you are searching for an empty. if it trims to empty, then either one will result in the same. the only time you...
    Posted to roy ashbrook (Weblog) by royashbrook on 03-14-2007
  • nopatchforstupid #3

    today's item of stupidity is the dynamic orderby clause. i see this particular abomination all over the place when i'm refactoring procs, reports, etc. firstly, why is this bad? firstly, most people include a null check and then build a dyanmic sql statement to execute. dynamic sql should always be avoided...
    Posted to roy ashbrook (Weblog) by royashbrook on 03-14-2007
  • nopatchforstupid #2

    stupid @@identity not stupid scope_identity ()
    Posted to roy ashbrook (Weblog) by royashbrook on 03-14-2007
Page 1 of 1 (3 items)
Community Credit
Powered by Community Server (Commercial Edition), by Telligent Systems