Mladen Prajdić Blog

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

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 →

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 →

Entity-Attribute-Value (EAV) model with SQL Server 2005 xml datatype

I've seen this technique a few months ago on a local MS event called NT Conference presented by Slovenian MVP Dejan Sarka. However i haven't seen him blog about it yet (a shame) so after seeing this post by co blogger David Moloney here on SQLTeam blogs in this post about EAV i decided to give this little thing a go by myself. Read more →

Export Query results to Excel with Column names in T-SQL

In this thread it's shown how to export query results to excel File using OpenRowset. The problem with this is that you have to create an excel file with columns. For me that is simply unacceptable because i had to export any query result to excel and having to make an excel file for each query is simply ridicolous. Read more →