[EN] How to DO IT? Using MAX MEMORY option in SQL Server {updated}

It’s nothing new, generally. You can find a lot of great posts abour MAX MEMORY option for SQL Server Environment from many experts, for example from my MVP’s Family Members: Glenn Berry {BLOG|TWITTER} and Jorge Segarra {BLOG|TWITTER}. You can albo find a lot of information about it on MSDN, TechNet and other media, such as books. But many times, many sql server administrators forgotting about this option. Option which should be a part of Your personal DBA’s list called: MUST DO IT FIRST.

I’m writing this post, because it could help You, and because it’s very helpfull option for me. OK not only helpfull, this option saved my speakers live few times. I have bad luck futh my standard laptop, The Old one have been damaged few times, The New One is not ready yet. And – with Murphy’s Law – as always crashed happened day before my session. Fortunatelly I’ve second one. Acer Aspire One. It’s small netbook, quadcore, 64-bits OS, and 320 GB HNN (unfortunatelly not SSD) and UNFORTUNATELLY with 2GB RAM only. Based on Glenn Berry’s post (hope he will not kill me of borrowing it) look for  this table:

image

Pict.1 | Max Memory Settings for 64-bit SQL Server 2008 Instances

imageI’ve five instances of SQL Server: 2005 Express, 2008 Express and Enterprise, 2008 R2 Express and 2012 Enterprise. I used they on my sessions and learning and sometimes training.  Memory on my laptop is a big problem. Especially that by default SQL Server Instance sizing memory to: 2147483647 MB (it’s about 2TB). But when my instances starting run, starting consuming memory too. As much as possible. Time of execution the query on this netbook is note Grand Goal, but execution is. So, I must limited each of my instances, for working on the same time and not kill my OS, and of course the instances.

What I can do? Setting Up MAX MEMORY option (LINK for MSDN). But remember about minimum limitations on right side. So what is the right way? We can use SQL Server Management Studio (SSMS) in two ways: via graphical user interface and clicking or via T-SQL options. For this case I preffer the second way. Lets do it quick:

Captura_SP_MAXMEMORY_01

Pict.2 | These are full T-SQL statement for configuration MX MEMORY option, but we can go step by step.

Captura_SP_MAXMEMORY_02

Pict. 3 | In phase one – first we must enabling advanced option (switching from “0” to “1”)

Captura_SP_MAXMEMORY_03

Pict. 4 | In phase two – secondly we must send RECONFIGURE statement to database engineCaptura_SP_MAXMEMORY_04

Pict. 5 | In phase two – first we shoould choos right value of memory (in MB). We received confirmation in Message Area.

Captura_SP_MAXMEMORY_05

Pict. 6 | In phase two – second part is the same, we must use RECONFIGURE option.

Captura_SP_MAXMEMORY_06

Pict.7 | Finally we can use it together with only one execution

As You see my MAX MEMORY option has been setting up to 196 MB for each instances. It’s not much, but all instances working pararelly, OS is working, internet and PowerPoint too. I’m ready for small show. There is no official information on MSDN for SQL Server 2012 MAX MEMORY, but they are for SQL Server 2005 and SQL Server 2008:

image

If You need more informationa about it, just go to very interesting, detailed posts:

 

UPDATE {January 2014}: if You preffer clickology than t-sql, You can use server properties like below:

Capturaupd1

Pict.8 | Right-Click on SQL Server and Properties.

Capturaupd2

Pict.9 | On first properties page we can look how much physical memory we have: here 5119 MB (available for SQL Server)

Capturaupd3

Pict.10 | On second page (if we never changed MAXMEMORY option) we will see default memoty: MIN: 128 MB and MAX 2147483647 MB

Capturaupd4

Pict.11 | Last step is changing memory for appropriate value: in this case MIN 256 MB and MAX 4096 MB

[EN] SQL Server 2008 R2 Service Pack 2 Cumulative Update 4 is available

