【问题标题】:Trusted_Connection and Encrypt in Azure SQL connection string?Azure SQL 连接字符串中的 Trusted_Connection 和加密?
【发布时间】:2013-04-26 10:33:14
【问题描述】:

典型的 Azure SQL 数据库连接字符串如下:

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

Trusted_ConnectionEncrypt 属性有什么用?

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

【问题讨论】:

    标签: azure database-connection connection-string azure-sql-database


    【解决方案1】:

    Encrypt 表示 Azure SQL 数据库需要对通信进行显式加密。它将拒绝任何未加密的连接。

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

    这两个参数都需要设置各自的值才能成功连接到 SQL Azure。

    【讨论】:

      猜你喜欢
      • 2017-02-05
      • 1970-01-01
      • 2019-08-17
      • 2011-01-10
      • 2010-12-30
      • 2011-03-05
      • 1970-01-01
      • 2012-10-13
      相关资源
      最近更新 更多