Welcome to dbFreaks.com!
FAQFAQ    SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

about autentisering

 
   Database Help (Home) -> Programming RSS
Next:  Differential backup broken by NTBackup process  
Author Message
Tony Johansson

External


Since: Jan 21, 2008
Posts: 5



(Msg. 1) Posted: Thu Nov 19, 2009 5:25 am
Post subject: about autentisering
Archived from groups: microsoft>public>sqlserver>programming (more info?)

Hello!

I have two questions

I just wonder if I use window autentisering for a SQL server on a server
where I can log in to
how can SQL Server let me do so. I assume that SQL Server will not insert
any kind of window account into the SQL Server database. So I can't
understand how SQL Server can use my window account to give me permission to
use SQL Server

Which autentisering is most safe between Window autentisering and SQL
autentisering.
I assume the right answer is SQL autentisering because that you must have an
account in the SQL server database?

//Tony

 >> Stay informed about: about autentisering 
Back to top
Login to vote
Erland Sommarskog2

External


Since: May 30, 2004
Posts: 2061



(Msg. 2) Posted: Thu Nov 19, 2009 9:25 am
Post subject: Re: about autentisering [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Tony Johansson (johansson.andersson@telia.com) writes:
> I just wonder if I use window autentisering for a SQL server on a server
> where I can log in to how can SQL Server let me do so. I assume that SQL
> Server will not insert any kind of window account into the SQL Server
> database. So I can't understand how SQL Server can use my window account
> to give me permission to use SQL Server
>
> Which autentisering is most safe between Window autentisering and SQL
> autentisering. I assume the right answer is SQL autentisering because
> that you must have an account in the SQL server database?

To start with it's "authentication" in this weird foreign language
they use in this newsgroup. Smile

To be able to log in with Windows authentication, your Windows account
must have been granted access to SQL Server. This can be done in two
ways: directly, or indirectly through a Windows group of which you are
a member. This can be very practical, as user membership then only needs
to be administered in Active Directory.

Note also that to be able to access a certain database, you need to be
granted access to the database, which again can be done per Windows
login or per Windows group.

Windows authentication is generally considered more secure than SQL
authentication. This is particularly true for SQL 2000 and earlier versions
where the password was sent over the wire in a fashion that was fairly
simple to eavesdrop. Furthermore SQL 2000 had no protection whatsoever
against brute-force attacks.

The situation in SQL 2005 is better, but Windows authentication is still
seen as preferrable. SQL authentication should mainly be used when Windows
authentication is difficult to get to work, for instance in a workgroup or
if you need to accept users from a non-trusted domain.

--
Erland Sommarskog, SQL Server MVP, esquel RemoveThis @sommarskog.se

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

 >> Stay informed about: about autentisering 
Back to top
Login to vote
Tony Johansson

External


Since: Jan 21, 2008
Posts: 5



(Msg. 3) Posted: Thu Nov 19, 2009 3:25 pm
Post subject: Re: about autentisering [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Hello!

Where do I grant a Window account access to SQL Server.
Is this done in the SQL Server or in windows.

//Tony


"Erland Sommarskog" skrev i meddelandet

> Tony Johansson (johansson.andersson@telia.com) writes:
>> I just wonder if I use window autentisering for a SQL server on a server
>> where I can log in to how can SQL Server let me do so. I assume that SQL
>> Server will not insert any kind of window account into the SQL Server
>> database. So I can't understand how SQL Server can use my window account
>> to give me permission to use SQL Server
>>
>> Which autentisering is most safe between Window autentisering and SQL
>> autentisering. I assume the right answer is SQL autentisering because
>> that you must have an account in the SQL server database?
>
> To start with it's "authentication" in this weird foreign language
> they use in this newsgroup. Smile
>
> To be able to log in with Windows authentication, your Windows account
> must have been granted access to SQL Server. This can be done in two
> ways: directly, or indirectly through a Windows group of which you are
> a member. This can be very practical, as user membership then only needs
> to be administered in Active Directory.
>
> Note also that to be able to access a certain database, you need to be
> granted access to the database, which again can be done per Windows
> login or per Windows group.
>
> Windows authentication is generally considered more secure than SQL
> authentication. This is particularly true for SQL 2000 and earlier
> versions
> where the password was sent over the wire in a fashion that was fairly
> simple to eavesdrop. Furthermore SQL 2000 had no protection whatsoever
> against brute-force attacks.
>
> The situation in SQL 2005 is better, but Windows authentication is still
> seen as preferrable. SQL authentication should mainly be used when Windows
> authentication is difficult to get to work, for instance in a workgroup or
> if you need to accept users from a non-trusted domain.
>
> --
> Erland Sommarskog, SQL Server MVP, esquel DeleteThis @sommarskog.se
>
> 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
 >> Stay informed about: about autentisering 
Back to top
Login to vote
Erland Sommarskog2

External


Since: May 30, 2004
Posts: 2061



(Msg. 4) Posted: Thu Nov 19, 2009 6:25 pm
Post subject: Re: about autentisering [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Tony Johansson (johansson.andersson@telia.com) writes:
> Where do I grant a Window account access to SQL Server.
> Is this done in the SQL Server or in windows.

In SQL Server.

Look up the syntax for CREATE LOGIN in Books Online.

--
Erland Sommarskog, SQL Server MVP, esquel.TakeThisOut@sommarskog.se

Links for SQL Server Books Online:
SQL 2008: http://msdn.microsoft.com/en-us/sqlserver/cc514207.aspx
SQL 2005: http://msdn.microsoft.com/en-us/sqlserver/bb895970.aspx
SQL 2000: http://www.microsoft.com/sql/prodinfo/previousversions/books.mspx
 >> Stay informed about: about autentisering 
Back to top
Login to vote
Tony Johansson

External


Since: Jan 21, 2008
Posts: 5



(Msg. 5) Posted: Fri Nov 20, 2009 6:25 am
Post subject: Re: about autentisering [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

If there is a server that I can't log in to because I don't have a windows
account then I must use SQL authentication
Is that correct understood ?

//Tony

"Erland Sommarskog" skrev i meddelandet

> Tony Johansson (johansson.andersson@telia.com) writes:
>> Where do I grant a Window account access to SQL Server.
>> Is this done in the SQL Server or in windows.
>
> In SQL Server.
>
> Look up the syntax for CREATE LOGIN in Books Online.
>
> --
> Erland Sommarskog, SQL Server MVP, esquel RemoveThis @sommarskog.se
>
> Links for SQL Server Books Online:
> SQL 2008: http://msdn.microsoft.com/en-us/sqlserver/cc514207.aspx
> SQL 2005: http://msdn.microsoft.com/en-us/sqlserver/bb895970.aspx
> SQL 2000:
> http://www.microsoft.com/sql/prodinfo/previousversions/books.mspx
>
 >> Stay informed about: about autentisering 
Back to top
Login to vote
Abba

External


Since: Nov 20, 2009
Posts: 3



(Msg. 6) Posted: Fri Nov 20, 2009 6:25 am
Post subject: Re: about autentisering [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Yep. Also, when your SQLServer is in DMZ.

"Tony Johansson" wrote in message

> If there is a server that I can't log in to because I don't have a windows
> account then I must use SQL authentication
> Is that correct understood ?
>
> //Tony
>
> "Erland Sommarskog" skrev i meddelandet
>
>> Tony Johansson (johansson.andersson@telia.com) writes:
>>> Where do I grant a Window account access to SQL Server.
>>> Is this done in the SQL Server or in windows.
>>
>> In SQL Server.
>>
>> Look up the syntax for CREATE LOGIN in Books Online.
>>
>> --
>> Erland Sommarskog, SQL Server MVP, esquel RemoveThis @sommarskog.se
>>
>> Links for SQL Server Books Online:
>> SQL 2008: http://msdn.microsoft.com/en-us/sqlserver/cc514207.aspx
>> SQL 2005: http://msdn.microsoft.com/en-us/sqlserver/bb895970.aspx
>> SQL 2000:
>> http://www.microsoft.com/sql/prodinfo/previousversions/books.mspx
>>
>
>
 >> Stay informed about: about autentisering 
Back to top
Login to vote
Erland Sommarskog2

External


Since: May 30, 2004
Posts: 2061



(Msg. 7) Posted: Fri Nov 20, 2009 9:25 am
Post subject: Re: about autentisering [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Tony Johansson (johansson.andersson@telia.com) writes:
> If there is a server that I can't log in to because I don't have a windows
> account then I must use SQL authentication
> Is that correct understood ?

Well, if you neither have an SQL login, you cannot log in at all.

But it is correct, that you cannot always use Windows authentication. For
instance, if you are logged into Windows as THISDOMAIN\Tony, and the
server is in OTHERDOMAIN and there is no trust between the domains. In
this case, you canont log using Windows authentication, even if
THISDOMAIN\Tony is a valid login in that server, but an SQL login is
the only option.


--
Erland Sommarskog, SQL Server MVP, esquel RemoveThis @sommarskog.se

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
 >> Stay informed about: about autentisering 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
need help with query - I want to sum the records in a table (u) which have 'P.M.' in a field value and test against a fixed limit something to the effect of : case when SUM(substring(u.sTime,1,4)='P.M.') <= 64 Then .... except it should work ...

Next?? - I have a field stored as NTEXT(16). I need to replace some of the content in this field. I know the replace function doesnt work. I see there is UPDATETEXT - is this the ONLY way to do it ?? 'cos it looks quite complicated? thanks, Justin

How can I get the resultset from a stored procedure - I have a stored procedure which will output a table. How can I use a sql statement to get the result of the sp? Thanks a lot

Audit V2 - I am looking to write a SQL script that will show me for each table, in all the databases on a server, which users / groups have access. In addition, I want to break the access into whether it is SELECT, UPDATE, INSERT or DELETE permissions. Is this..

Detecting an existence of local temporary table - Hi, I create a temporary table. for example: <font color=purple> ; create table #t1 (ID_T1 integer)</font> Next I would like to detect If the table already exists: exec sp_table #t1 if @@ROWCOUNT > 0 <font color=purple>&...
   Database Help (Home) -> Programming All times are: Pacific Time (US & Canada)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You can edit your posts in this forum
You can delete your posts in this forum
You can vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]