Thursday, November 1, 2012

PASS Summit 2012–My Schedule

Using SSIS 2012 for Data Warehouse ETL

I have been fortunate to be selected this year to speak at the PASS Summit 2012 in Seattle. This presentation will go mainly over 3 new features: The Change Data Capture and DQS controls as well as deploying SSIS projects/packages to the SSISDB catalog. Throughout the presentation, there will be usage of 10-20 more new features all depending on the demo and questions. 75% of this presentation is demos, so come along for the ride. I love presentations that show how to use SQL Server.

Pre-conference Session – Monday

After arriving on Sunday afternoon, I will go to Rod Colledge’s session on BI Dashboards with Dashboard Designer and PerformancePoint. This will satisfy the first goal of the conference; to take back what I learn and create 2 sets of dashboards for a project at work.

Monday night, I am going to the networking dinner Steve Jones and Andy Warren are hosting. I did this last year and it was a great way to sit with 4-6 SQL Server geeks and enjoy a dinner and conversation.

Registration

Community Involvement – Tuesday

Tuesday morning, I will be attending 2 round table discussions with Virtual Chapter leaders and SQLSaturday leaders/volunteers. I am the chair of the Data Architecture VC and have helped with the past 3 SQLSaturday’s in Baton Rouge and spoke at the first 3.

House of Bricks is hosting a SQL Server on VMware boot camp which I have decided to attend to help understand the configurations for the VMs we run at Turner Industries in Baton Rouge.

Tuesday night I am going to float between the Welcome Reception, SQLServerCentral.com/Redgate casino night and a speaker reception.

image

Main Conference – Wednesday

I am going to start out the morning at the Community Area booth which has been expanded this year in size. It will be great to say hi to Karla and other PASS workers and sign people up for Virtual Chapters and PASS.

The first session I am attending is Sean Boon’s Building Compelling Power View reports Lunch will be sitting at the Virtual Chapter tables talking Data Architecture.  The afternoon starts with Stacia Misner’s SSAS Storage followed by my SSIS 2012 presentation and ends with SQL Server and SharePoint: best Frienenies which should be a fun session.

Wednesday evening will be talking with vendors at their reception for attendees which was a hit last year.

Thursday Sessions

The morning starts again at the Community area early in the morning. The first session (10:15) is Carlos Bossy talking Data Modeling Best Practices for Enterprise Tabular Models which should help me with Data Mart designs for PowerView reports which is another goal for work. During Lunch, I will be Live Blogging and Tweeting from the Woman In Technology Luncheon which should be fun.

The afternoon starts with Running Reporting Services in SharePoint Integration Mode which Turner just had a consultant (SparkHound) install with SQL Server 2012 and SharePoint 2010. I really wanted to see Deeper Tabular Models with Wayne Snyder (who is a cool dude), but I think the SSRS is more valuable for work. I can always watch the recorded session when I get the DVDs.

The afternoon ends with Dive into the Query Optimizer and Monitoring Analysis Services which are both part of my daily checklist at work. Thursday evening, Microsoft is sponsoring a trip to Seattle’s Music Experience museum for 2-3 hours. The last couple of years it was at a GameWorks, which was pretty cool. I am expecting a good networking evening this night.

Friday Sessions and Homebound

I am leaving around 3:30PM Friday to spending time with family and friends on Saturday, so I will only be at 2 sessions plus lunch. I am getting married in January, so I need to get back to Baton Rouge, plus we (LSU) plays Miss St. at home that Saturday.

The first session (8AM) will be Power(view)ful Tabular semantic Model Development with Mark Davis, then Tim Mitchell learning me on ETL Gone Bad: Handling Errors and Data Anomalies in SSIS. These are 2 great speakers and consultants.

Lunch will have me sitting at a Birds of a Feather table on Data Warehouse Modeling and SSIS ETL.

WOW!!! That is a lot

That seems like a big schedule, but I am not evening doing everything that is available. The first year I attend PASS (07 in Denver), we spent time at the Microsoft First-Aid room working with replication developers on a problem in SQL Server 2005. The following year, I spent time in the Virtual Lab learning SQL Server 2008 new features. There is also visiting with vendors and collecting swag. The exhibition hall is sold out. Then, there are lightening talks which help speakers get a start with presenting as well as Microsoft Chalk Talks. There are pre-conference sessions on Monday and Tuesday.

The PASS Summit is full of stuff to do during the day and at night. I know a lot of people like #SQLKaraoke and Photo walks plus a #SQLRun on Tuesday morning. It is fun watching the SQL Kilt day and Thursday is wear your SQLSaturday shirt day.

