3

一个典型的SQL Azure的数据库连接字符串如下:Azure SQL连接字符串中的Trusted_Connection和Encrypt?

Server=[server]; 
Database=[database]; 
User ID=[user]; 
Password=[password]; 
Trusted_Connection=False; 
Encrypt=True; 
Connection Timeout=30; 

什么Trusted_ConnectionEncrypt属性?

如果我排除它们,则无法从Azure VM服务连接到数据库。

回答

3

Encrypt表示Azure SQL数据库要求显式加密通信。它会拒绝任何未加密的连接。

Trusted_Connection被设置为使用SQL Server验证的明确确认,而不是集成Windows身份验证要求(check this SO question on "What is Trusted Connection"

两个参数都与各自的值被设置为了成功地连接到SQL Azure上。