Monday, December 03, 2007

In Part2 we discussed WORKLOAD GROUP in detail and traverse through possible number of constants we can use. Using the knowledge we will create workload with more then one resource and see how in conjunction we can limit the resource usage.

Let's start creating a workload using more then one resource

CREATE WORKLOAD GROUP grpDev
WITH (
      GROUP_MAX_REQUESTS = 50,
         IMPORTANCE = MEDIUM,
            REQUEST_MAX_MEMORY_GRANT_PERCENT = 30,
               MAX_DOP = 1
   )

Next create the function so that whenever the RG runs it will call this function to retrieve our group name.

CREATE FUNCTION ResGovMgr () RETURNS SYSNAME
WITH SCHEMABINDING
AS
BEGIN
                DECLARE @grpName AS SYSNAME
                                IF (APP_NAME = 'MANAGEMENT STUDIO’)
                                                SET grpName = 'grpDeveloper'
                RETURN grpDeveloper
END

Now let the RG aware of this function

ALTER RESOURCE GOVERNOR WITH (CLASSIFIER_FUNCTION = ResGovMgr)

Don't forget to reconfigure the RG;

ALTER RESOURCE GOVERNOR RECONFIGURE

Will be back with more on Resource Governor.

Bandagi!

12/3/2007 9:33:24 AM UTC  #    Disclaimer  |  Comments [0]  | 
 Thursday, November 29, 2007

To understand how the Resource Governor works let’s try to work with this feature

To Resource Governor everything is a workload, and we are going to create a group on to which we would like to limit a resource, so this group would become a workload group for Resource Governor – does it make sense?

CREATE WORKLOAD GROUP grpDeveloper

Now let’s create a function which will return our workload group name every time when Resource Governor runs and limits the resource

CREATE FUNCTION ResGovMgr () RETURNS SYSNAME

WITH SCHEMABINDING

AS

BEGIN

                DECLARE @grpName AS SYSNAME

                                IF (APP_NAME = 'MANAGEMENT STUDIO’)

                                                SET grpName = 'grpDeveloper'

                RETURN grpDeveloper

END

Now let’s make the resource governor aware of our function

ALTER RESOURCE GOVERNOR WITH (CLASSIFIER_FUNCTION = dbo.ResGovMgr)

In order to limit the resource for our workload group we have to apply the limit changes to the workload group earlier created. Here the resource is CPU and the limit value is 30%

ALTER WORKLOAD GROUP grpDeveloper

WITH (MAX_CPU_PERCENT = 30)

And finally we make the in-memory resource governor aware of our changes

ALTER RESOURCE GOVERNOR RECONFIGURE

 Now once you configure your workload and add to the resource governor, your work is done – let the Resource Governor handles the resource. In case if the workload group tries to utilize more the percentage allocated the Resource Governor either trigger some event or stop the victim process.

Bandagi!

11/29/2007 2:01:09 PM UTC  #    Disclaimer  |  Comments [0]  | 
 Wednesday, November 28, 2007

It was a nightmare when DBA has to keep an eye on resource utilization, thanks to Resource Governor which provides control of resources on finger tips.

Resource Governor or RG is SQL Server 2008's new feature through which one can easily manage system resources like CPU, I/O. With RG you can define resource limits, priorities and enable consistent performance.

By executing this statement you can limit the percentage usage CPU utilization for certain SQL Server group to 50.

ALTER WORKLOAD GROUP grpDev WITH ( MAX_CPU_PERCENT = 50 )

You can also try and see how easy it is to manage the system resources, but only if you have the latest CTP.

You can only execute this command on the latest CTP, if you've not downloaded yet then do so.

Bandagi!

11/28/2007 9:22:31 PM UTC  #    Disclaimer  |  Comments [0]  | 
 Tuesday, November 20, 2007

A long awaited feature after the July CTP, Transparent Data Encryption or TDE is one of the features which makes the developer life easier. Well DTE was almost available in the version 2005 of SQL Server at the cell level but here in 2008 its available on database level - it doesn't mean that we can't use on cell level but its an added functionality.

In the past developer has to take care by making the application encryption aware and as the database application is I/O intensive the encryption/decrytpion degrade the performance. Now with SQL Server 2008 Katmai - developers no need to make the application encryption aware, with the Transparent Data Encryption feature the developer can easily control the encryption without letting the application encryption aware, whenever the request comes from database application, SQL Server 2008 Katmai decrypts the database and when not needed encrypts again.

To check whether your CTP possess this feature simply execute the DDL command

ALTER DATABASE [database_name] SET ENCRYPTION ON

and you will come to know whether your CTP is TDE aware or not.

While the TDE can be controlled using the above command their is more to be use to encrypt or decrypt, Database Encryption Key or DEK.

DEK is always stored in database boot record for instant recovery and can be controlled using CREATE | ALTER | DROP command.

Download the new CTP and enjoy this new feature.

Bandagi!

11/20/2007 10:00:40 AM UTC  #    Disclaimer  |  Comments [0]  | 
 Monday, November 19, 2007

"Be the first to know"

Many of you have anxiously waited for this day. The SQL Server Connect Team in conjunction with the SQL Server Product Team are proud to announce the release of the November CTP of SQL Server 2008 Katmai.

Here is a direct link http://www.microsoft.com/downloads/details.aspx?FamilyId=3BF4C5CA-B905-4EBC-8901-1D4C1D1DA884&displaylang=en to the download on the Download Center. Yes, the installers and media ISOs available. Along with x86, x64, and IA64 releases, along with these Express version is also available.

At least i cant wait for few more minutes, i am downloading my copy you should also do the same :-)

Bandagi!

 

11/19/2007 6:50:34 PM UTC  #    Disclaimer  |  Comments [0]  | 
 Saturday, November 17, 2007

The November Community Technology Preview (CTP) for Microsoft SQL Server 2008 is available for customer download this month. It features a significant amount of new functionality, including compatibility with Windows Vista and Windows Server 2008 as well as new features such as Resource Governor, Backup Compression and Transparent Data Encryption. This CTP also includes new business intelligence enhancements such as Design Alerts, Block Computation, Enhanced Report Designer with new visualizations and integration with the 2007 Microsoft Office system.

This also is the first CTP to help customers store and consume any type of data, including new FileStream data types for unstructured documents, and to provide spatial data support for location intelligence technologies. Separately, companies such as Barrodale Computing Services (BCS) Ltd., Environmental Systems Research Institute Inc., I.S. Consulting Inc., Manifold and SpatialPoint announced their intention to ship applications that take advantage of spatial data support in SQL Server 2008.

Bandagi!

11/17/2007 4:16:52 PM UTC  #    Disclaimer  |  Comments [0]  | 
 Sunday, November 11, 2007

Tech Days 2007 is on your way - run for your seat or else you loose!

Register yourself here http://www.techdaysgulf.com/

 

 

11/11/2007 1:14:24 PM UTC  #    Disclaimer  |  Comments [0]  | 
 Saturday, November 10, 2007

The TechNet and MSDN Roadshow proudly presents the “Gaining Insight Tour 2007”.

This tour, coming to Kuwait, Qatar, Bahrain and Oman, is packed with live demonstrations and technical content on upcoming and much anticipated solutions from Microsoft.
 
Get a sneak peek into technologies that include Windows Server 2008, SQL Server 2008, Visual Studio 2008, .Net, Silverlight, Virtualization and more. You will also be among the
first to see us unveil the new Unified Communications technologies from Microsoft – a solution that will revolutionize the way people communicate and collaborate in the workplace.
 
If you’re an IT Professional or a Developer looking to gain insight and an edge over others, then you’ve got no excuse to miss out on this event! You may even walk away as the
lucky winner of the new X-box 360 Elite!
 
Register Now.

Where and when

Kuwait City         Movenpick        Nov 14th
Muscat              Shangri La        Nov 17th
Manama             Sheraton          Nov 19th
Doha                 Intercon           Dec 9th


11/10/2007 2:32:17 PM UTC  #    Disclaimer  |  Comments [0]  |