gpt4 book ai didi

azure - 如何对 Microsoft 发出的有关更新 API 的消息使用react

转载 作者:行者123 更新时间:2023-12-05 02:25:49 25 4
gpt4 key购买 nike

过去几天我收到了来自 Microsoft 的消息

Azure SQL Database 2014-04-01 APIs will be retired on 31 October 2025.

You're receiving this email because you use Azure SQL Database APIs.

To improve performance and security, we're updating Azure SQL DatabaseAPIs. As part of this, all version 2014-04-01 APIs will be retired on31 October 2025. You'll need to update your resources, includingtemplates, tools, scripts, and programs, to use a newer API version bythen. Any API calls still using the older versions after that datewill stop working until you've updated them.

我通过以下方式访问我的 Azure SQL 数据库。

  1. 通过 Java 连接和 ODBC 驱动程序从 WebApp

    public final class DBConnection {
    private static DataSource ds = null;
    private static DBConnection instance = null;

    private DBConnection() throws NamingException {
    InitialContext ic = new InitialContext();
    ds = (DataSource) ic.lookup(Monitor.getDsName());
    }

    <dependency>
    <groupId>com.microsoft.sqlserver</groupId>
    <artifactId>mssql-jdbc</artifactId>
    <version>10.2.1.jre11</version>
    </dependency>
  2. 通过sqlcmd

  3. 通过node.js

     const configDB = {

    user: "",
    password: "",
    server: "myserver.database.windows.net",
    database: "mydb",
    connectionTimeout: 3000,
    parseJSON: true,
    options: {
    encrypt: true,
    enableArithAbort: true
    },
    pool: {
    min: 0,
    idleTimeoutMillis: 3000
    }
    };
    const poolDB = new sql.ConnectionPool(configDB);
    aLine='EXEC ...'
    await poolFOI.connect();
    let resultDB = await poolDB.request().query(aLine);
  4. 通过 Azure 逻辑应用(使用 API 连接)

  5. 通过 Azure Function Apps(与上面的 WebApp 类似的连接)

  6. 通过SSMS

其中哪些可能触发有关 Azure SQL 数据库 API 的消息?另外,我在 2020 年之后开始使用 Azure,因此从 2014 年开始使用 API 对我来说没有意义

最佳答案

电子邮件中提到的 API(我也收到了相同的)用于管理 SQL 数据库服务器和数据库本身(换句话说,它们是控制平面 API),而不是它们内部的数据。您将使用 SQL REST API 对 SQL 数据库资源执行管理操作。

它们不会影响您如何连接到数据库以及管理这些数据库内的数据,而这正是您的代码当前正在执行的操作。

因此,除非您使用 2014-04-01 版的 REST API 来管理 SQL 数据库服务器和 SQL 数据库(而不是其中的数据),否则您可以安全地忽略该电子邮件。

您可以在此处了解有关 SQL 数据库 REST API 的更多信息:https://learn.microsoft.com/en-us/rest/api/sql/ .

关于azure - 如何对 Microsoft 发出的有关更新 API 的消息使用react,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/74292401/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com