SQLStudies
Archives: November 2012
Creating an empty table from a SELECT statement
I’m in the middle of reading a good book on DMVs, “SQL Server DMVs in Action” http://www.manning.com/stirk by Ian W. Stirk. In it he points out that you can create a temporary table from a query and use it to store the data from multiple runs of the query. This… Read more
9 comments, 3,333 reads
Posted in SQLStudies on 26 November 2012
CTEs beyond SELECT
The other day I was writing a query to pull some DMV information and I ended up using several CTEs in my query before I was done. My plan was to dump the information into a table to process it further. I’m used to just throwing an INSERT INTO command… Read more
2 comments, 323 reads
Posted in SQLStudies on 20 November 2012
Looping through multiple servers in SSIS Part 3
Over the last couple of weeks I’ve set up a SSIS package that will loop through a group of servers and export the list of databases to a central location. I used a Foreach Item Enumerator to list the servers but honestly those require a bit too much maintenance for… Read more
4 comments, 604 reads
Posted in SQLStudies on 15 November 2012
Time Trial sys.dm_exec_query_plan vs sys.dm_exec_sql_text
I’ve been working on a way to test performance usage on a server by database. I started out using sys.dm_exec_query_stats since it has every statistic I wanted. Unfortunately it doesn’t contain the database id which makes it rather difficult to split the data out by database. This lead me to… Read more
3 comments, 569 reads
Posted in SQLStudies on 12 November 2012
Looping through multiple servers in SSIS part 2
Last week I posted a quick example of looping through multiple servers using SSIS and being in a bit of a hurry I didn’t really finish. Last time I created the loop and got it working, but didn’t do anything with it. So this time I’m going to demonstrate using… Read more
0 comments, 1,193 reads
Posted in SQLStudies on 9 November 2012
A review of Knight’s 24-Hour Trainer Microsoft SQL Server 2008 Integration Services
About three years ago my manager came up to me and said “We need someone to learn SSIS, you’re it.” So I started with my favorite approach. I picked a project, in this case monitoring backups on multiple servers, and then developed it using the new (to me) technology. This… Read more
1 comments, 325 reads
Posted in SQLStudies on 7 November 2012



Subscribe to this blog