SqlServer-QA.net - Knowledge Sharing Network

Microsoft SQL Server 2008 R2 Administration Cookbook
Follow SQLMaster on Twitter SQL Server Knowledge Sharing Network

The latest instalment of Cumulative Update package for SQL Server 2008 R2 is available for download, before implement it on production make sure you test the installation.

Build 10.50.1809.0 (cumulative update) and the parent build of this build is 10.50.1807.0.

The list of issues are as follows with their KBA:

VSTS bug number

KB article number Description

834627

955850   (http://support.microsoft.com/kb/955850/ )

Error message when you try to use the binaries from the SQL Server System CLR Types package (SQLSysClrTypes.msi): "Unable to load DLL 'SqlServerSpatial.dll': This application has failed to start because the application configuration is incorrect"

765506

970198   (http://support.microsoft.com/kb/970198/ )

FIX: You receive an incorrect result when you run a query that uses the row_number function in SQL Server 2008 or in SQL Server 2008 R2

826729

2445812   (http://support.microsoft.com/kb/2445812/ )

FIX: A column that uses the DATETIME data type does not replicate to an Oracle subscriber by using a transactional replication in SQL Server 2008 or in SQL Server 2008 R2

799307

2515286   (http://support.microsoft.com/kb/2515286/ )

FIX: "There is no function '{urn:schemas-microsoft-com:xml-sql}:variable()" error for an XQuery query that updates the value of an XML column in SQL Server 2005, in SQL Server 2008 or in SQL Server 2008 R2

799295

2583994   (http://support.microsoft.com/kb/2583994/ )

FIX: SSIS Checkpoint restores an incorrect variable value for an Execute SQL Task item of a For Loop Container item in SSIS 2008 or in SSIS 2008 R2 if an SSIS package executes again after it fails or stops

799324

2588970   (http://support.microsoft.com/kb/2588970/ )

FIX: "Server: Msg 7359" error when you run a distributed query in SQL Server 2008 or in SQL Server 2008 R2 if a schema version is updated more than five times

776490

2590839   (http://support.microsoft.com/kb/2590839/ )

FIX: Low CPU spikes at a set interval even without user activity in SQL Server 2008 R2

799292

2591461   (http://support.microsoft.com/kb/2591461/ )

FIX: "Unexpected error from SE OLEDB interface" error when you run a full-text search query in SQL Server 2008 or in SQL Server 2008 R2

799304

2598903   (http://support.microsoft.com/kb/2598903/ )

FIX: SQL Server Agent job randomly stops when you schedule the job to run past midnight on specific days in SQL Server 2005, in SQL Server 2008 or in SQL Server 2008 R2

831275

2603910   (http://support.microsoft.com/kb/2603910/ )

FIX: Backup fails in SQL Server 2008 or in SQL Server 2008 R2 if you enable change tracking on the database

847239

2616481   (http://support.microsoft.com/kb/2616481/ )

FIX: SSRS 2008 R2 report has no Export menu in Internet Explorer 9.0 if you use the out-of-box viewer page in the SharePoint Report Viewer Web Part

834620

2618676   (http://support.microsoft.com/kb/2618676/ )

FIX: Transaction log backup is created even though the full backup is canceled in SQL Server 2008 or in SQL Server 2008 R2

834617

2618680   (http://support.microsoft.com/kb/2618680/ )

FIX: "Not registered correctly" error when you use a pull subscription and the Replication Interactive Conflict Resolver

766723

2624915   (http://support.microsoft.com/kb/2624915/ )

FIX: Part of a report is not displayed when you use the Report Viewer Web Part on a SharePoint 2010 site to view a SSRS 2008 R2 report

834636

2628126   (http://support.microsoft.com/kb/2628126/ )

FIX: "Fulltext index error during compression or decompression" error when you create a full-text index in SQL Server 2008 or in SQL Server 2008 R2 if the primary key is set to a BIGINT column

831257

2629456   (http://support.microsoft.com/kb/2629456/ )

FIX: Access violation when you insert a record into a new empty partition in SQL Server 2008 or in SQL Server 2008 R2

822377

2634571   (http://support.microsoft.com/kb/2634571/ )

FIX: Slow performance when you run the CHECKDB WITH PHYSICAL_ONLY command on a large database in SQL Server 2008 R2

824538

2636425   (http://support.microsoft.com/kb/2636425/ )

FIX: Incorrect result when you concurrently update multiple Excel 2010 sheets that use PowerPivot for Excel 2010 in SQL Server 2008 R2

834639

2638448   (http://support.microsoft.com/kb/2638448/ )

FIX: Access violation when a query is compiled or recompiled in SQL Server 2008 or in SQL Server 2008 R2

836361

2644260   (http://support.microsoft.com/kb/2644260/ )

FIX: A main report is re-rendered when you click a link to view a drillthrough report in SSRS 2008 R2

846406

2649359   (http://support.microsoft.com/kb/2649359/ )

FIX: An access violation occurs in the "sqlservr!CSbMsgDispatcher::CSbReceivedDialog::AppendMsg" class in SQL Server 2008 R2

831388

2653893   (http://support.microsoft.com/kb/2653893/ )

FIX: It takes a long time to restore a database in SQL Server 2008 R2

I hope this CU11 will fix the issue in relation to my previous blog post Linked Server reporte schema changes issue.

To download and further details refer to the KBA2633145  Cumulative update package 11 for SQL Server 2008 R2.

Another instalment of Cumulative Update package for SQL Server 2008 SP3 is available now, which is CU2 and the build number is known as 10.00.5768.00.

As usual this CU2 for SQL2008 SP3 contains hotfixes for issues that were fixed after the release of SQL Server 2008 Service Pack 3 (SP3).

KBA2633143 list the following article numbers about more information on the fixes:

VSTS bug number KB article number Description
794387 2522893   (http://support.microsoft.com/kb/2522893/ ) FIX: A backup operation on a SQL Server 2008 or SQL Server 2008 R2 database fails if you enable change tracking on this database
816523 2536225   (http://support.microsoft.com/kb/2536225/ ) FIX: CLR stored procedure returns NULL after it is recompiled in SQL Server 2008 R2
831263

How to obtain this cumulative update package

loadTOCNode(2, 'moreinformation'); A supported cumulative update package is now available from Microsoft. However, it is intended to correct only the problems that are described in this article. Apply it only to systems that are experiencing these specific problems. This cumulative update package may receive additional testing. Therefore, if you are not severely affected by any of these problems, we recommend that you wait for the next SQL Server 2008 service pack that contains the hotfixes in this cumulative update package.

If the cumulative update is available for download, there is a "Hotfix download available" section at the top of this Knowledge Base article. If this section does not appear, contact Microsoft Customer Service and Support to obtain the cumulative update package.

Note If additional issues occur or any troubleshooting is required, you might have to create a separate service request. The usual support costs will apply to additional support questions and issues that do not qualify for this specific cumulative update package. For a complete list of Microsoft Customer Service and Support telephone numbers or to create a separate service request, visit the following Microsoft website:
http://support.microsoft.com/contactus/?ws=support link.

 

___________________________________________________________________________________________________________________________________________________ 

The next instalment of Cumulative Update package for SQL Server 2008 Service Pack 2 is availabel for download, the build number for this CU7 will be 10.00.4323.

Further the cumulative update package includes updates for all the component packages. However, a cumulative update package updates only those components that are installed on a system. You cannot apply this CU7 straight away, the pre-requisite is SQL 2008 SP2. Here is the big list of bugs and issues fixed with this CU7 for SQL2008 SP2:

VSTS bug number KB article number Description
799306 2515286   (http://support.microsoft.com/kb/2515286/ ) FIX: "There is no function '{urn:schemas-microsoft-com:xml-sql}:variable()" error for an XQuery query that updates the value of an XML column in SQL Server 2005, in SQL Server 2008 or in SQL Server 2008 R2
806150 2531172   (http://support.microsoft.com/kb/2531172/ ) FIX: "Unable to obtain the current member" error when you run an MDX query in SQL Server 2008 R2 Analysis Services
799294 2583994   (http://support.microsoft.com/kb/2583994/ ) FIX: SSIS Checkpoint restores an incorrect variable value for an Execute SQL Task item of a For Loop Container item in SSIS 2008 if an SSIS package executes again after it fails or stops
776912 2588506   (http://support.microsoft.com/kb/2588506/ ) FIX: SQLGetDiagRec function does not return errors in SQL Server 2008 R2 if more than 2100 query parameters are sent
799291 2591461   (http://support.microsoft.com/kb/2591461/ ) FIX: "Unexpected error from SE OLEDB interface" error when you run a full-text search query in SQL Server 2008
799303 2598903   (http://support.microsoft.com/kb/2598903/ ) FIX: SQL Server Agent job randomly stops when you schedule the job to run past midnight on specific days in SQL Server 2005 or in SQL Server 2008
788324 2603910   (http://support.microsoft.com/kb/2603910/ ) FIX: Backup fails in SQL Server 2008 or in SQL Server 2008 R2 if you enable change tracking on the database
801804 2618676   (http://support.microsoft.com/kb/2618676/ ) FIX: Transaction log backup is created even though no valid full backup exists in SQL Server 2008
801802 2618680   (http://support.microsoft.com/kb/2618680/ ) FIX: "Not registered correctly" error when you use a pull subscription and the Replication Interactive Conflict Resolver
804390 2619077   (http://support.microsoft.com/kb/2619077/ ) FIX: Access violation when a request reads a missing index in SQL Server 2008
801134 2625989   (http://support.microsoft.com/kb/2625989/ ) "Cannot download the information you requested" error in SSRS 2008 when you click a drillthrough report link
814972 2628126   (http://support.microsoft.com/kb/2628126/ ) FIX: "Fulltext index error during compression or decompression" error when you create a full-text index in SQL Server 2008 if the primary key is set to a BIGINT column
823528 2635540   (http://support.microsoft.com/kb/2635540/ ) FIX: Error message when you use a catalog database whose name contains some special characters in SSRS 2008
823667 2635827   (http://support.microsoft.com/kb/2635827/ ) FIX: Access violation when you run a DBCC CHECKDB command against a database that contains a table that has a spatial index in SQL Server 2008
817085 2638448   (http://support.microsoft.com/kb/2638448/ ) FIX: Access violation when a query is compiled in SQL Server 2008
819357 2638932   (http://support.microsoft.com/kb/2638932/ ) FIX: Error when you run the ProcessUpdate command against a cube that has partitions that use aggregation designs in SSAS 2008
823699 2640110   (http://support.microsoft.com/kb/2640110/ ) FIX: An sp_execute_policy error if both SQL Server 2008 R2 and SQL Server 2008 are installed
806841 2643872   (http://support.microsoft.com/kb/2643872/ ) FIX: "HRESULT 0xE06D7363" error when a client application uses Microsoft.SqlServer.Types.dll component on a computer that has SQL Server 2008 SP2 installed
Also the list of CU packages for your information:

Further I also recommend to know about new naming schema for these software update packages from KBA822499 and information about Incremental Servicing Model from this KBA935897 link. Don't forget to test the CU package before applying it on production.

It was a great opportunity to meet and greet the SQL professionals in Cardiff on 05th October 2011 as a part of SQL Relay Usergroup metings across UK.

Thanks to Adam Morton for giving me chance to present, since last year and half we have been trying to get connected in Usergroup presentation. I must admit its a good attendance and presence of questions was good which keeps up the enthusiasm during the presentations.

I presented two topics that surrounds on Best Practices for SQL Server users: SQL Server Upgrade, take help of tools and best practices & SQL Server Integration Services Best practices implementation - Performance and Monitoring.

You can download the session:SQLRelay_UpgradeBPA.pps here.

You can download the session: SQLRelay_SSIS BPA.pps here.

 

(Thanks Martin for correction on city name)

Well, its time now again for all DBAs and System Administrators out there to do some real-world testing on their SQL Server 2008 instance platform, service pack 3 for SQL Server 2008 is released now. If you are already testing the CTP version then its not a big issue to perform the test and upgrade the existing instances of 2008 version.

Once you apply the SP3 for SQL Server 2008 the version will be 10.00.5500.00 and also the download page clearly states the key enhancements out this SP3 release:

  • Enhanced upgrade experience from previous versions of SQL Server to SQL Server 2008 SP3. In addition, we have increased the performance & reliability of the setup experience.
  • In SQL Server Integration Services logs will now show the total number of rows sent in Data Flows.
  • Enhanced warning messages when creating the maintenance plan if the Shrink Database option is enabled.
  • Resolving database issue with transparent data encryption enabled and making it available even if certificate is dropped.
  • Optimized query outcomes when indexed Spatial Data Type column is referenced by DTA (Database Tuning Advisor).
  • Superior user experience with Sequence Functions (e.g Row_Numbers()) in a Parallel execution plan.

However I would recommend to go through the detailed list of new features and improvements that are included in SQL Server 2008 SP3, review the Release Notes. documentation link. Further this SP3 for SQL Server 2008 contains the cumulative updates of SQL Server 2008 SP2 cumulative update package 1 to 4, and fixes to issues that have been reported through our customer feedback platforms. These include supportability enhancements and issues that have been reported through Windows Error Reporting.

To download the respective platform service pack file go to:SQL Server 2008 SP3 and for Express version go to SQL Server 2008 SP3 Express link.

This is my first book review in this year, though it is a good experience in writing my first book on SQL Server technologies and here it goes:

Book Title: Microsoft SQL Server 2008 R2 Master Data Services

Publishers: Packt Publishers

Master Data Services (MDS) is one of the new features that are introduced in SQL Server 2008 R2 version, and Master Data Management (MDM) concept which is also one of the new learning for me when I started working on data platform related projects.

Whenever you start reading a technical content book the first task is to check the table of contents and check what you will learn from the book. SQL Server 2008 R2 Master Data Services book suited for the users, professionals, business and systems analyst or DBA who wants to manage and maintain your business master data and improves data quality. This book is a comprehensive guide to MDS to facilitate end-to-end approach showing how to implement MDM on your data platform. The pragmatic approach and explanation from the authors emphasises the need of MDM which is an ideal methodology for analysts and developers.

The book helps the professionals who are looking to understand the MDM concepts to develop the Master Data Services feature. Not only have the technical aspects around MDS, the book covered business rules and workflows that can be created within MDS that are dependent on various conditions that can help to make a flexible MDS solution on your data platform.

The chapters are lined up systematically that introduces the need of Master Data Management (MDM) with a good example on Analytical MDM and Operational MDM. As a DBA & Data Architect there are certain chapters that I recommend, second chapter that overviews MDS architecture, sixth chapter importing data into MDS which highlights process and population of data, eighth chapter extracting data from MDS in delivering master data and ninth chapter that overviews application programming interface. No matter the level of knowledge that you may have about Master Data Management, this book delves into the concepts, development and implementation of Master-Data solution in your organisation using Microsoft SQL Server technologies.

The authors are experienced professionals from Adatis, a UK based specializing in Microsoft Business Intelligence stack. The write up in the book shades author’s experience, Jeremy Kashel, an experienced Business Intelligence professional has written majority of the chapters. Also Tim Kent, a QA specialist and Martyn Bullerwell, a project delivery specialist has co-authored this book.

Finally if you are looking for practical ways to learning about Master Data Management concepts and SQL Server Master Data Services then this book is a good resource for you. Also the experienced users this is a good resource for your book shelf for quick reference in delivering Business Intelligence based Master Data Services solutions.

To obtain the paperback and eBook version review and purchase from Packt_Publishers for other great resource of books on SQL Server technologies, also from Amazon (US & UK) websites.

Packt Publishers are running an offer campaign on Microsoft books in specific to SQL Server, SilverLight and SharePoint for the month of September 2011. How magical is this key S technologies book offers!

From 01st September to 10th September we have an offer for SQL Server technologies books.- 10 days of SQL Server.

From 11th September to 20th September we have an offer on SharePoint technologies books - 10 days of SharePoint

From 21st September to 30th September we have an offer on SilverLight technologies books - 10 days of Silverlight.

Whats the catch -  20% off print books & 30% off eBooks!

For more information and details on this offer visit Packt's September Offers on Microsoft books page. 

 

There is no doubt that Microsoft is keeping the DBAs busy with the frequent releases of Cumulative Update packages and CTP releases on existing (2008, 2008 R2 and Denali) versions!

Now here is the news about SQL Server 2008 Service Pack 3 CTP release from SQL Server Release Services team, this means there is no support offered from CSS and only ... read more...

I believe by this time most of you might have registered/noted your diaries with the dates about upcoming SQLBits 9 conference.

If you haven't registered yet then, hurry-up - Registration is Now Open, like the previous events this is also a 3 day based conference.  The format will be the now familiar 3 days of top SQL Server content given by SQL Server Experts from around the world, including Microsoft Certified Architects (MCA), Microsoft Certified Masters (MCM) and Microsoft Most Valued Professionals (MVP).

The main advantage and feedback I hear from the previous attendees that for this conference you need not fly outside of UK, easily reachable from many parts of the UK. Having a registration on SQLBits site will get you advantage of browsing the valuable SQL Server based content from the previous events to get a feel for the range or sessions, they are freely available to download as well.

I have missed to present/attend the last two SQLBits conferences due to pre-occupied appointments and this time I'm presenting a training day session titled:

High Availability and Disaster Recovery for the Novice DBA  

Description: For the day we will go through the skills and techniques required for Developers (users) to become a DBA to manage number of areas in data platform. As a DBA you should develop a strong game plan to cover the key aspects of availability and performance. In this session we will go through the end-to-end concepts of DBA learning for developers and enthusiastic users to become a DBA. The tasks include the techniques online that can be used to automate and streamline the data platform management.

With a few mouse clicks you can register for this session - Click To Register

See you there for another mind-boggling learning days!

How to change the default path of .cache files of a data collector after the Management Data Warehouse (MDW has been setup?

This was the question asked by one of the DBAs in a client's place, instantly I enquired that were there any folder specified while setting up the MDW and obvious answer was no as there were left default. This means all the .CACHE files are stored under %C\TEMP directory which may post out of disk space problem on the server where the MDW is setup to collect.

Going back to basics the data collector uses the msdb database extensively for storing configuration information, run-time information, auditing, and collection history information. So it is essential to resize msdb system database with a proper value (atleast 500MB as per my practice) and it must be present on the instance of SQL Server that runs the data collector. In addition to that the relational engine takes care of data collection activities and all the configuration-related tables and views include information about collection sets, collector types, and collection items are given with specific SCHEMA names to identify. The tables and views also contain global data collector parameters, such as the location of the management data warehouse. Database roles for the data collector and management data warehouse are also stored in msdb system database.

As the repository is managed in system database it is essential to know about data collector run-time component which is hosted as a stand-alone process called Dcexec.exe on the server where MDW is setup. It is an important service and component that manages data collection based on the definitions provided in a collection set, and can accept any collection set as input. The data collector run-time component is responsible for loading and executing the SSIS packages that are part of a collection set, you may see the cached and non-chached mode options while setting up the MDW on that instance.

All the collection set options and upload modes are managed by SQL Server Agent service using SSIS packages and the two modes are (as per BOL):

  • Non-cached mode. Data collection and upload are on the same schedule. The packages start, collect and upload data at their configured frequency, and run until they are finished. After the packages finish, they are unloaded from memory.
  • Cached mode. Data collection and upload are on different schedules. The packages collect and cache data until they receive a signal to exit from a loop control-flow task. This ensures that the data flow can be executed repeatedly, which enables continuous data collection.
     

As referred above the collection mode will use the temporary storage area that is used extensively by the data collection services to store property values, collection sets, calculations and any values that are exposed by collection sets. This is considered as a raw data that is obtained by the collection process and used as aggregated data for the upload methods. During the setup of MDW you will be presented to change the CACHE folder and if no value specified then defualt TEMP directory on the server will be used. Going further it is essential and best practices to store these .CACHE files on a different drive where data or log files are not located, I would suggest to use the same folder where TEMPDB data file is located.

Coming to the subject line here is the process to modify the folder once MDW is up and running:

  1. Run SQL Server Management Studio tool, and then connect to the instance of SQL Server 2008 R2 in which the error occurs.
  2. Expand the Management folder, right-click Data Collection, and then click Properties.
  3. If a directory is specified as a Cache directory directory, the directory that is specified is the location of the Data Collector cache files.

    If a directory is not specified as a Cache directory directory, the default cache directory is the local temporary directory of the account that runs the collection set.
  4. This account may be the SQL Server Agent service account. For example, the collection set is run by an account that is named “SQLMDW”. In this example, the temporary directory of this account is located in a path that resembles the following:  C:\Users\SQLMDW\AppData\Local\Temp

Further I would encourage to go through the following chapters from my book titled -Microsoft SQL Server 2008 R2 Administration cookbook:

 

This is something big in my life to announce, it gives immensive pleasure and happiness to share about my first book (hard paper) and eBook release, titled : Microsoft SQL Server 2008 R2 Administration Cookbook is released and out now. share my experience and task based real-world best practices in a cookbook style.

My thanks to the technical reviewers: Vinod Kumar from Microsoft India, Ravikanth Chaganti - SharePoint MVP and Venkatesan Prabu - SQL Server MVP for their efforts to shape up the book with full-blown technical content. Also special thanks to Hemant Goswami - SQL Server MVP [Author - Microsoft SQL Server 2008 High Availability book]. Not to mention about the Technical Editors and Development Editors from Pactk Publishing who has guided me all the way through in this journey, glad to work with these bunch of professionals.

What you will learn from this book :

  • Discover best practice solutions for upgrading to SQL Server 2008 R2
  • Employ the new enhancements in SQL Server 2008 R2
  • Build a strategic multi-server management
  • Automate administration tasks
  • Implement the inter-operability of SQL Server Analysis Services and SQL Server Reporting Services with SharePoint 2010 services
  • Manage and administer core SQL Server 2008 R2 Business Intelligence Services
  • Implement and manage essential Availability and Programmability enhancements
  • Implement best practices and build troubleshooting techniques on a multi-instance and multi-database environment
  • Provides Advanced Administration techniques for SQL Server 2008 R2 as a book or eBook
  • Covers the essential Manageability, Programmability, and Security features
  • Emphasizes important High Availability features and implementation
  • Explains how to maintain and manage the SQL Server data platform effectively

Detailed Information

Language : English
Paperback : 468 pages
Release Date : May 2011
ISBN : 1849681449
ISBN 13 : 978-1-84968-144-5
Author(s) :
Satya Shyam K Jayanty

Get In more detail with Table of contents and here is the Sample chapter for download, have a look at PacktLib.


Buy 'Microsoft SQL Server 2008 R2 Administration Cookbook' with 'Microsoft SQL Server 2008 High Availability' and get 50% off both the eBooks. Just add both the eBooks to your shopping cart and enter 'msqls8reb' in the 'Enter Promotion Code' field. Click 'Add Promoitonal Code' and the discount will be applied.

More Posts Next page »