Re: Trusted SQL Server connection (SQL 2005)



idoek (idoek@xxxxxxxxxxxxxxxxxxxxxxxxx) writes:
1. Can anyone explain to me, please, how do I associate local user with
a trusted SQL Server connection?

CREATE LOGIN [domain\user] FROM WINDOWS

where domain also could be the local machine.

and more important how do I prevent associated local user from logging
into an SQL Server 2005?

Make sure that there is no entry in sys.server_principals that maps to
the Windows user. Beside the username itself, you have to make sure that
no Windows group to which the user belongs is listed. A particular
critical one is BUILTIN\Administrators, which gives sysadmin access to
any Windows user with Admin privs. If you want to prevent a user with
admin privs in Windows from accessing SQL Server, you need to drop
BUILTIN\Administrators. However, before you do that, make sure that
there are other accounts with sysadmin permissions, or else you may find
that the server is no longer administrable.

2. Are the data files and log files of my database encrypted?

No.

If not, is there a way to encrypted them?

Within SQL Server there is no way to encrypt them as a whole. You can
encrypt selected columns, but that requires writing some code.

You can encrypt files in NTFS, but whether it's a good idea to do this
with database files I don't know. It's certainly not going to beef up
performance.

--
Erland Sommarskog, SQL Server MVP, esquel@xxxxxxxxxxxxx

Books Online for SQL Server 2005 at
http://www.microsoft.com/technet/prodtechnol/sql/2005/downloads/books.mspx
Books Online for SQL Server 2000 at
http://www.microsoft.com/sql/prodinfo/previousversions/books.mspx
.



Relevant Pages

  • Re: Slow booting xp home.
    ... Changing the boot order to boot first from your hard disk might save you a half second, but you won't be able to boot from a CD until you change it back - and the time spent to do that will erase any previous time saved. ... 2- Consider what software you really want to start with Windows and also how you've configured your applications at startup ... Installing and Registering Visual Studio Express Editions Smart Device ...
    (microsoft.public.windowsxp.perform_maintain)
  • Re: Slow booting xp home.
    ... Thirty seconds to boot Windows? ... I read somewhere that Microsoft suggest 30s boot up on xp home, I have seen videos on youtube of 8s boot up on xp, I'd be delighted with 30s and happy just to get below a minute. ... Installing and Registering Visual Studio Express Editions Smart Device ...
    (microsoft.public.windowsxp.perform_maintain)
  • Re: Securing an MDF file
    ... Windows 2000 support encrypted file system property. ... Below are the steps encrypt the data files: ... Logon with the SQL Server startup account ... database files are encrypted under the identity of the account ...
    (microsoft.public.sqlserver.server)
  • Re: securing mdf files
    ... You can use the Encrypted File System Support on Windows 2000. ... Below are the steps encrypt the data files: ... Logon with the SQL Server startup account ... database files are encrypted under the identity of the account ...
    (microsoft.public.sqlserver.security)
  • Re: Remote connection failed
    ... If you are going over a remote connection or are not logging ... into the domain where SQL Server is then no, Windows ... authentication won't work. ...
    (microsoft.public.sqlserver.connect)