Lastly, meeting and saying hi to friends like John Sterret (That is the back of his head above), Scott Shaw, Carlos Bossy, Patrick LeBlanc, Devin Knight, Erin Welker, Grant Fritchey, Thomas LaRock, Louis Davidson, Sean and Jen McCown, Wesley Brown, Kevin Boles and the list goes on and on. The SQL Community is the best group of technology geeks that love to share the #SQLLove.

Hope to see you there, and please come say hi and introduce yourself to me.

God Bless

Below is a picture from the first SQLSaturday in New York, and little did I know I was with Thoams LaRock, Adam Jorgenson, Grant Fritchey, Andy Leonard and Robert ?

SQLSaturdayNewYorkSpeakerRoom

Sunday, October 14, 2012

When a Covering Index no longer covers

I received an email from my boss on the morning supervisors approve timesheets. He stated that they are complaining about an error: Deadlock. Searching the SQL Log, I was able to get the details of the deadlocking. We have Trace Flags 1204 and 1222 turned on which provides the details.

Once I got the details and having followed Bart Duncan’s Deadlock Troubleshooting, I found the victim and successful DML statements.

Next, I started a trace to get some parameter values for the victim T-SQL. By the way, the UPDATE statement was the higher priority statement that succeeded and a SELECT was the deadlock victim. Not the classic UPDATE/UPDATE example so many people use to illustrate deadlocking. When I got the Execution Plan for the victim, I noticed the Seek was on a Non-Clustered index with the INCLUDE option (Covering Index). After the Seek, there was a lookup on the Cluster Index.

Now, months ago I added the covering index to help this same SQL statement, but now it needed 2 extra columns from original suggested index.

What changed? Well, before I got the answer on what changed, I dropped the index so the users could proceed and not get the error, with some performance issues (it was taking 5-6 seconds instead of less than one)

What Changed? The previous week, the development team released a new version of the application and add 2 columns to the SELECT statement.

So, here is an example of what happened with the Adventure Works database.

USE [AdventureWorks2012]
GO
 
SELECT [SalesOrderID], [RevisionNumber], [OrderDate], [DueDate]
  FROM [Sales].[SalesOrderHeader]
  WHERE OrderDate Between '20070101' AND '20070101'

If you run the above query with Include Execution Plan, you will get a Missing Index like the following:



USE [AdventureWorks2012]
GO
CREATE NONCLUSTERED INDEX [<Name of Missing Index, sysname,>]
ON [Sales].[SalesOrderHeader] ([OrderDate])
INCLUDE ([SalesOrderID],[RevisionNumber],[DueDate])
GO

The Execution Plan is using a Clustered Index scan to find the data with a cost of 0.54


Adding the index, the Execution Plan now does an Index Seek with a cost of 0.0033. Big improvement!!!


Now, when I add a column to the SELECT query that is not in the Covering Index:


image


The INCLUDE column index (covering index) is used in a SEEK, but then a Key Lookup is added to get the additional 2 columns from the Clustered Index.


So, how does this cause a deadlock. I have seen this problem many times over the last 5-6 years.


The SELECT statement starts to SEEK the Covering Index at the same time an UPDATE statement locks the clustered index to update, then tries to update the covering Index. But, the SELECT statement has a shared lock on the Covering Index (Non-clustered Index) that is now trying to place a shared lock on the Clustered Index, which is locked by the UPDATE statement. BOOM!!! Deadlock!!!


How do you fix this?


First, you can add the 2 columns to the covering index and the SELECT no longer needs a Key Lookup on the clustered index. This is fine, but I wish it could be found in development and not production.


Or, you could just remove the Covering Index (like I initially did) and find other ways with the development team to improve performance. I do not believe they even knew what I did when I added the Covering Index, nor did I know that had added some additional columns to the SELECT statement.

Tuesday, October 9, 2012

Part II - Louis Davidson (Dr SQL)–Designing for Common Problems in SQL Server…continued

The PASS Data Architecture Virtual Chapter will host part II of Designing for Common Problems in SQL Server by Dr. SQL Louis Davidson as he helps application and database developers design and implement SQL Server databases.

I saw Louis at the first PASS Summit I attended in Denver in 2006. He and Paul Nielsen help me see where data models and normalization can increase the efficiency with storing and retrieving data.

They also encouraged me by their presentations to start talking about database design at work and in the SQL community.

Please join us on Thursday October 11th at Noon Central for another informative presentation.

Subject: Designing for Common Problems in SQL Server Part II 

Start Time: Thursday October 11th, 2012 12:00 PM US Central Time

