Friday, October 1st
by Jean-René Roy
9:45 DBA toolkit for Performance - Kevin Kline
Kevin is a really good speaker. In fact Kevin was the best speaker overall at DevTeach 2004 and the best speaker in the SQL track. He is more then a busy guy he is also the current president of PASS. This session is about the important of monitoring performance. Kevin explained about how important it is to do proactive monitoring. This way it will kip your phone from ringing announcing fire in your enterprise. In that regards there is things you can do in building a baseline approach with build in tool of SQL Server and Windows.
The first thing Kevin is taking about is the SysMon Counters, OS which are counter you can find in Control Panel / Administrative tools / Performance also call SysMon. The counters relate to Network, Physical Disk and Processor Time. The counters you can monitor are:
Database I/O
- Access Method
- Buffer Manager
Application Database
- Log Growths
- Percent Log Used
- Transactions/Sec.
Locking counters
- Latches
- Average Latch Wait Time
- Locks
- Average Wait Time
- Lock Waits/Sec
- Number of Deadlocks/sec.
General Health
- General statistics
- User Connections
- Memory Manager
- Memory Grants Pending
- User Settable Query
All of the counters can be set in the performance monitor application that you get on Windows 2000, Windows 2003 and Windows XP. The cool think is that you can see graphically real time the result.
In the performance monitor you can use also the Alerting. Alert are defined events that raise a notification of some kind. The Alert can by defined in performance monitor. Alert will create error in the event viewer. You can also create alert in SQL Server 2005. You can use Microsoft SQL Server Management Studio to create Alert. If you need to monitor many servers you can use the Agent to set alert for more then one servers. To do that you can go in SQL Server Management Studio in Agent, properties Advance to set the alerts.
Kevin also shows us many places where you can get tools to monitor SQL Server Database. This session was good to show the entire different thing you can do to be proactive in performance tuning.
by Daniel Leclair
09:45 - Server and Data Recovery – Internals and Troubleshooting - Bob Ward
My DBA skills not being where they should be, this seemed like a good session to get familiar with some of the problems people encounter, and how they can be diagnosed and fixed. Bob Ward of Microsoft made this session all that and more – about a half-hour more, actually, in front of a packed room for the entire presentation!
Mr. Ward led off with an overview of related Microsoft Product Support Services (PSS) topics at the conference (unfortunately most had already been presented), comments about the PSS newsgroup, tools that are available (including Read80Trace, Ostress and PSSDiag), and the hands-on lab available at the conference (more later). Then came several disclaimers: many of the diagnosis and recovery procedures he would discuss were undocumented. He termed these “Break Glass In Case of Emergency” tools, and while tested, backwards compatibility was not guaranteed and some were potentially dangerous! And, while he would end with a discussion of improvements for SQL 2005, most of the session revolved around SQL 2000.
Next, he discussed some of the various reasons why SQL Server might fail (most sounded like user- or developer-induced issues or hardware problems, rather than bugs in the server software itself). These included unauthorized or unscheduled server shutdowns, Windows exceptions, unhandled C++ exceptions, runtime library errors, forced DLL exits, and more. Most of these would be recorded in either the server error log, event log, or userdump, and he went over what to look for in these logs.
SQL Agent includes an option to auto restart if it stops unexpectedly, and if this is set, it could make debugging the problem more difficult. The upside to this is that an auto-restart will write to the log. Lastly, Windbg – the Windows debugger - may need to be attached to find out what is going on if answer is not in the logs (and he went into the way to do this).
SQL Server hangs are another issue with many causes. Many times these are blocking issues, but some cases may involve connection problems, CPU spins, or memory problems. Many of these are tough to figure out, and can vary by service pack installed. A discussion of a particular error (#17883) that seems to be related to anti-virus software was particularly noted by an attendee sitting next to me; she mentioned that it happens only on her production machines that are running Service Pack 3.
Mr. Ward mentioned that virtual memory problems may result in threads not being able to spawn. Each thread needs 512K of contiguous space to be created. A highly-fragmented hard drive, too many DLL’s being loaded, and other factors may mean that there is not enough contiguous space available.
Sometimes, SQL Server won’t start at all. This may be the result of startup parameters being invalid (i.e., someone might have tinkered with them). Startup parameters can be seen in the Enterprise Manager properties.
One of the recurring themes in the session was that the error log and userdump files very often have clues as to what is happening. For example, Mr. Ward said that PSSLooksAlive can be used to set breakpoints to trigger the dump when trying to find cluster failovers.
SQL I/O problems were the next topic. I/O problems can cause data corruption, sometimes down to individual bit level (also called bitflipping). Apparently, IDE drives are more prone to these issues than SCSI drives are, which I found interesting. Filter drivers (which intercept kernel calls) used by anti-virus and some backup software can also cause problems. Torn pages, stale read/writes, “scribblers” (data written on top of other data) and bitflipping were all discussed.
At this point, Mr. Ward asked what time was left. Oops – only fifteen minutes! He was a fast talker but seemed to shift into overdrive at this point. The session went a full half-hour later than advertised, but most of the attendees stayed until the absolute end. Somehow, he managed to cram discussions of system database recovery (make sure you shut down sqlagent before trying to restore msdb), backup and restore failures (slow backups can also be caused by low virtual memory), database offline problems (including setting SQL in emergency mode), log rebuilding (undocumented and extremely dangerous because log consistency is unknown – definitely a tool of last resort), and DBCC CheckDB errors into this 45 minutes, as well as a very small overview of what’s new in 2005.
Somewhere in all of this, he mentioned that there is a Service Pack 4 scheduled for beta in November, and talked about the lab downstairs that helps walk-thru some of the problems and how to solve them. Despite going overtime, on the whole this was a fascinating presentation; so much so that I decided to go downstairs and talk with him some more about it.
First, though, I caught up with the attendee that had mentioned the 17883 error. Candice Logue, DBA for McCain Foods in Florenceville, Canada, is responsible for 30 to 40 servers spread out between Canada and Europe. I asked her if she felt the session was helpful. “Oh, definitely,” she said. “The info is going to be really helpful. We seem to have particular trouble with the servers in Europe.” This was her first SQL conference. “I did the formal proposal to management and everything, telling them what sessions I wanted to go to and what I thought I’d get out of it. This has been great!” With two years of DBA experience behind her (“I was kind of thrown into it after the previous DBA quit suddenly.”), she said that most problems seem to be hardware related, or else caused by problem queries and deadlocks. “At least in our installation, we’ve seen few if any bugs in SQL itself.” Had she been down to the PSS lab? “Not yet, but if I don’t run out of time, I certainly will!”
SQL PASS 2004 PSS Service Center
by Daniel Leclair
After lunch, I decided to check out the lab, and chat more with Bob Ward. “Ken Henderson, who works for Microsoft as an Escalation Engineer, first approached me in 2003 about setting something up,” he said. “It lets attendees kind of get into our thought process when walking through a server problem. It was a big success, so we expanded it for this year.” I didn’t count the machines, but there looked to be twenty or more, about ¾ of which were in use. “We’ve been busy the whole conference,” he said. “Sometimes there were six or seven people waiting in line to try the labs!”
It did seem to be a big hit with the folks in the lab when I visited. In fact, one attendee said she paid the conference cost herself just be able to do the labs and check out the other PSS-related sessions!
Five different sections of the hands-on labs were available:
- Blocking and Deadlocking, including a demonstration of the PSS tools PSSDiag and RML Replay
- Performance, including practice with READ80TRACE and OSTRESS
- Memory issues and strategies to solve them
- Debugging tools that the PSS team uses
- Server and Data Recovery, including techniques to bring SQL Server or a database back online.
Interaction with the PSS team was highly encouraged, and not just for the attendees sakes. “We get a tremendous amount out of this,” Bob said. “It helps us identify information that we can get out to help people solve their problems, as well as areas we may need to develop tools to solve.”
The labs from 2003 are available online (do a search for PSS Service Center on www.microsoft.com); this year’s exercises should be available in three or four weeks.
A Last-Minute Interview
by Daniel Leclair
On the way thru security at the Orlando airport, I happened to end up behind Donald Farmer, and he was gracious enough to answer a few questions about the changes in Integration Services.
First off, I asked him about why DTS was totally rewritten. Basically, DTS in SQL 2000 was nearly the same product it was when first brought out with 7, and no longer able to do to high-speed conversions that they wanted to build into the new product. So, starting from scratch, the Integration Services engine was rebuilt. That work, plus some small acquisitions along the way, has turned it into the product it is now.
Being ignorant of these things, I asked if he thought the improvements in Integration Services would drive some of the third-party tools out of the market. He thought not, as MS already had a large percentage of the SQL integration market – on the order of 80 to 90%. In addition, MS really wasn’t trying to compete with the multiple-platform integrators that specialize in a pure bytes-per-second basis – Integration Services is much better in the bytes-per-second-per-server category.
He also said that several third-party tool providers had contacted MS in order to leverage their products off of the greatly-improved DTS engine. And, it only made sense to work with them, as the API was openly published anyway.
Regarding the issue of non-templatable tasks, he said that it would be difficult to construct the base task templates (which are what they are anyway) in such a manner as to be able to contain generic-enough SQL scripts to be useful. Yes, he said, the method he should in his session (using the Clipboard Viewer) to create cut-and-paste task “pseudo-templates” was a hack, but it worked. There were no immediate plans to make things like the task objects sub-classable objects, but that was always an option for the future.
Wrap-Up
by Daniel Leclair
Without a doubt, this was one of the most interesting conferences I have been to in a long time. What is even more impressive is that it is put on by a non-profit, user-supported organization. All of the speakers, from the teams from Microsoft on down, were enthusiastic about their topics and more than happy to chat with folks regarding, well, just about anything. My only complaint is that it was impossible to see every session I wanted to! However, many were being recorded, and will be available at a later date for purchase.
Next year’s PASS conference will be in Dallas, thankfully just up the road (in Texas driving terms) from me. Schedule permitting and the creek don’t rise, I plan on going!
Interview with Alex Payne Sr. product manager SQL Server
by Jean-René Roy
Hi Alex!
Hi, it's nice to meet you.
Alex, Bill Baker did a great Keynote this morning. He was talking about five main points of improvements for SQL Server 2005. Can you summarize these 5 points? Audio
What Bill was referring to was traditional things that relate to database management systems (DBMS). Basically what we are saying is that we understand that the dimension of data is expanding in many directions ,such as type of services, the number of users, the timeliness, the data types (we are introducing XML data type), the life cycle of the data, and new digital data which create all sorts of requirements. This is what we are addressing with SQL Server 2005. We are expanding the frontier at every release to address more of these areas. Business intelligence (BI) was the first down payment in that case.
Bill introduced us to three new terms. There is one that we were already familiar with: "Reports services." But, you guys came up with new terms for OLAP and DTS. Can you elaborate on that? Audio 1 - Audio 2
Certainly. We've really started to position Microsoft Business Intelligence (not SQL Server Business Intelligence), thinking in terms of integration, analysis, and reporting. We've been doing analysis services for some time, with the OLAP and data mining engine. We released earlier this year the SQL Server report services, and renamed DTS to "Integration Services" with regard of what we will be releasing in SQL Server 2005. Integration Services, Analysis Services and the Report Services together make the Microsoft Business Intelligence.
Bill also talked a lot about Business Intelligence in his Keynote, can you elaborate? Audio
Sure! Think about BI: it is the idea of collecting relevant information to a business, and providing new knowledge to the business. So we are talking about SQL Server BI Analysis Services, Integration Services and Report Services; this is how we will be providing BI to the user community. Because, if you do the integration first, analyzing the data will be better and also will make for better reporting. You do not have to do it in this order but doing it will make it better.
At the Keynote Bill announced that you will be giving to all attendees of PASS a copy of SQL Server 2005 Beta 2 and also the Business Intelligence resource kit? Audio
Yes! We are providing to all PASS attendees the SQL Server 2005 Beta 2 as well as the resources kit, white paper, sample code, and information to help you use the beta as well as hands-on lab on a DVD. At the same time we are making available a BI resource kit, which is specific to Business Intelligence, and it does not focus only on SQL Server 2005 but also on SQL Server 2000. It is a similar resource kit, providing white papers and sample code.
Is the Beta 2 is public as well as the BI resource kit? Audio
Beta 2 is not public but it is a wide distributed beta. If you have a MSDN subscription you can download the Beta 2 but we are not making it available from www.microsoft.com. The BI resource kit is publicly available. I am not exactly sure where and how you can get it but its something that is available to all.
This is a wraps up our interview, thank you Alex for your time!
Thanks! It was nice talking with you.
Interview with Kurt Windisch Vice President of Marketing
by Jean-René Roy
Hi Kurt, can you tell us about how and when the PASS was created?
Microsoft and Computer Associate created PASS association in 1999. Several board members ran it from all around the United State and it had several sponsors.
PASS is a non-profit organization right?
Yes that right, PASS is a non-profit organization.
This year how many attendees do you have?
This year we have close to 2000 attendees on site.
You are in a steady growth. You where saying that you double the number of attendees since when?
We double the number since we started this event in 1999.
You have in your association what you call Chapter member. Can you describe what this term mean?
We have two official designations. We have the official charter member and the affiliated chapter and that is only the level of affiliation with PASS. Chapter member represent PASS locally and it is basically users group.
How many chapter members do you have?
We have about 80 chapters around the world. I do have the exact count but it is about 80 and growing.
Do you know approximately how many country are involved with PASS?
We have chapters established in about every continent but I do not have the exact number.
What are the next events that you are planning?
We are very excited about a new conference in Munich Germany, which we just announced today. This new conference will be held in May then our fallowing annual summit will be in Grapevine Taxes at the end of September 2005.
Do you plan to do any event in India?
Has of right now the strategy is to move in Europe and certainly we are looking at other countries and continent where we can host other events.
This is it for my questions. Thank you for you time.
Thank you very much.