Limiting Security Risks of Running .NET on SQL Server

Does running Microsoft .NET on SQL Server open a whole new set of security risks?

Not really, unless you choose to allow security problems to occur. The first layer of defense is that .NET isn't enabled when you install SQL Server. The next layer of defense has to do with how much power you choose to expose; allowing .NET in SQL Server to call out to Web Services could expose your database engine to a host of problems. But keeping your .NET code-access capabilities ratcheted down to safe level ensures that .NET won't crash your server while still letting you leverage the advantages of .NET on your server. (When you load an assembly into SQL Server, you have three potential security levels: safe, unsafe, and external. You should usually use safe, but when you need limited access to the local file system, Web services or another database, you can use the external setting. I strongly discourage the use of unsafe code.)

Please or Register to post comments.

IT/Dev Connections

Las Vegas
September 30th - October 4th

Paul ThurottYou'll have the opportunity to experience:
• The Microsoft
Technology Roadmap
• Office 365 Implementation
• Hyper-V Optimizing
• Windows 8 Deployment
and much more!

Come See Paul Thurrott & Rod Trent in Person!

Early Registration Now Open

Upcoming Training

Mastering System Center 2012

During over 6 hours of training you can join John Savill from your computer as he will walk you through the key components and capabilities of System Center 2012, what’s involved in using the components, and the benefit they can bring to your environment.

Register Now

Current Issue

May 2013 - The NameTranslate object is useful when you need to translate Active Directory object names between different formats, but it's awkward to use from PowerShell. Here's a PowerShell script that eliminates the awkwardness.

CURRENT ISSUE / ARCHIVE / SUBSCRIBE

Windows Forums

Get answers to questions, share tips, and engage with the Windows Community in our Forums.