Home > SQL Server Tips > Database Management and Administration > Access SQL Server securely using Windows domain accounts
SQL Server Tips:
EMAIL THIS
 TIPS & NEWSLETTERS TOPICS 

DATABASE MANAGEMENT AND ADMINISTRATION

Access SQL Server securely using Windows domain accounts


Serdar Yegulalp, Contributor
10.03.2005
Rating: -2.00- (out of 5)


Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   


You can authenticate to SQL Server using either a native SQL Server user account or a Windows domain account, such as Active Directory. All too often, a SQL Server administrator who simply wants to get things up and running will use SQL Server's native administrator account (the sa account) rather than set up properly-controlled access to SQL Server. This step is worth the extra effort, especially considering most hacks come from inside an organization.

Windows domain accounts offer the most secure access to SQL Server from the outside. There are two primary reasons for this:

1. Windows domain authentication is more secure

When a user's credentials are sent to SQL Server using SQL Authentication, the process is primarily unencrypted. The data is obfuscated using a static hash that can easily be reverse engineered. (In fact, the folks at SQLSecurity.com have published a simple stored procedure script that can be used to decrypt a hashed username/password.)

If you must use SQL Authentication, use SSL encryption or the Multiprotocol Net Library to prevent data from being read in the clear.

2. Windows domain authentication has more account-management possibilities

Setting policies for password age and complexity, account-lockout controls, and various other defenses makes it th...


Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   



RELATED CONTENT
SQL Server Security
Password cracking tools for SQL Server
Meet compliance requirements with improved database security practices
Hardening the network and OS for SQL Server security
Securing the server and database in SQL Server
SQL Server security made simple and sensible
Blog: Protect your databases from the internal threat
Setting up SQL Server Service Broker for secure communication
The keys to database backup protection for SQL Server
Understanding transparent data encryption in SQL Server 2008
The fine line between not encrypting your databases and breach notification

Database Management and Administration
Password cracking tools for SQL Server
Using traces in SQL Server Profiler
Meet compliance requirements with improved database security practices
Hardening the network and OS for SQL Server security
Securing the server and database in SQL Server
How SQL Server 2008 components impact SharePoint implementations
Troubleshooting Distributed Transaction Coordinator errors in SQL Server
Achieving high availability and disaster recovery with SharePoint databases
Clearing the Windows page file and its effect on server performance
Deploying a SQL Server virtual appliance for Microsoft Hyper-V

RELATED GLOSSARY TERMS
Terms from Whatis.com − the technology online dictionary
data corruption  (SearchSQLServer.com)
data hiding  (SearchSQLServer.com)

RELATED RESOURCES
2020software.com, trial software downloads for accounting software, ERP software, CRM software and business software systems
Search Bitpipe.com for the latest white papers and business webcasts
Whatis.com, the online computer dictionary


at much more difficult to crack a SQL Server system using brute force. SQL Server doesn't have account-management controls with the same level of sophistication, unless you decided to roll your own or buy a third-party solution. Why bother doing that when Windows offers it to you already?

One scenario where you could probably use SQL Authentication consistently and get away with it is when you're hosting SQL Server on the same computer as, for instance, a Web server, and there is no access to SQL Server from outside the box. Even then, you'd still need to be careful not to allow privilege elevation on the accounts in use.

About the author: Serdar Yegulalp is the editor of the Windows 2000 Power Users Newsletter. Check out his Windows 2000 blog for his latest advice and musings on the world of Windows network administrators – please share your thoughts as well!


More information from SearchSQLServer.com

  • Tip: Hacker's-eye view of SQL Server
  • Book Excerpt: Optional features turned off by default in SQL Server 2005
  • Topic: Get best practices and expert advice for locking down SQL Server


  • Rate this Tip
    To rate tips, you must be a member of SearchSQLServer.com.
    Register now to start rating these tips. Log in if you are already a member.




    DISCLAIMER: Our Tips Exchange is a forum for you to share technical advice and expertise with your peers and to learn from other enterprise IT professionals. TechTarget provides the infrastructure to facilitate this sharing of information. However, we cannot guarantee the accuracy or validity of the material submitted. You agree that your use of the Ask The Expert services and your reliance on any questions, answers, information or other materials received through this Web site is at your own risk.



    SQL Server Development - .NET, C#, T-SQL, Visual Basic
    HomeNewsTopicsITKnowledge ExchangeTipsAsk the ExpertsMultimediaWhite PapersIT Downloads
    About Us  |  Contact Us  |  For Advertisers  |  For Business Partners  |  Site Index  |  RSS
    SEARCH 
    TechTarget provides technology professionals with the information they need to perform their jobs - from developing strategy, to making cost-effective purchase decisions and managing their organizations' technology projects - with its network of technology-specific websites, events and online magazines.

    TechTarget Corporate Web Site  |  Media Kits  |  Site Map




    All Rights Reserved, Copyright 2005 - 2009, TechTarget | Read our Privacy Policy
      TechTarget - The IT Media ROI Experts