System.Data.SqlClientを利用したSQLSERVER2019への接続について

(B-SOL)岩崎圭祐 0 Reputation points
2023-05-16T02:44:23.7633333+00:00

既存のアプリケーションでは、.NetFrameWork4.0を利用しております。

既存の(.NetFrameWork4.0)ままでも、SQLSERVER2019への接続は可能でしょうか。

Not Monitored
Not Monitored
Tag not monitored by Microsoft.
37,795 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Jack J Jun 24,496 Reputation points Microsoft Vendor
    2023-05-16T03:00:36.4666667+00:00

    @(B-SOL)岩崎圭祐, Welcome to Microsoft Q&A,

    Firstly, please note that Microsoft Q&A is an English Forum, please edit your question in English.

    Based on the Microsoft learning SqlConnection Class, Sqlconnection can be used in .NET Framework 4.0 app.

    You could try the following code to connect to sql server 2019.

                SqlConnection connection = new SqlConnection("connstr");
                connection.Open();
                connection.Close();
    

    Hope my answer could help you. Best Regards, Jack

    If the answer is helpful, please click "Accept Answer" and upvote it.

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.