Thought I'd share a cool trick I picked up a while back with the OVER() clause. Typically you’d use this clause with the PARTITION BY or ORDER BY arguments with the ranking functions released with SQL Server 2005. The OVER() clause though can also be used to do aggregations with a SELECT statement without a … Continue reading The OVER() Clause
Month: January 2009
Search Cache For Execution Plans
Updated content at - Really Search Cache For Execution Plans Sometimes when I am working with clients I need to take a look at execution plans for different stored procedures. Rather than digging around with SQL Profiler or executing the stored procedures with what I think might be the parameters I like to '”return to the … Continue reading Search Cache For Execution Plans
Raw Data
Every now and then I need to put together demonstrations. I don’t usually like to “invent” data and like to look for sources of raw data on the internet. A friend forwarded me a link to http://www.google.org/flutrends. The site has a download for current and historical flu trends by state. Cool site and even cooler … Continue reading Raw Data
Using Twitter
I am putting this together mainly to introduce Twitter as part of social computing to some of co-workers. Only a couple of us at my consulting firm utilize Twitter and I am hoping that this blog will inspire a few more people to give it a try and “feel the flow” of the twitterverse. When … Continue reading Using Twitter
Find Duplicate Foreign Keys
A few weeks back I was working on a process that would utilize foreign keys to crawl from table to table to export data from a production database to an archive database. More on some of what went into that process probably at some point in the future. When the project was released to production … Continue reading Find Duplicate Foreign Keys
Scripting Object Level Permissions
A while ago while making changes to a client database, I needed to determine all of the object level permissions that were in the database I was working on. The system stored procedure sp_helprotect turned out to be pretty useful in obtaining this information. The procedure accepts four parameters: They do pretty much what would … Continue reading Scripting Object Level Permissions
MSDN Post: OPTIMIZE FOR UNKNOWN
A good performance tuning trick in SQL Server 2008 from the SQL Programmability team and a response reminding everyone that it isn't a silver bullet from Joe Sack. While cool, this item doesn't count towards my blogging goal for the year. Too bad, still a cool thing to play with.
A New Year
I've been really quiet on here as of late. So busy trying to relax that I've blown blown off posting and reading most blogs. It's been hard work but I think I have wasted enough time on my X-Box that it's time to get back to brass tacks. It's a new year and I've got … Continue reading A New Year