LOGO__SQLServer2008R2SP2Xmass gift from Microsoft for DBA this year has been delivered in three parts. Third and last part is for SQL Server 2008 R2 with Service Pack 2.

In this Cumulative Update 4 [version build: 10.50.4270.0] Microsoft resolved a lot of requested issues which can be applies to:

  • Microsoft SQL Server 2008 R2 Analysis Services
  • Microsoft SQL Server 2008 R2 Datacenter
  • Microsoft SQL Server 2008 R2 Developer
  • Microsoft SQL Server 2008 R2 Enterprise
  • Microsoft SQL Server 2008 R2 Express
  • Microsoft SQL Server 2008 R2 Integration Services
  • Microsoft SQL Server 2008 R2 Reporting Services
  • Microsoft SQL Server 2008 R2 Standard
  • Microsoft SQL Server 2008 R2 Web
  • Microsoft SQL Server 2008 R2 Workgroup
  • Microsoft SQL Server 2008 R2 Express with Advanced Services
  • Microsoft SQL Server 2008 R2 Standard Edition for Small Business

Here is the big list of fixed bugs (with many connections to SQL Server 2012):

VSTS BUG: 1043439 | 2731068
FIX: "An unexpected error occurred" when you query some calculation data of an SSAS tabular model by using SQL Server 2008 R2 PowerPivot for Excel 2010 or SQL Server 2008 R2 PowerPivot for SharePoint 2010

VSTS BUG: 1049062 | 2755192
FIX: SSMS freezes when you perform management operations that relate to roles to an SSRS 2008 R2 database

VSTS BUG: 1061516 | 2715512
FIX: Error messages when you use dtexec to execute packages in SSIS 2008, in SSIS 2012 or in SSIS 2008 R2

VSTS BUG: 1072675 | 2765785
FIX: Access violation when you execute an SSIS 2008 R2 package that contains a Sort transformation on a computer that has multiple CPUs

VSTS BUG: 1076490 | 2770630
FIX: Error message when you run UPDATE CUBE and SELECT MDX statements at the same time in SSAS 2008 R2 

VSTS BUG: 1077962 | 2770258
FIX: You receive an incorrect result when you run a query against a partitioned table in SQL Server 2008 R2

VSTS BUG: 1079200 | 2770635
FIX: Incorrect result when you run an MDX query against an SSAS 2008 R2 database that has multiple data sources

VSTS BUG: 1080450 | 2708012
FIX: Event ID 833 if I/O write operation occurs during a VSS snapshot backup in SQL Server 2008 R2

VSTS BUG: 1080453 | 2744760
FIX: Empty or incomplete tree view is shown in the Process Progress window when you process an SSAS object in SSMS or BIDS in SQL Server 2008 R2

VSTS BUG: 1080456 | 2761600
FIX: Text is truncated in a Tablix control in an report of SSRS 2008 R2 or SQL Server 2012 after you export the report as a PDF or image file

VSTS BUG: 1080459 | 2749560
FIX: "SQL Server Assertion: File: <bcmdsink.cpp>, line=<n> Failed Assertion = ‘src’" error message when you update BLOB data in SQL Server 2008 R2 or in SQL Server 2012 

VSTS BUG: 1080462 | 2749913
FIX: Unhandled exception when you use a marked transaction that spans multiple databases in SQL Server 2008 R2 or in SQL Server 2012 

VSTS BUG: 1080465 | 2754301
FIX: Large queries that modify data run slower than expected when many locks accumulate in a SQL Server 2008 R2 or in SQL Server 2012 

VSTS BUG: 1080468 | 2754800
FIX: Error 17066 when you replicate a table article that contains an ntext data type column in SQL Server 2008 R2 or in SQL Server 2012

VSTS BUG: 1080471 | 2757344
FIX: Business Intelligence Development Studio (BIDS) crashes when you select a WSDL file in SQL Server 2008 R2

