Category: Blog

  • TechEd 2010 – BI Keynote – Part 1

    The second day’s keynote is by Ted Kummert and focuses on BI.

    This keynote is in one of the smaller auditoriums, which makes sense as only a portion of the attendees are interested in BI. However there are a fair number of BI people in the conference that have a regular pass and aren’t allowed in. Apparently there’s an overflow room, but I found a number of people waiting in line for 5-10 minutes to get in, only to be turned away at the door because they didn’t have the BI, yellow bordered badge.

    Ted runs the business platform division, which includes SQL Server, and the application server technologies.

    Every day businesses are asking questions about their business. That’s true, they are always looking for more insight, more data to support or debunk a position. The dream of BI, making business more efficient, able to more forward, allowing people to make better decisions, that’s something we all want. I know that people at Microsoft want to make that owrk better, and they have, but there is also a need for us in IT to learn enough to effectively apply these technologies.

    The keynote looks back at the last BI conference, before all the BI enhancements were added and released in SQL Server 2008 R2. No committments to future released, but a look forward is coming.

    A slide showing that 20% of the end users have BI tools to use, and 80% do not have tools. It’s a similar story, and MS is looking to try and get more end user BI, self-service BI, to that 80%. BI for Everyone, for 100%, is the vision for MS.

    A nice admission that BI is too hard Too much terminology and technology to learn. I agree with that. BI is hard. So that the idea is to make BI more familiar, using familiar tools. That’s PowerPivot, and I agree with that move. I’ve written about it, and if you haven’t seen it, check it out.

    Collaboration is important, and that includes sharing BI reports, documents, etc. This is primarily with Sharepoint integration from MS.

    There is a note that BI for Everyone means that we have to have managed data. Not data in the wild, in Access, Excel, but in environments managed by IT. So it’s not a look to get fewer DBAs, but rather have DBAs become more managers of data, but allowing end users to access this data with new tools, with less IT involvement in the end user consumption.

    Column oriented, in memory store. That’s what PowerPivot is, and it’s one of the few times that I’ve heard someone actually note that.

    Moving the Excel sheets with Powerpivot into Sharepoint means that IT can manage it. That’s a good thing, so you might want to consider adding some Sharepoint skills. This allows the IT group to back up, and secure, the data that end users are actually compiling, and working with.

    Bi for everyone, sold as: Office 2010, Sharepoint 2010, SQL Server 2010. A great way for MS to sell more licenses, multiple products. Good business strategy, and it means that you’ll need to upgrade Office to get end users working. Tell system admins to get prepped for that, skill and budget-wise.

    Michael Tejedor doing a demo. Sharepoint 2010, searching, and then finding reports stored in Excel sheets. Looking at the data sources, SQL Azure is listed along with many that you expect to see. There are also sources for getting data from SSRS Reports, which is often where someone finds some data they want to scrape out.

    There is an extension to the Excel expression language for Powerpivot, DAX. There are also “social” additions to the collaborative items in Sharepoint. It’s a good marketing move, allowing people to do things like “Tag” or “comment” on a document at a high level, as opposed to a particular cell. you can even “rate” documents, which is something that I’d wonder if people used.

    There are more settings, in addition to things like permissions. You can set data refresh intervals, and workflows.  There are compliance features built in as well, allowing companies to better manage data and ensure it is not being released in violation of regulartory requirements. This is a good check outside of security

    There are good manageability features as well for IT, allowing you to see aggregate activity for the system as well as for individual reports, see the usage of queries, documents, etc. With the farms being built, this should allow you to capacity plan better than in the past.

    You can also see from where data is coming, which can allow you to find out if the sources of data are being overloaded, and perhaps allow you to denormalize, or partition out data sets that are important to end users.

    A customer story from CareGroup Healthcare. It’s a guy that was featured a bit last year at the BI conference at the PASS Summit. I had lunch with him, and he does like Microsoft technology. However that might be because he’s a featured customer, and perhaps he gets some benefits. He’s showing off some Powerpivot reports that I think he showed last year, which allow his end users to build reports that they need without coming to IT.

  • Getting a Page of Results

    The other day I was looking over a couple of articles on paging, looking to see if I could learn something new in T-SQL. I’ve implemented some SQL2000 era paging systems, none of which performed wonderfully, so I checked out Jacob Sebastian’s basic Server Side Paging and Paul White’s Optimizing Paging Part 1.

    I’ve done systems similar to Jacob’s, but he had an interesting use of the OVER clause in his code. He had this code:

    ;WITH emp AS (
      SELECT 
        CASE 
          WHEN @SortOrder = 'Title' THEN ROW_NUMBER()OVER (ORDER BY Title) 
          WHEN @SortOrder = 'HireDate' THEN ROW_NUMBER()OVER (ORDER BY HireDate) 
          WHEN @SortOrder = 'City' THEN ROW_NUMBER()OVER (ORDER BY City) 
              -- In all other cases, assume that @SortOrder = 'LastName' 
          ELSE ROW_NUMBER()OVER (ORDER BY LastName) 
         END AS RecID,   , LastName
       , FirstName
       , Title
       , HireDate
       , City
       , Country
       , PostalCode
     FROM employees

    This is a great solution in SQL Server 2005. It’s much different than what I had done in SQL 2000, where I’d typically approach the problem by using the sort key to get the next page.

    So say I had this data in a table (Customers):

    CustomerID    Customer

    ———–   ————

    1             Jones

    2             Smith

    3             Johnson

    4             Allen

    5             Gates     

    Then suppose I wanted page 1, 2 results per page, ordered by Customer. I would want to see “Allen, Gates” on page 1. I’d use this code.

    select top 2 Customer

    from Customers

    Order By Customer

    If I wanted page 2, I’d go here:

    select top 2 Customer

    from Customers

    where Customer > ‘Gates’

    Order By Customer

    And this would get me “Johnson” and “Jones” since the WHERE clause would reset results. If you have control of the application code, and you can pass in the previous values, you can easily build pages like this.

    If you switch orders, say to the CustomerID, then you can easily pass that in as well, and use that for ordering.

    There is a downside, however. Any ideas? I’ll post that in my next look at paging.

  • Syndication Schedule Changes

    We have a process that reads syndicated blogs from people and then publishes them here. It’s worked well, and allows people to have their own site, but get more exposure here. I actually use it, publishing a copy of my blog at Blogger and then having it read here. Gives me peace of mind to have a backup copy.

    However this week I noticed an issue. A few times people have pinged me saying that they posted something and it didn’t appear that day. I hadn’t worried about it until the T-SQL Tuesday blog party. The rules for that party require that you get a post in on Tuesday, which for many people involves scheduling a post earlier.

    So our process doesn’t pick it up on Monday (it’s scheduled) and while it probably comes in late Tuesday, it misses out on the blog party.

    I submitted a ticket and asked for the way to run the process ad hoc. That way I could get my posts in and when people pinged me, I could just run it. However the Ops guys didn’t like that, so I got a response that they’d schedule it every 8 hours instead.

    That works, and this post is a test to see if it actually works.

  • eReading – Lending Books

    I sent this to Barnes and Noble, as well as Random House recently after the much vaunted “lending” technology in the Barnes and Noble e-readers didn’t work as expected for me.

    My wife pinged me this morning, asking about the “lending” technology on Barnes and Noble.

    I just went to try and lend an e-book to my wife on Barnes and Noble. We typically do a lot of e-reading as it’s more convenient for us. I wanted her to try a new author, but don’t want to give up my device. However, the novel, in this case Grift Sense from James Swain, wasn’t lend-able.

    I understand this is a publisher limitation. Please remove this. It’s asinine to expect that the capabilities of physical books, i.e. lending, should not be allowed. It’s not a copy, I lose the book while it’s lent, which is perfectly acceptable. The sharing of books is a great way that I’ve gotten other people interested in authors, and I’ve gotten interested as well. Letting me share a book I like with a friend, for some reasonable time, is a way to promote reading, not kill your sales. I would also like to be able to "sell" my ebooks, though I think we are a little ways away from that technology.

    E-reading for me over the last couple years has had me moving from reading about 50 books a year to more than 70. I now buy my books instead of going to the library as much and that’s fine. I’m happy to pay for good content. But stop trying to restrict things. Please make all your titles available as e-books, and make them lend-able.

    I like the idea of sharing books, especially when we don’t share accounts. My wife and I had separate accounts on B&N, though we’ve been looking to go to a merged account so that we each can see books the other has read. It’s silly for us to have to re-buy a book within the family.

    I think this is one place the the publishers are going to have to let go a little and trust people to do some sharing. Most people I know are comfortable buying books, and they make the investments. Don’t penalize them to prevent e-reading.

    I also think that B&N or Amazon could get ahead of the curve here and allow us to “re-sell” our used e-books to others. By putting up a market for people that want to sell their e-books, they could allow us to even buy more books with the money we make.