Determining the Dialog Security Type
The type of dialog security that is used for a conversation depends on the options in the BEGIN DIALOG CONVERSATION statement, the settings on the remote service binding for the service, and whether the owner of the initiating service owns a certificate. For each new dialog, SQL Server looks up the remote service binding for the target service in the sys.remote_service_bindings catalog view.
The following table lists the type of dialog security for each valid combination. Notice that if a remote service binding exists, the dialog uses encryption regardless of the settings on the BEGIN DIALOG CONVERSATION statement.
|
| No remote service binding | Remote service binding with ANONYMOUS = ON | Remote service binding with ANONYMOUS = OFF |
|---|---|---|---|---|
Service owner has a certificate | ENCRYPTION = ON | Dialog fails | Anonymous security | Full security |
Service owner has a certificate | ENCRYPTION = OFF | No dialog security | Anonymous security | Full security |
Service owner does not have a certificate | ENCRYPTION = ON | Dialog fails | Anonymous security | Dialog fails |
Service owner does not have a certificate | ENCRYPTION = OFF | No dialog security | Anonymous security | Dialog fails |
