Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the difference between login and credential in SQL server 2008?

Tags:

I am a bit confused SQL server windows login and credential. On books online, it says that credential can access resources beyond sql server, but as far as i see windows login might be able to do that that since it is mapped to a windows user. Am i missing something else?

Thanks, in advance.

like image 520
blah Avatar asked May 01 '10 15:05

blah


People also ask

What is the difference between a login and a credential?

Login credentials enable users to log in and verify their identities to online accounts on the internet. User credentials are typically a username and password combination used for logging in to online accounts.

What are credentials in SQL Server 2008?

A credential is a record that contains the authentication information (credentials) required to connect to a resource outside SQL Server. This information is used internally by SQL Server. Most credentials contain a Windows user name and password.

What are my SQL server credentials?

The default user for MySQL is root and by default it has no password.


2 Answers

Login: A login is any principal that is granted access to a SQL Server instance. The access can be granted to domain users, domain group, or SQL Server authenticated accounts.

Credential: A credential provides a mechanism to store login information for a domain account within SQL Server. The credential can then be used to pass that authentication information from into another login or a proxy to grant it permissions to resources external to SQL Server.

.....use of Login if you need to login and access a SQL Server instance, you’ll just use a login. Regardless of your needs, if you need to get in and do work, the login is through route to go. The other two won’t help you out at all.

Use of credentials.. Credentials get brought in when permissions from domain users need to be granted to accounts or services that wouldn’t usually have those permissions. For instance, if an assembly required EXTERNAL_ACCESS, those permissions could be granted through the use of a credential. Credentials can also be used to grant SQL Authentication accounts access to external resources.

like image 71
Arunprasanth K V Avatar answered Nov 11 '22 19:11

Arunprasanth K V


A credential is a record containing the authentication information needed to connect to a resource outside of SQL Server. Most credentials consist of a Windows login name and password. On Microsoft Windows Server 2003 and later, the password may not be required.

A single credential can be mapped to multiple SQL Server logins. But a SQL Server login can be mapped to only one credential.

Only users with ALTER ANY CREDENTIAL permission can create or modify a credential.

like image 27
syed umair Avatar answered Nov 11 '22 20:11

syed umair



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!