Torsten Schuessler
Sapere aude! (aka tosc)
Sapere aude! (aka tosc)
Sep 21st
MICROSOFT® SQL SERVER® 2012 SERVICE PACK 1 (SP1), COMMUNITY TECHNOLOGY PREVIEW 4 (CTP4)
Download:
SQL Server 2012 SP1 CTP4
SQL Server 2012 SP1 CTP4 Express
SQL Server 2012 SP1 CTP4 Feature Pack
The SQL Server 2012 builds that were released after SQL Server 2012 was released:
Download: http://support.microsoft.com/kb/2692828/
Sep 20th
It’s an old story, but still present - Why or why not installing antivirus software on a database server?
First of all, I’ve been on both sides of the debate with respect, but I can only, only partially agree to install antivirus software on a database server - e.g Microsoft SQL Server. And this only partially agreement means, first not to install antivirus software on SQL Server as many IT departments do in a standard procedure. In addition, the default settings are left untouched, so that every virtually byte is examined in real time.
Have you ever examined the amount of memory, high CPU spikes or high CPU usage and last but not least your high consumer of I/O activities on your (busy) SQL Server?
So let us take a closer look by using Process Explorer to identify antivirus and SQL Server tasks since start-up.
I prefer using Process Explorer to take a immediate first look what happens on the server, he includes many interesting counters for regarding some performance issues and more. By selecting View-Select Columns…, we can add interesting counters such as Private Bytes, Working Set, Threads, Handles, I/O Reads, I/O Read Bytes, I/O Writes, I/O Write Bytes, CPU Time – as shown in the screenshot below.
The screenshot above shows that while the ntrtscan.exe (Real-time Scan Service) has read 70% of the bytes of SQL Server, it has performed 27 times as much read I/O as the read activity isn’t as efficient as SQL Server. And the tmlisten.exe (antivirus communication service) has only write 7% of the bytes of SQL Server, but it has performed four times as much write I/O as the write activity of SQL Server.
Now I want to see the leaders of high I/O Reads on my server by filtering I/O Reads (see screenshot below).
The first three consumers of I/O Reads are:
Same doing on I/O Writes:
So, it’s possible for antivirus to consume many times of I/O’s of SQL Server which can really hamper performance on your (busy) SQL Server. It is possible that the antivirus is consuming more than 50% of total I/O activities! (Please note the recommendations to Microsoft SQL Server Database Engine Input/Output Requirements)
"We strongly recommend that you individually assess the security risk for each computer that is running SQL Server in your environment and that you select the tools that are appropriate for the security risk level of each computer that is running SQL Server. Additionally, we recommend that before you roll out any virus-protection project, you test the whole system under a full load to measure any changes in stability and performance.
Virus protection software requires some system resources to execute. You must perform testing before and after you install your antivirus software to determine whether there is any performance effect on the computer that is running SQL Server."
In my opinion it is very carefully worded, with a “It depends on …” – but they help us!
Read this KB very carefully with you Antivirus Administrator, talk with him about virus risks on the server, performance effects on a (busy) SQL Server and how intrusive the antivirus is at the ratio of the security risk level. In addition read also KB822158, there are further recommendations for the windows server and should be applied as well and first!
I don’t want to repeat these KBs, but here are some recommended must reads:
Turn off scanning of Windows Update or Automatic Update related files
Turn off scanning of Windows Security files
Turn off scanning of Group Policy related files
Directories and file-name extensions to exclude from virus scanning
Processes to exclude from virus scanning
Considerations for clustering
AND - consider an external virus scan against your SQL Server, which is possible in most enterprise antivirus products – often you needn’t a real time virus scan, it belongs to the security risk level!
I wish you a nice day,
tosc
Sep 13th
That's just about the limit. In Books Online for SQL Server 2012 (BOL) by reading What's New (Database Engine), I came around the topic Manageability Enhancements (Database Engine) and its paragraph New and Modified Dynamic Management Views and Functions, and I only see six added or modified system views. And I think by myself, these are the same six DMVs I had read in CTP Denali BOL - no update?
But I knew that there are more new DMVs. I do not mean the AlwaysOn Availability Groups Dynamic Management Views and Functions of the AlwaysOn feature etc. ... - So, I think by myself - figure out!
OK, I have a SQL Server 2008 R2 instance and a SQL Server 2012 instance (both are only for testing, no production environment!). But I don't want to query each instance and copy the result for further investigations in excel - like this way:
USE [master];
GO
SELECT name, type, type_desc
FROM sys.system_objects WITH (NOLOCK)
WHERE name LIKE 'dm_%'
ORDER BY name OPTION (RECOMPILE);
GO
I create a valid linked server point form SQL Server 2012 to SQL Server 2008 R2 (@server = N'SQL2008R2'), then I run below query from SQL Server 2012 - which will find DMVs that did not exists in 2008 R2 ('SQL2008R2') - comparing the datasets in sys.system_objects.
USE [master]; --- execute on SQL Server 2012
GO
SELECT
N'sys.' + d.[name] AS [DMV NAME],
d.[type] AS [DMV TYPE],
d.type_desc AS [DMV TYPE DESC]
FROM
[master].sys.system_objects AS d WITH (NOLOCK)
LEFT OUTER JOIN --- LinkedServer SQL Server 2008 R2
[SQL2008R2].[master].sys.system_objects AS r WITH (NOLOCK)
ON
d.[name] = r.[name] ---* collate Latin1_General_CI_AS
AND d.[schema_id] = r.[schema_id]
WHERE
r.[name] IS NULL
AND d.[schema_id] = 4
AND d.[is_ms_shipped] = 1
AND d.[name] like 'dm_%'
ORDER BY
d.[name] OPTION (RECOMPILE);
GO
I get this resultset, and YES SQL Server 2012 has really 36 new Dynamic Management Views and Functions.
... Now you can query Books Online for SQL Server 2012 ....
To struggle through these new Dynamic Management Views and Functions in SQL Server 2012, will be an ongoing and hard work :-)
I wish you a nice day,
tosc
Sep 10th
Ola Hallengren and his ongoing work of his SQL Server Maintenance Solution - SQL Server Backup, Integrity Check, and Index and Statistics Maintenance.The solution is based on stored procedures, functions, the sqlcmd utility, and SQL Server Agent jobs.
Numerous SQL Server community experts recommend the SQL Server Maintenance Solution, which has been a Gold and Silver winner in the 2011 and 2010 SQL Server Magazine Awards. I love this tool to perform index maintenance on instances with VLDBs - and the best it's free!
A new version of the SQL Server Maintenance Solution is available. You can now perform striped backups across multiple drives in the DatabaseBackup stored procedure. Simply specify multiple directories in the @Directory parameter; for example:
EXECUTE dbo.DatabaseBackup
@Databases = 'USER_DATABASES',
@Directory = 'C:\Backup, D:\Backup, E:\Backup, F:\Backup', @BackupType = 'FULL',
@Compress = 'Y',
@NumberOfFiles = 4
The new version also supports checking the consistency of a database on the file group level and on the table level. This capability is useful when you have VLDBs.
You can read more about the most recent version of the solution at http://ola.hallengren.com/versions.html or download it at http://ola.hallengren.com/scripts/MaintenanceSolution.sql
And now it's up to YOU!
The voting for the 2012 SQL Server Pro Community Choice Awards is now open! This year, the Ola Hallengren SQL Server Maintenance Solution has been nominated in the Best Backup & Recovery Product and Best Free Tool categories. So let us VOTE!!!
Please feel free to contact him if you have any questions. And I tell you, Ola will consider it!!!
I wish you a nice day,
tosc
Jul 27th
I know that finding time to attend business events is becoming more and more difficult, but there is a great SQL Server Conference in Bratislava.
Enjoy the lovely capital of Slovakia in the heart of Europe! From September 19th to 21st a selected group of top-speakers from the SQL Server Community is heading in to give you deep insight into SQL Server 2012 in many different aspects . Exchange with experts and colleagues about the possible deployments of these new technologies in practice!
Intensive three-day workshops, keynote by Lubor Kollar with insights into what is currently the SQL Server kitchen simmers and 27 exciting three-day sessions result in a sustained learning experience.
Who's who SQL Speakers:
- Lubor Kollar - Principal Program Manager in SQL Server Engine Development Team
- Itzik Ben-Gan – globally renown T-SQL guru, author and trainer (T-SQL Champion)
- Thomas Kejser - Principal Program Manager at Microsoft. Performing fast loading of warehousing! (removing every bottleneck)
- Dejan Sarka – Data Mining guru
- Davide Mauri – BI expert, awards for best-rated session
- Alexei Khalyako - SQL Regional Program Manager at SQL Server International Customer Advisory Team
- Karol Papaj - SQL Server MVP and local hero
- Microsoft SQL Server Development Team from Belgrade
Early Bird until 15. August: € 834.00 (excl. VAT)
AS a member of PASS Germany until 15. August: € 750.60 (excl. VAT)
Remember as a member of PASS Deutschland e.V you get a very special discount - so become a member of the great German Microsoft SQL Server Community - http://www.sqlpass.de
I wish you a nice day,
tosc
Jul 27th
SQL Server R2 Service Pack 2 (SP2 Build 10.50.4000.0) is available:
http://www.microsoft.com/en-us/download/details.aspx?id=30437
List of the bugs that are fixed in SQL Server 2008 R2 Service Pack 2
http://support.microsoft.com/kb/2630458
I wish you a nice day,
tosc
Jul 25th
Jun 28th
Do NOT use a space after the delimiter and the parameter identifier (which is the "-" character).
Copy it back to startup paramaters - save - RESTART the service!
You can check the status of your trace flags by using the following command:
DBCC TRACESTATUS
If you want to know something about Trace Flag 3226, please read Christoph Muthmann's (aka cmu) post:
Trace Flag 3226
Jun 19th
The Cumulative update package 2 for SQL Server 2012 (Build 11.0.2325.0) is available:
Cumulative update package 2 for SQL Server 2012 is available
And here you can get the whole information of builds that were released after SQL Server 2012 was released:
http://support.microsoft.com/kb/2692828/
I wish you a nice day,
tosc
Jun 19th
The Cumulative update package 14 for SQL Server 2008 R2 (Build 10.50.1817.0) is available:
Cumulative update package 14 for SQL Server 2008 R2
And here you can get the whole information of builds that were released after SQL Server 2008 R2 was released:
The Cumulative update package 7 for SQL Server 2008 R2 Service Pack 1(Build 10.50.2817.0) is available:
Cumulative update package 7 for SQL Server 2008 R2 Service Pack 1
And here you can get the whole information of builds that were released after SQL Server 2008 R2 Service Pac k 1 was released:
I wish you a nice day,
tosc
administration backup «best practices» books bug ctp «cumulative update» datetime denali dmv ebook humor index indexoptimize integrity kbfix maintenance «ms sql server 2008» performance php profiler «reporting services» reviews «ross mistry» serverproperty «service pack» «service pack 3» «service packs» sharepoint sp_msforeachdb «sql 2012» «sql pass» «sql server» «sql server 2005» «sql server 2008 r2» «sql server 2012» «sql server builds» sqlcat sqlpass «sqlpass franken» ssms ssmstoolspack t-sql technet «technical note» tempdb tools troubleshooting version whitepapers