@(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.