End Time: Thursday October 11th, 2012 1:00 PM US Central Time

Presenter: Louis Davidson

Live Meeting Link: Live Meeting

Designing for Common Problems in SQL Server II 

In this session, I will do a design and code review of several common patterns of solving problems that a typical programmer will come up against. Problems like coding for hierarchical data, data driven design, dealing with image data, structure generalization, user specified schemas, dimensional reporting, and dealing with uniqueness beyond what you might deal with using a simple uniqueness constraint might allow you to deal with.

Louis Davidson

Louis has been in the IT industry for 17 years as a corporate database developer and architect. He has been a Microsoft MVP for 8 years and has written 5 books on database design and has spoken on the topic of database design and implementation at SQL PASS, SQL Rally, many SQL Saturday events, as well as Devlink. Currently serves as the Data Architect for the Christian Broadcasting Network supporting offices in Virginia Beach, Virginia and Nashville, Tennessee. Louis has a bachelor's degree from the University of Tennessee at Chattanooga in computer science. For more information please visit his website at drsql.org.

Tuesday, September 18, 2012

24 Hours of PASS: Hosting Rod Colledge–BI in Sharepoint

The Virtual Chapters of PASS are asked to host sessions during this Fall’s 24 Hours of PASS preview for the PASS Summit in Seattle, WA Nov 5th-9th. The Data Architecture VC gets to host Rod presenting on BI Architecture With SQL 2012 & SharePoint 2010. This is a good preview of Rod presentation skills for the pre-conference session, Dashboards with Dashboard Designer & PerformancePoint Services 2010 [BID-398-P], he is doing on Monday during the Summit. I am actually attending the session to help with some PerformancePoint dashboards I am working on at Turner.

The Data Architecture virtual chapter has monthly webcast by SQL Server experts in the community. October will have Dr. SQL – Louis Davidson – presenting part 2 of his session on Designing for Common Problems with SQL Server.

The 24 Hours of PASS have being going on for the past 3-4 years with the fall session representing some of the pre-conference and spotlight sessions for the PASS Summit. I really enjoy going to at least one of these precons each year while at the Summit. It has always been a good one day training on a subject.

24 Hours of PASS

Please go register for 24-Hours of PASS and the Summit and get some training for SQL Server

BI Architecture With SQL 2012 & SharePoint 2010
This session will cover new BI features in SQL Server 2012 including Power View, PowerPivot, Report Alerts and SSRS Integration with SharePoint Server 2010. It will then focus on the importance of Self-Service BI and how it fits into an overall enterprise Business Intelligence architecture. This session will be rich with demos of all the new BI tools and the use of PerformancePoint Services to create Business Intelligence Dashboards. Attend and discover the awesome power of the latest release of the Microsoft BI Platform.


Rod Colledge
Principal Consultant, StrataDB
Rod Colledge is the Director and Co-Founder of StrataDB, a leading Australian-based provider of SQL Server solutions to clients in the Corporate, Government, and Education sectors. With over 15 years of SQL Server experience, Rod's ongoing commitment and depth of knowledge was recognized in 2010 with a Microsoft MVP award for SQL Server. Rod leads StrataDB's Business Intelligence practice and has authored or contributed to three books, including the "SQL Server MVP Deep Dives" series. He's a sought-after speaker at both local and international SQL Server conferences.

BI Dashboards with Dashboard Designer & PerformancePoint Services 2010 [BID-398-P]
Session Category: Pre-Conference Session (full day)
Session Track: BI Information Delivery
Speaker(s): Rod Colledge
During this demo-rich dashboard design deep dive, we'll begin with an introduction to Business Intelligence and PerformancePoint Services in SharePoint 2010. Then, we'll cover the basics of creating dashboards with the Dashboard Designer tool. We'll look at some of the more advanced areas, including SQL Server Reporting Services and Excel Services dashboard integration, before taking an in-depth look at the process of creating scorecards and KPIs. We'll finish up with a look at how we can get the different items on a dashboard page to interact with each other, and the power of Time Intelligence.

Tuesday, August 28, 2012

Lookup transformation in SSIS: Performance Improvements

There are 2 suggestions I hear about when performance tuning the Lookup transformation on a large dimension table when getting the surrogate key for a fact table. I hope to introduce here a third.

The first is the caching option.

image

 

The Full Cache option will cache the whole table (or query columns). If you have a large dimension table, this might use a lot of memory.

The Partial Cache will load the matching rows but will clear least used lookup values once the memory size of the cache is exceed.

No Cache will query the data each and every time a lookup value is needed. No good is running lots of lookups on a large table

 

