不允许 Application Intent 连接属性设置为 ReadOnly 的连接。 这可帮助阻止客户错误地将读意向工作负荷连接到主副本。 有关 Application Intent 连接属性的详细信息,请参阅 Using Connection String Keywords with SQL Server Native Client。 ...
READ_WRITE 不允许 Application Intent 连接属性设置为 ReadOnly 的连接。 在 Application Intent 属性设置为 ReadWrite 或者未设置 Application Intent 连接属性时,将允许连接。 有关 Application Intent 连接属性的详细信息,请参阅 Using Connection String Keywords with SQL Server ...
READ_WRITE 不允许 Application Intent 连接属性设置为ReadOnly的连接。 在 Application Intent 属性设置为ReadWrite或者未设置 Application Intent 连接属性时,将允许连接。 有关 Application Intent 连接属性的详细信息,请参阅Using Connection String Keywords with SQL Server Native Client。
语言SQL Server 语言名称(可选)。 SQL Server 可以在 sysmessages中存储多种语言的消息。 如果使用多种语言连接到 SQL Server,则 Language指定用于连接的消息集。 MARS_Connection启用或禁用连接上的多个活动结果集 (MARS)。 可识别的值为“yes”和“no”。 默认值为“no”。
'SNACOLEDBConn.ConnectionString = "Provider=sqlncli11;data source=aglisten;integrated security=sspi;initial catalog=ag;application intent=readonly" 'SNACOLEDBConn.Open() 'Dim objCmd As OleDb.OleDbCommand = New OleDb.OleDbCommand("select @@servername", SNACOLEDBConn) ...
Applies to:SQL Server To configure an Always On availability group to support read-only routing in SQL Server, you can use either Transact-SQL or PowerShell.Read-only routingrefers to the ability of SQL Server to route qualifying read-only connection requests to an available Always Onreadable ...
了解SQLSetConnectAttr 中的连接属性,包括何时设置它们以及 SQL Server Native Client ODBC 驱动程序中的可能值。
SQL Server Azure SQL 数据库 Azure SQL 托管实例 Azure Synapse Analytics Analytics Platform System (PDW) Microsoft Fabric SQL 数据库 可以通过各种模式,使用 sqlcmd 实用工具输入 Transact-SQL 语句、系统过程和脚本文件: 通过命令提示符。 在查询编辑器中的 SQLCMD 模式下。
Server LMW ServerCertificate (v18.1+) LMW ServerSPN SQL_COPT_SS_SERVER_SPN LMW StatsLog_On SQL_COPT_SS_PERF_DATA W StatsLogFile SQL_COPT_SS_PERF_DATA_LOG W TransparentNetworkIPResolution SQL_COPT_SS_TNIR LMW Trusted_Connection SQL_COPT_SS_INTEGRATED_SECURITY LMW T...
Configure an Availability Group for Load Balanced Read-Only Routing First, configure each replica to allow for read access when in the secondary role, and define the connection string to the replica. These two steps are completed just like you would configure read only ...