Anti-Virus archives - SQL Server with Mr. Denny

SQL Server with Mr. Denny:

Anti-Virus

May 1 2009   5:03AM GMT

Should I install an Anti-Virus software on my server?



Posted by: mrdenny
SQL Server, Anti-Virus

Yes, for crying out loud yes.

Every server that can access the Internet or be access from the Internet, or that can be accessed from a computer that can access the Internet should have an anti-virus on it.  Preferably a corporate wide solution like Trend Micro, McAfee, Norton, etc. so that the server reports back to a central server to make it easier to find out if a machine has a problem.

Next comes what should be scanned.  I prefer to exclude the mdf, ndf, and ldf files.  I don’t like to exclude the entire folder as this creates a hiding place where a virus could stick infected files.  If possible have it exclude the mdf, ndf and ldf files from old the correct folders only.  Even if a virus scanner wanted to scan the database files it wouldn’t be able to as the files are locked open by the SQL Server so that nothing else can access them.  By not excluding the files all you are doing is throwing alerts to the monitoring server that files couldn’t be scanned.

Odds are a full scan doesn’t need to be done against the server all that often as the files on the hard drive of the server aren’t going to change all that often.  Any virus that comes in from the network should be caught by the real time engine that is running at the time.  You will want to do a full scan every once and a while (every couple of weeks or so) incase something came in over the network was saved and setup to launch at the next reboot but wasn’t yet in the virus definition file.

Denny

Dec 25 2008   11:00AM GMT

What should I do when my Windows Admin wants to put an anti-virus on the SQL Servers?



Posted by: mrdenny
SQL, Anti-Virus

My answer to that one is pretty easy.  Let him / her.  I’m a firm believer that every machine on the network should have anti-virus software installed.  Most anti-virus software is pretty lightweight (especially compared to the amount of hardware that your SQL Server has), and if a virus did get onto the SQL Server the results could be awful.

Continued »