I believe using Full Cache is good when you have no memory limitations and a small dimension table. The Partial Cache is good for large tables. Not sure where No Cache would be used unless the lookup is not used much in the Data Flow Task.

The next suggestion is instead of selecting the whole table, use a T-SQL query to select only the columns you need,

image

By using only the needed columns in the SELECT T-SQL statement, you limit the amount of information retrieve into SQL Server’s Buffer Pool and the SSIS cache.

One more option can help improve this query even more – a proper index.

SELECT ProductSKey, ProductID
  FROM DimProduct
WHERE Status = 1

This query used above will still do a Clustered Index scan or Non-clustered Index with a Key Lookup in the execution plan based on the indexes available like an index on the just the status column.


But, if you can create a covering index with the Status as a Non-Clustered Index including ProductSKey (surrogate key) and ProductID (natural key) in the index, you can get better performance on the SQL instance side.


The cost of the query went from 0.0178649 to 0.0065309. The statistics IO went from 21 logical reads to 7 and the execution went from a Clustered Index scan to a Non-clustered Index Seek.


image  image


Using the partial cache and proper index on dimension table helped reduce a look up on one of our dimension tables from 3 seconds to less than one second on a 200,000+ row dimension table at my current employer. The execution performance was viewed in the new SSISDB statistics report in the 2012 version of SSIS. More on that in another blog.

Sunday, August 19, 2012

PASS Virtual Chapter August presentations

If you do not know by now, PASS has many virtual chapters that give free webcasts all month long. I have helped chair the Data Architecture VC for the past year or so, started by volunteering  with the Performance VC for about 6 months and have done presentations on the BI/DW VC. Please visit the Virtual Chapter site for more information - http://www.sqlpass.org/PASSChapters/VirtualChapters.aspx

Tuesday at noon Eastern, I will be presenting on SSIS 2012 – CDC, DQS and Catalog for the BI/DW VC. More info below.

Also, the recorded presentation from this past Thursday’s Data Architecture VC is now uploaded in the Meeting Archive. Louis Davidson will do part 2 later this fall. His example code can be found at DrSQL.org in the presentation section.

Tue August 21st 12pm-1pm EST

Using SSIS 2012 for ETL in a Data Warehouse

Speaker: Thomas LeBlanc

URL: https://www.livemeeting.com/cc/usergroups/join?id=GQ5DKK&role=attend&pw=J%3A%2BW4%3F%28hK

This session will go through some old and new features of Integration Service 2012 to help with loading data into a Data Warehouse/Mart. The GUI has been improved visually during design and execution. The storage of packages has been update with Integration Service Catalogs. The Change Data Capture task helps with incremental updates. Logging has been improved for debugging. A demonstration of creating your own Slowly Changing Dimension with current Tasks will be shown with some design hints.

Friday, August 10, 2012

Louis Davidson (Dr SQL)–Designing for Common Problems in SQL Server

The PASS Data Architecture Virtual Chapter hosts none other than Dr. SQL Louis Davidson as he helps application and database developers design and implement SQL Server databases.

I saw Louis at the first PASS Summit I attended in Denver in 2006. He and Paul Nielsen help me see where data models and normalization can increase the efficiency with storing and retrieving data.

They also encouraged me by their presentations to start talking about database design at work and in the SQL community.

Please join us on Thursday August 16th at Noon Central for another informative presentation.

 

Subject:  Designing for Common Problems in SQL Server

Start Time:  Tuesday, August 16th, 2012 12:00 PM US Central Time

End Time:  Tuesday, August 16th, 2012 1:00 PM US Central Time

Presenter:  Louis Davidson

Live Meeting Link:  Live Meeting

Designing for Common Problems in SQL Server

In this session, I will do a design and code review of several common patterns of solving problems that a typical programmer will come up against. Problems like coding for hierarchical data, data driven design, dealing with image data, structure generalization, user specified schemas, dimensional reporting, and dealing with uniqueness beyond what you might deal with using a simple uniqueness constraint might allow you to deal with.

Louis Davidson

Louis has been in the IT industry for 17 years as a corporate database developer and architect. He has been a Microsoft MVP for 8 years and has written 5 books on database design and has spoken on the topic of database design and implementation at SQL PASS, SQL Rally, many SQL Saturday events, as well as Devlink. Currently serves as the Data Architect for the Christian Broadcasting Network supporting offices in Virginia Beach, Virginia and Nashville, Tennessee. Louis has a bachelor's degree from the University of Tennessee at Chattanooga in computer science. For more information please visit his website at drsql.org.

Add to calendarAdd to calendar