December 2017
Intermediate to advanced
434 pages
10h 14m
English
A credential is an object associated with authentication information required to connect to an external resource. If you need to connect to any external resource outside of SQL Server, you need a proper way of authenticating to the resource. This resource can be, for example, a file share with important XML files to be processed daily on SQL Server. In such cases, a credential object can be used to connect to this file share.
Creating a credential can be done via T-SQL or SSMS; in most cases, it's a Windows account with a proper password. The following code will create a new credential on the server:
CREATE CREDENTIAL [WindowsAcct] WITH IDENTITY = N'DOMAIN\ServiceAcct', SECRET = N'P@ssw0rd'--you need to specify the ...
Read now
Unlock full access