VSTS BUG: 1080474 | 2757356
FIX: "The component is waiting for a notification" error message and SSIS 2012 or SSIS 2008 R2 package stops responding when you use Microsoft Connector 1.1 for SAP BI to extract data from SAP BW 

VSTS BUG: 1090691 | 2776344
FIX: Deadlock when you execute a stored procedure to alter a temporary table if lock partitioning is enabled in SQL Server 2008 R2

VSTS BUG: 1101721 | 2778479
FIX: 17066 and 3624 errors when you run the sp_refreshview stored procedure in a large batch that performs binary large object-related operations in SQL Server 2008 R2

VSTS BUG: 1113309 | 2780146
FIX: "Incorrect syntax near ‘IDENTITY_VALUE’" error when you try to decrypt data that is migrated from another database in SQL Server 2008 R2

VSTS BUG: 1121899 | 2781008
FIX: "User cannot be found" error message in SSRS 2008 R2 after the logon name is changed in Active Directory

VSTS BUG: 1122011 | 2777963
FIX: Installation fails when you try to install a cumulative update to an instance of SQL Server 2008 R2

VSTS BUG: 1125937 | 2787595
FIX: An error occurs when you load a thesaurus file in SQL Server 2008 R2 that uses DBCS collation 

VSTS BUG: 1131076 | 819546
FIX: SQL Server support for mounted volumes

VSTS BUG: 1131695 | 2785079
FIX: A "non-yielding" error occurs on a server for Service Broker Message Forwarding in SQL Server 2008 R2 

VSTS BUG: 1132143 | 2784686
FIX: An access violation occurs when you query the missing indexes DMVs in SQL Server 2008 R2

VSTS BUG: 1133922 | 2696161
FIX: Error message when you try to view a report in SSRS 2012, in SSRS 2008 R2 or in SSRS 2008: "Different query parameters resulted in a same hash" 

VSTS BUG: 1133927 | 2756471
FIX: Incorrect result is returned when you query an indexed view by using the NOEXPAND hint in SQL Server 2008, in SQL Server 2008 R2 or in SQL Server 2012 

VSTS BUG: 1133935 | 2770891
FIX: "Non-yielding Scheduler" error message when you insert a record that contains large object (LOB) data into a snapshot database in SQL Server 2008 or in SQL Server 2008 R2 

VSTS BUG: 1133939 | 2761934
FIX: Support for the varchar(max), nvarchar(max), and varbinary(max) data types is added in most OLE DB providers in SQL Server 2012 or in SQL Server 2008 or in SQL Server 2008 R2 

VSTS BUG: 1133943 | 2509302
FIX: A database transaction log continues to grow after you upgrade to SQL Server 2012, SQL Server 2008 R2 SP1, SQL Server 2008 SP2 or SQL Server 2008 SP3 

VSTS BUG: 1133947 | 2770837
FIX: "Windows NT user or group ‘Domain_name\User_name’ not found" error message when you add a login to a case-sensitive SQL Server 2008 instance or SQL Server 2008 R2 instance 

VSTS BUG: 1133952 | 2778088
FIX: Memory leak if you enable the AUTO_UPDATE_STATISTICS_ASYNC statistics option in SQL Server 2008, in SQL Server 2012 or in SQL Server 2008 R2

VSTS BUG: 1140412 | 2788362
FIX: Error 28921 and error 18054 when you start an instance of SQL Server 2008 R2 that is upgraded from SQL Server 7.0

VSTS BUG: 1113033
FIX: An access violation may occur in SQL Server when a thread that is waiting on NETWORKIO is chosen as a deadlock error.

Microsoft has recommended to test all hotfixes before updating in production environment. More information about this release You can find with the article: Cumulative Update 4

You may have to restart the computer after you apply this cumulative update.

If You want to go directly to download section jump to Request Hotfix Download Site where You can choose version (for 32-bit, 64-bit and Itanium). This release is prepared as multilingual package.

