Mladen Prajdić Blog

Blog about stuff and things and stuff. Mostly about SQL server and .Net

Math geek humor

A derivative is walking down the street and sees a hot function. So he grabs her, takes her into the bushes and differentiates her once. Little later he sees another function and differentiates her twice. Read more →

When are SQL Server schema objects Case Senstive?

I've come across an interesting thing today that i didn't even think could be an issue: Case senstive object names (tables, columns, triggers, views, etc....). If your database is created with a Case Sensitive collation then all object names will be Case Sensitive. Read more →

When (int)x isn't the same as Convert.ToInt32(x)

Having started programming in c/c++ i've always been used to casting between types using () operator: int i = (int)x With the coming of .Net framework ValueTypes and ReferenceTypes were introduced and we started hearing about boxing and unboxing. Read more →

VS 2k5 autogenerated code gem

A coworker found this in code generated by Visual Studio 2005: this.sqlSelectCommand2.CommandText = "SELECT columnName1, columnName2, columnName3, columnN" + "ame4, columnName5, columnName6 FROM MyViewFromMa" + "nyTables" Searching for MyViewFromManyTables is beautifull. Read more →

A bit about sql server's local temp tables

I've seen a lot of confusion about the scope and lifetime of temporaray tables. While i think that ##global temp tables are clear, #local temp tables are a different story. They seen to sometimes work and sometimes not, especially when used with dynamic sql. Read more →

Annoying SQL Server "bug feature"

here's a select. don't run it just look at it and think what it returns: SELECT 123.654, 123d6, 123e4, '123'e4 ok now run it. the results are: (No column name) d6 (No column name) e4 123. Read more →