July 04, 2008
Untitled-1
ALL PASS Bloggers
  • Bob Beauchemin - Bob Beauchemin's Blog - RSS
  • Glenn Berry - Glenn Berry's SQL Server Performance - RSS
  • Mark Caldwell - Ajarn's SQL Corner - RSS
  • Louis Davidson  - The SQL Doctor is In (Real In) - RSS
  • Tara Duggan - Ramblings of a DBA - RSS
  • Randy Dyess - Transact-SQL Blog - RSS
  • Mike Epprecht - To SQL or not to SQL - RSS
  • Rob Farley - Blog - RSS
  • Euan Garden - Euan Garden's Blog - RSS
  • Bill Graziano - The Lazy DBA - RSS
  • Ken Henderson -  Ken Henderson's WebLog - RSS
  • Haidong Ji - The Ji Village News - RSS
  • Don Kiely - Don Kiely's Technical Blatherings - RSS
  • Kevin Kline - In a Nutshell - RSS
  • Thomas LaRock - Crazy DBA - RSS
  • Greg Linwood - Transaction Blog - RSS 
  • Aaron Lowe - AML's Space - RSS
  • Greg Low - The Bit Bucket - RSS
  • Adam Machanic - data manipulation for fun and profit - RSS 
  • Denise McInerney - select * from denisemc.views - RSS
  • Chris Miller - syscomments - RSS
  • Michael Rys - Musings on XML, XQuery and more... - RSS
  • Dejan Sarka - Solid Quality Learning Blogs - RSS
  • Kent Tegels - Enjoy Every Sandwich - RSS
  • Jamie Thomson - Jamie Thomson - Life, the universe and SSIS! - RSS
  • Rob Volk - TRUNCATE TABLE master..sysdatabases - RSS
  • Christian Wade - Christian Wade's Blog - RSS
  • Joe Webb - Musing and observations about SQL Server, other technogies, and sometimes just life in general - RSS
  • Pat Wright - A SQL Blog - RSS
  • Microsoft SQL Server Development Customer Advisory Team - RSS
  • Microsoft VS Data Team Weblog - RSS 

  • Untitled-1
     

    Welcome, this site is our a collecting ground for blogs about the PASS Community Summit experience and associated technologies.  We have links to any board of speakers, volunteers, attendees, and any members of PASS who want to be listed, and there will be an aggregation of several of the best posts every day.  If you would like to be a part of this site please email drsql@hotmail.com. 

    Untitled-1
    Blogs

    Current Articles | Categories | Search | Syndication

    Saturday, June 09, 2007
    Jamie Thomson - Katmai: New T-SQL enhancements
    By drsql@hotmail.com @ 6:58 PM :: 456 Views :: 0 Comments :: SQL Server 2005
    Katmai: New T-SQL enhancements

    A very short post here showing some of the new T-SQL constructs in katmai.

    Check out the following code snippet:

    declare @i int = 1;

    set @i += 1;

     

    create table t1 (col1 int);

    insert t1 values (@i),(@i+1);

     

    There are actually three syntax enhancements in there. Can you spot them? No? Let me fill you in:

    • Initialisation at the same time as declaration
    • += operator   (which works in the SET clause of an UPDATE statement as well)
    • Multiple row predicates in the VALUES clause

    Of course, none of these enhancements enable you to do something you can't do already - but they do mean less typing. Upon seeing this for the first time SQL MVP Kent Tegels was overheard muttering "Its T-SQL#"

     

    -Jamie

    Read More..
    Wednesday, February 21, 2007
    Tara Duggan - Database Mail on a cluster
    By drsql@hotmail.com @ 11:48 PM :: 875 Views :: 0 Comments :: SQL Server 2005

    In our production environment, we have two 4-node clusters.  One cluster runs at the primary site; the other cluster runs at our disaster recovery site.  Each cluster is running 11 SQL Server 2005 instances.

    We setup Database Mail on all of the instances at both sites, so that we could e-mail internal customers the results of various ad-hoc queries.  It was soon realized that Database Mail was not working properly at the primary site on any of the 11 instances.  We got our Exchange, server, and network administrators involved, but we were unable to figure out what was wrong.  We never received any errors but yet no e-mail was ever received.  Since we were unable to resolve the issue, we decided to open a case with Microsoft.  One of the things that they had me to do was increase the logging level of Database Mail so that it was more verbose.  After the configuration change was made, I attempted to send an e-mail with Database Mail.  As usual, no error was returned but also the e-mail never made it out of SQL Server.  Microsoft wanted me to send them the Application Log in Event Viewer.  While preparing to do this, I noticed the following error in it:

    An error has occurred while establishing a connection to the server.  When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections.

    Since remote connections was enabled on all of the instances, I decided to add an alias for one of the instances on all 4 nodes of the cluster.  This worked, so I reported my findings back to Microsoft.  After a bit of time, they reported back to me that the SQL Browser service was the culprit. 

    They don't have an exact reason as to why the SQL Browser service is unable to connect to a local instance (meaning an instance that is on the node where the service is running), but they did provide possible reasons:

    Clustering

    SQL Server Browser is not a clustered resource and does not support failover from one cluster node to the other. Therefore, in the case of a cluster, SQL Server Browser should be installed and turned on for each node of the cluster. On clusters, SQL Server Browser listens on IP_ANY.

    Note: When listening on IP_ANY, when you enable listening on specific IPs, the user must configure the same TCP port on each IP, because SQL Server Browser returns the first IP/port pair that it encounters.        

    Using a Firewall

    To communicate with the SQL Server Browser service on a server behind a firewall, open UDP port 1434, in addition to the TCP port used by SQL Server (e.g. 1433). For information about working with a firewall, see "How to: Configure a Firewall for SQL Server Access" in SQL Server Books Online.

    If you are unable to get Database Mail to send e-mails when the SQL Server 2005 instance is on a cluster, try adding an alias for the virtual server.  You can easily add aliases using the SQL Server Configuration Manager tool.

    Read More..
    Saturday, February 10, 2007
    Jamie Thomson - T-SQL: Generate a list of dates
    By drsql@hotmail.com @ 12:56 AM :: 1044 Views :: 0 Comments :: SQL Server 2005

    T-SQL: Generate a list of dates
    SQL Server 2005 | SQL Server | SQL | Common Table Expression | T-SQL | List of dates
    Sometimes we can be working and we write or find a ridiculously simple bit of code that we know will be useful in the future, then we just go ahead and plain forget all about it. When I find such stuff I like to stick it on my blog so that I know where to find it in the future and also on the off chance that someone else might find it useful. Here is one such example.

    The following bit of code uses a common table expression (CTE) to generate a contiguous list of dates in SQL Server.

        1 with mycte as
        2 (
        3     select cast('1900-01-01' as datetime) DateValue
        4     union all
        5     select DateValue + 1
        6     from    mycte    
        7     where   DateValue + 1 < '2050-12-31'
        8 )
        9 select DateValue
       10 from    mycte
       11 OPTION (MAXRECURSION 0)

    Read on

    Thursday, February 08, 2007
    Greg Low - Improving ASP.NET Session State database performance by reducing blocking
    By drsql@hotmail.com @ 12:50 AM :: 785 Views :: 0 Comments :: SQL Server 2005

    Improving ASP.NET Session State database performance by reducing blocking
    On a recent consulting engagement, I was working with a client that had significant performance issues with their ASP.NET session state database. They had a combination of both large session state and a large number of concurrent sessions. They were regularly experiencing command timeouts on that database.

    In my investigation, curiously I found that a DELETE statement was the culprit. I tracked it to the DeleteExpiredSessions stored procedure. Looking at it, it seems tame enough:

    CREATE PROCEDURE DeleteExpiredSessions
    AS
      DECLARE @now DATETIME
      SET @now = GETUTCDATE()

      DELETE ASPState..ASPStateTempSessions
      WHERE Expires < @now 

      RETURN 0

    GO

    Read On

    Tuesday, December 19, 2006
    Adam Machanic - Medians, ROW_NUMBERs, and performance
    By drsql@hotmail.com @ 10:48 PM :: 678 Views :: 0 Comments :: Summit Speaker 2005
    A couple of days ago, Aaron Bertrand posted about a method for calculating medians in SQL Server 2005 using the ROW_NUMBER function in conjunction with the COUNT aggregate. This method (credited to Itzik Ben-Gan) is interesting, but I discovered an even better way to attack the problem in Joe Celko's Analytics and OLAP in SQL.

    Rather than using a COUNT aggregate in conjunction with the ROW_NUMBER function, Celko's method uses ROW_NUMBER twice: Once with an ascending sort, and again with a descending sort. The output rows can then be matched based on the ascending row number being within +/- 1 of the descending row number.  This becomes clearer with a couple of small examples:

    A

    1

    4

    B

    2

    3

    C

    3

    2

    D

    4

    1

     

    A

    1

    5

    B

    2

    4

    C

    3

    3

    D

    4

    2

    E

    5

    1


    In the first table (even number of rows), the median rows are B and C. These can be matched based on [Ascending Column] IN ([Descending Column] + 1, [Descending Column] - 1). In the second table (odd number of rows), the median row is C, which is matched where [Ascending Column] = [Descending Column]. Note that in the second table, the match criteria for the first table does not apply -- so the generic expression to match either case is the combination of the two:  [Ascending Column] IN ([Descending Column], [Descending Column] + 1, [Descending Column] - 1).

    We can apply this logic within the AdventureWorks database to find the median of the "TotalDue" amount in the Sales.SalesOrderHeader table, for each customer:

    Tuesday, November 14, 2006
    Ken Henderson - SQL Server Support is at the PASS Summit again this year
    By drsql@hotmail.com @ 12:30 AM :: 581 Views :: 0 Comments :: Summit 2005

    My friends in Microsoft’s Product Support Services (PSS) group (aka SQL Server Support) are speaking again this year at the PASS Community Summit.  They’re doing some main conference sessions, the PSS Boot camp, and putting on the PSS Service Center again (where attendees can work through hands-on labs designed by PSS that demonstrate how to troubleshoot SQL Server issues).  I’d encourage you to make your way to their offerings if you possibly can.  They’re always some of the best sessions and content at the conference.

    They say the ultimate measure of success with an initiative is whether it survives the departure of the person or people who started it.  Since its inception in 2003, I had coordinated the involvement of PSS in the PASS Summit.  This year, I turned over the reigns to a group consisting of Todd DeDecker, a Group Manager within SQL Server Support, Bart Duncan, an Escalation Engineer within the support group and a good friend, and Haydn Richardson in SQL Server marketing.  I’d long felt that PSS mgmt and the SQL Server marketing folks (who handle the product group’s involvement in other conferences) should work together to handle PSS’ presence at the conference.  They had the charter and resources to do so, and I knew they could go to Bart for any questions they might have of a technical nature.  Once the initiative progressed from toddlerhood to adolescence, I felt it was ready to survive without my involvement.

    Read on

    Read More..
    Tuesday, November 14, 2006
    Pat Wright - Getting Ready For PASS
    By drsql@hotmail.com @ 12:28 AM :: 488 Views :: 0 Comments :: Summit 2005

    Ok So It sucks but I’m still at work at 7:00p.m. MST.    Why do Finance departments never tell IT they have plans of upgrades to there Great Plains software?  Then again why do IT Departments let Finance control that? 

    That’s not what this blog is about right now.  It’s about getting ready for the best Conference of the year.  That’s right it’s time for PASS again.  This year I’ve got a very busy schedule.  Not to mention I haven’t even looked at the Session schedule yet.

    So here’s the perspective from someone who volunteered way too much.

    Sunday and Monday are going to be time with my wife. J  I can’t wait to see some of the city with just her. 

    Tuesday is all day Sessions for volunteer’s I don’t even know how I’m going to make it to all of them since I belong to 3 committee’s and they are all having meetings at the same time!  Tuesday evening is the opening party and the Sqlservercentral party. Which I’ll probably make some sort of appearance at.  After that probably a late night at the bar with some friends!

    Wednesday Doing a presentation for Red-Gate at there booth at 11:45  Stop by if you want to hear about Execution plans.  Lunch with the mountain men! (You guys rock).  Later in the day some Chapter committee information which I’m really looking forward to.  Then late that night the Volunteer party.  This alone is a good reason to volunteer for PASS last year it rocked and I had a lot of fun.  Even if I did leave on the early bus.   

    Thursday  Some good Breakfast sessions for Mvp’s  and of course Steve Ballmer’s keynote which I don’t want to miss.  Then more pass meetings throughout the day. I hope to get a few sessions in there also. I hope to hit the PSS Service center also for some of there presentations and the hands on labs.  Hopefully I’ll have time for this today or Friday.  The night will be wrapped up with an MVP party going on. 

    Friday  Nothing scheduled yet besides sessions.  Finally a full day to take in the classes and see what is being presented.  Since I haven’t looked at the session schedule yet I guess I don’t know what I’m going to yet but I plan on mapping some things out tomorrow so maybe I’ll update the blog then. 

    Oh and I’ll be doing interviews and podcasts throughout the conference.  Look for the really big guy in the Fedora!  Stop by and I’ll interview you. 

    Last year I promised that I would post messages from PASS and sessions.  I hold no promises this year since I plan to spend most of my nights interviewing or drinking with friends. 

    Hope to see you there! 

    Read More..
    Thursday, May 18, 2006
    Upgrade Assistant
    By heigesr2 @ 9:46 AM :: 911 Views :: 0 Comments :: PASS Member, PASS Summit Attendee 2005, Volunteer, SQL Server 2005, Summit Speaker 2005

    I know that we all have heard about Upgrade Advisor from Microsoft.  Scalability Experts has just released a new FREE tool to assist in testing your application to verify behavior with SQL 2005.  It is called Upgrade Assistant.  Here is the link....  http://www.scalabilityexperts.com/default.asp?action=article&ID=317

    SE has been using the forerunner of this tool over the past year around the world in Application Compatibility Labs where we assist ISVs determine what changes are needed in their apps in order to upgrade to SQL Server 2005.  This version of the tool is much more refined than the one I used in the labs.  I hope that you find it useful.

    Wednesday, March 01, 2006
    Kent Tegels - Shreding XML with XQuery
    By drsql@hotmail.com @ 12:00 AM :: 1010 Views :: 0 Comments :: PASS Member, PASS Summit Attendee 2005, SQL Server 2005, Summit Speaker 2005

    Over on the Microsoft.Public.SqlServer.XML newsgroup, one Chris Kilmer asked a good question about how to shred a single XML document into multiple tables using multiple stored procedures. Chris's goal with this was to have each stored procedure update one table and pass the XML remaining nodes of the first document off to the next stored procedure. This is actually fairly easy except for one thing: maintaining referential activity between inserted elements.

    The XML involved is fairly simple:

    Click here to get more

    Friday, October 07, 2005
    Rushabh Mehta - PASS 2005 Community Summit coverage by Universal Thread
    By rushabh72 @ 12:00 AM :: 630 Views :: 0 Comments :: Summit 2005
    PASS 2005 Summit in Grapevine was a great success. It was the largest SQL Server summit to date. The conference was covered by the community site Universal Thread.  The final report includes the recap of day 3, a video of several interviews with key speakers, a list of blog of each speaker which have been interviewed and more then 100 pictures. Thanks to Daniel LeClair, Dave Bernard and Jean-René Roy who coordinated their effort to deliver another excellent report.
    Read More..
    Previous Page | Next Page
     
    Copyright 2005 Professional Association for SQL Server (PASS)