[EN] SQL Server 2008 Service Pack 1 Cumulative Update 10 is available

LOGO__SQLServer2008R2Sp1Xmass gift from Microsoft for DBA this year has been delivered in three parts. Second part is for SQL Server 2008 R2 with Service Pack 1.

In this Cumulative Update 10 [version build: 10.50.2868.0] Microsoft resolved a lot of requested issues which can be applies to:

  • Microsoft SQL Server 2008 R2 Standard
  • Microsoft SQL Server 2008 R2 Standard Edition for Small Business
  • Microsoft SQL Server 2008 R2 Web
  • Microsoft SQL Server 2008 R2 Workgroup
  • Microsoft SQL Server 2008 R2 Developer
  • Microsoft SQL Server 2008 R2 Enterprise

Here is the list of fixed bugs:

VSTS BUG: 1131075 | 819546
FIX: SQL Server support for mounted volumes

VSTS BUG: 1111503 | 972936
FIX: Error message when you run a query in SQL Server 2008 or in SQL Server 2005: "SqlDumpExceptionHandler: Process generated fatal exception c0000005 EXCEPTION_ACCESS_VIOLATION. SQL Server is terminating this process."

VSTS BUG: 1133942 |2509302
FIX: A database transaction log continues to grow after you upgrade to SQL Server 2008 SP2 or SQL Server 2008 SP3

VSTS BUG: 898887 | 2651629
FIX: Error message when you use DTA to tune one or more queries against a database that contains many objects in SQL Server 2008, in SQL Server 2008 R2 or in SQL Server 2012

VSTS BUG: 1133921 | 2696161
FIX: Error message when you try to view a report in SSRS 2008 R2 or in SSRS 2008: "Different query parameters resulted in a same hash"

VSTS BUG: 1061515 | 2715512
FIX: Error messages when you use dtexec to execute packages in SQL Server 2008 Integration Services

VSTS BUG: 989285 | 2734191
FIX: Reports are not printed in the defined page size when you use the RSClientPrint control to print reports in SSRS 2008 R2

VSTS BUG: 1133926 | 2756471
FIX: Incorrect result is returned when you query an indexed view by using the NOEXPAND hint in SQL Server 2008

VSTS BUG: 1057934 | 2761400
FIX: An incomplete data import is reported as successful after a time-out in SSAS 2008 R2

VSTS BUG: 1133938 | 2761934
FIX: Support for the varchar(max), nvarchar(max), and varbinary(max) data types is added in most OLE DB providers in SQL Server 2008

VSTS BUG: 1133946 | 2770837
FIX: "Windows NT user or group ‘Domain_name\User_name’ not found" error message when you add a login to a case-sensitive SQL Server 2008 instance

VSTS BUG: 1133934 | 2770891
FIX: "Non-yielding Scheduler" error message when you insert a record that contains large object (LOB) data into a snapshot database in SQL Server 2008

VSTS BUG: 1094546 | 2777963
FIX: Installation fails when you try to install a cumulative update to an instance of SQL Server 2008 R2

VSTS BUG: 1133950 | 2778088
FIX: Memory leak if you enable the AUTO_UPDATE_STATISTICS_ASYNC statistics option in SQL Server 2008

VSTS BUG: 1124025 | 2781486
FIX: Error messages when you perform a product update to a UCP-managed instance of SQL Server 2008 R2

VSTS BUG: 1136682 | 2786212
FIX: Access violation occurs when you run a spatial query over a linked server in SQL Server 2008 R2

 

Microsoft has recommended to test all hotfixes before updating in production environment. More information about this release You can find with the article: Cumulative Update 10

You may have to restart the computer after you apply this cumulative update.

If You want to go directly to download section jump to Request Hotfix Download Site where You can choose version (for 32-bit, 64-bit and Itanium). This release is prepared as multilingual package.