ipona

What in heavens name am I doing?

February 25, 2008
0 comments

More Row Number Magic

Having posted last night about row numbers and ranking, I realised in the shower this morning that there’s actually an easy way to get the first and last rows per group, just by using ROW_NUMBER. The trick is to PARTITION, … Continue reading

February 25, 2008
0 comments

Finding Hidden Gems

Sometimes things pass you by. I’ve been using the ROW_NUMBER() function SQL Server 2005 for ages, along with Common Table Expressions, to do server side paging, but had completely missed some other new functions. This is an odd occurrence for … Continue reading

December 12, 2006
0 comments

Red Gate SQL Doc

I’ve blogged before about RedGate and their SQL tools and I’ve just tried SQLDoc. Once again I’m amazed; another cracking tool. Once installed, it had documented 7 largish databases within a minute, producing complete documentation for them as a set of … Continue reading

October 3, 2006
0 comments

RedGate SQL Tools

I’ve seen the Red Gate SQL Tools used in the past, but not tried them myself until today, when I ventured into SQL Compare and SQL Data Compare. My word, these are good. Really, really good. Not only do they do … Continue reading

June 5, 2006
0 comments

SQL Server Dependencies

SQL Server 2005 supports notifications, allowing it to tell you when data has changed. This is useful for many reasons, invalidating the ASP.NET cache for example. Someone asked me about this at DeveloperDeveloperDeveloper (which was most excellent as usual) and … Continue reading

May 15, 2006
0 comments

More LINQ

I really should read my blog feeds before posting. Scott has just posted a good article about LINQ in ASP.NET “Orcas” with some good examples. However, I’m still worried about SQL style syntax in code – where should it go? … Continue reading